From cba09b5490795dd0d83d82f735519a3416fd85af Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 11 Jan 2016 22:29:16 -0500 Subject: [PATCH] Switched display update and RAM write order. --- Machines/Electron/Electron.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Machines/Electron/Electron.cpp b/Machines/Electron/Electron.cpp index cb670e0a4..4d6dee662 100644 --- a/Machines/Electron/Electron.cpp +++ b/Machines/Electron/Electron.cpp @@ -46,12 +46,11 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin } else { - _ram[address] = *value; - -// TODO: range check on address; a lot of the time the machine will be running code outside of -// the screen area, meaning that no update is required. -// if (address + // TODO: range check on address; a lot of the time the machine will be running code outside of + // the screen area, meaning that no update is required. update_display(); + + _ram[address] = *value; } // TODO: RAM timing for Modes 0–3