diff --git a/Processors/6502/CPU6502.hpp b/Processors/6502/CPU6502.hpp index 6356045ae..7d774f8ad 100644 --- a/Processors/6502/CPU6502.hpp +++ b/Processors/6502/CPU6502.hpp @@ -638,7 +638,7 @@ template class Processor { const MicroOp cycle = program[scheduleProgramProgramCounter]; scheduleProgramProgramCounter++; -#define read_op(val, addr) nextBusOperation = BusOperation::ReadOpcode; busAddress = addr; busValue = &val +#define read_op(val, addr) nextBusOperation = BusOperation::ReadOpcode; busAddress = addr; busValue = &val; val = 0xff #define read_mem(val, addr) nextBusOperation = BusOperation::Read; busAddress = addr; busValue = &val; val = 0xff #define throwaway_read(addr) nextBusOperation = BusOperation::Read; busAddress = addr; busValue = &throwaway_target; throwaway_target = 0xff #define write_mem(val, addr) nextBusOperation = BusOperation::Write; busAddress = addr; busValue = &val