From 636dfab7bd0053bd2a86d63e2cc2c575638ff7cb Mon Sep 17 00:00:00 2001 From: gennyble Date: Thu, 6 Mar 2025 01:11:05 -0600 Subject: readme --- src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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"), -- cgit 1.4.1-3-g733a5