From 71590950e66b22d41b52de10e4f7d6fae6f27711 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 20 Mar 2022 12:08:21 +0100 Subject: [PATCH] disas fix for JMP --- cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index fdec953..573b6f5 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1478,7 +1478,7 @@ void cpu::disassemble() text = format("TRAP %o", instruction & 255); if ((instruction & ~0b111111) == 0b0000000001000000) { - auto dst_text = addressing_to_string(src_register, pc); + auto dst_text = addressing_to_string(dst_register, pc); text = std::string("JMP ") + dst_text.first; }