summaryrefslogtreecommitdiff
path: root/src/core.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-22 18:00:15 +0100
committertaitep <taitep@taitep.se>2025-12-22 18:00:15 +0100
commit7177633477f1b9851a949c2c7b005185c3925b23 (patch)
tree937b697bee446869afcbc40924c52b3b326c4648 /src/core.rs
parent48477bd8b1896aa71c6e4ea4cde218499ef5016a (diff)
WHY WAS I USING S-TYPE IMMEDIATE IN LD (also add some more debugging info on an exception)
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.rs b/src/core.rs
index ce704fb..08f029b 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -64,6 +64,7 @@ impl Core {
InstructionResult::Normal => {}
InstructionResult::Exception(_e) => {
eprintln!("Exception from instruction");
+ eprintln!("PC: {:016X}, instr: {:08X}", self.pc, instr.0);
break;
}
InstructionResult::Pause => {