From 0666038298fc983dcedaf689ce8e0b515b7e3257 Mon Sep 17 00:00:00 2001 From: Brad Grantham Date: Thu, 31 Dec 2020 10:58:46 -0800 Subject: [PATCH] fix disassembly address --- test6502.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test6502.cpp b/test6502.cpp index 97848e7..60bf96c 100644 --- a/test6502.cpp +++ b/test6502.cpp @@ -55,7 +55,7 @@ std::string read_bus_and_disassemble(const BUS &bus, int pc) buf[1] = bus.read(pc + 1); buf[2] = bus.read(pc + 2); buf[3] = bus.read(pc + 3); - auto [bytes, dis] = disassemble_6502(pc - 1, buf); + auto [bytes, dis] = disassemble_6502(pc, buf); return dis; }