diff options
Diffstat (limited to 'src/main.rs')
-rwxr-xr-x | src/main.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 1279ceb..2e569b7 100755 --- a/src/main.rs +++ b/src/main.rs @@ -105,12 +105,23 @@ fn main() { print_all_pc = true; log::warn!("broke from eec46! (pc = {pc:x})"); } + + if last_pc == 0x002e8c0e { + //log::error!("right after e8c0e // pc = {pc:08x}"); + //break 'cpustep; + } + last_pc = pc; if pc == 0x002eec52 { log::info!("hit eec52!"); } + if pc == 0x002e8c0e { + log::warn!("hit e8c0e! setting r0 = 0x81"); + cpu.reg_set(Mode::User, 0, 0x81); + } + match rx.try_recv() { Err(TryRecvError::Empty) => (), Err(TryRecvError::Disconnected) => panic!("event sender disconnected"), |