[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/Save memory
|
||||||
- [ ] Load a ROM
|
- [ ] Load a ROM
|
||||||
|
|
||||||
|
## Usage instructions
|
||||||
|
|
||||||
|
TBD
|
||||||
|
|
||||||
|
|
||||||
## More information about the BytePusher VM
|
## More information about the BytePusher VM
|
||||||
|
|
||||||
https://esolangs.org/wiki/BytePusher
|
https://esolangs.org/wiki/BytePusher
|
@@ -31,6 +31,7 @@ impl Color {
|
|||||||
/// wrap to black if needed
|
/// wrap to black if needed
|
||||||
pub fn new(in_mem_color: u8) -> Color {
|
pub fn new(in_mem_color: u8) -> Color {
|
||||||
if in_mem_color > Self::COLOR_MAX {
|
if in_mem_color > Self::COLOR_MAX {
|
||||||
|
log::trace!("Invalid color {}, using 0", in_mem_color);
|
||||||
Color(0)
|
Color(0)
|
||||||
} else {
|
} else {
|
||||||
Color(in_mem_color)
|
Color(in_mem_color)
|
||||||
|
@@ -39,7 +39,8 @@ fn main() -> EmulatorResult<()> {
|
|||||||
Event::Quit { .. } |
|
Event::Quit { .. } |
|
||||||
Event::KeyDown { keycode: Some(Keycode::Escape), .. } => {
|
Event::KeyDown { keycode: Some(Keycode::Escape), .. } => {
|
||||||
break 'running;
|
break 'running;
|
||||||
}
|
},
|
||||||
|
|
||||||
event => {
|
event => {
|
||||||
log::trace!("Received window event {:?}",event);
|
log::trace!("Received window event {:?}",event);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user