[doc] Status and formatting

This commit is contained in:
2024-02-19 13:41:49 +05:30
parent 3b823ecaf9
commit 8714e906bc
3 changed files with 13 additions and 6 deletions

View File

@@ -16,6 +16,11 @@ This is a play at emulating a BytePusher machine.
- [ ] Load/Save memory
- [ ] Load a ROM
## Usage instructions
TBD
## More information about the BytePusher VM
https://esolangs.org/wiki/BytePusher

View File

@@ -31,6 +31,7 @@ impl Color {
/// wrap to black if needed
pub fn new(in_mem_color: u8) -> Color {
if in_mem_color > Self::COLOR_MAX {
log::trace!("Invalid color {}, using 0", in_mem_color);
Color(0)
} else {
Color(in_mem_color)

View File

@@ -39,7 +39,8 @@ fn main() -> EmulatorResult<()> {
Event::Quit { .. } |
Event::KeyDown { keycode: Some(Keycode::Escape), .. } => {
break 'running;
}
},
event => {
log::trace!("Received window event {:?}",event);
}