[doc] Status and formatting
This commit is contained in:
@@ -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
|
@@ -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)
|
||||
|
@@ -39,7 +39,8 @@ fn main() -> EmulatorResult<()> {
|
||||
Event::Quit { .. } |
|
||||
Event::KeyDown { keycode: Some(Keycode::Escape), .. } => {
|
||||
break 'running;
|
||||
}
|
||||
},
|
||||
|
||||
event => {
|
||||
log::trace!("Received window event {:?}",event);
|
||||
}
|
||||
|
Reference in New Issue
Block a user