From defec2c9b0006227bcb097aff12b875a070aacd2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 26 Mar 2017 20:56:27 -0400 Subject: [PATCH] Fixed: operation reads now fulfil the promise of seeding the value to be read with 0xff. --- Processors/6502/CPU6502.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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