From 3c148f57216eb163ec85ec6c545297dafc39e9d2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 16 Aug 2017 14:02:46 -0400 Subject: [PATCH] Fixed clanger of an error. --- Machines/Atari2600/Cartridges/Unpaged.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Atari2600/Cartridges/Unpaged.hpp b/Machines/Atari2600/Cartridges/Unpaged.hpp index 8761d72f5..0974f0d8c 100644 --- a/Machines/Atari2600/Cartridges/Unpaged.hpp +++ b/Machines/Atari2600/Cartridges/Unpaged.hpp @@ -20,7 +20,7 @@ class Unpaged: public BusExtender { void perform_bus_operation(CPU::MOS6502::BusOperation operation, uint16_t address, uint8_t *value) { if(isReadOperation(operation) && (address & 0x1000)) { - *value = rom_base_[address] & (rom_size_ - 1); + *value = rom_base_[address & (rom_size_ - 1)]; } } };