1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-16 18:30:32 +00:00

Corrects printed target address for ZeroPageRelative.

This commit is contained in:
Thomas Harte 2021-02-04 20:54:31 -05:00
parent 6526c645a5
commit 819e9039ab

View File

@ -195,7 +195,7 @@ inline std::string address(AddressingMode addressing_mode, const uint8_t *operat
case AddressingMode::ImmediateZeroPage: output << "#$" << NUM(operation[1]) << ", $" << NUM(operation[2]); break;
case AddressingMode::AccumulatorRelative: output << "A, $" << NUM4(2 + program_counter + int8_t(operation[1])); break;
case AddressingMode::ZeroPageRelative:
output << "$" << NUM(operation[1]) << ", $" << NUM4(2 + program_counter + int8_t(operation[2]));
output << "$" << NUM(operation[1]) << ", $" << NUM4(3 + program_counter + int8_t(operation[2]));
break;
}
#undef NUM4