From 6913c7a01848433477d18b7e42fc8ed6e385eccc Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 11 Jun 2017 19:29:20 -0400 Subject: [PATCH] This also can just use `rom_mask_`. --- Machines/ZX8081/ZX8081.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/ZX8081/ZX8081.cpp b/Machines/ZX8081/ZX8081.cpp index fed4fb6da..9217d4a9d 100644 --- a/Machines/ZX8081/ZX8081.cpp +++ b/Machines/ZX8081/ZX8081.cpp @@ -97,7 +97,7 @@ int Machine::perform_machine_cycle(const CPU::Z80::MachineCycle &cycle) { size_t char_address = (size_t)((refresh & 0xff00) | ((value & 0x3f) << 3) | line_counter_); if((char_address & 0xc000) == 0x0000) { uint8_t mask = (value & 0x80) ? 0x00 : 0xff; - value = rom_[char_address & (rom_.size() - 1)] ^ mask; + value = rom_[char_address & rom_mask_] ^ mask; } video_->output_byte(value);