Read and increment PC in BRK, fix test Useful in cycle counting, but also means the expected PC in the test needs to be incremented.
2 files changed, 2 insertions(+), 1 deletions(-) M src/cpu.cpp M test/testCPU.cpp
M src/cpu.cpp => src/cpu.cpp +1 -0
@@ 367,6 367,7 @@ constexpr void CPU::oBPL(ValueStore target) noexcept { } constexpr void CPU::oBRK(ValueStore) noexcept { read(pc++); // Read and discard flags.set(F::InterruptOff, true); push2(pc);
M test/testCPU.cpp => test/testCPU.cpp +1 -1