From 19b2f4648851adc9e7dc31e3e0a6c9f417e5a2a2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 12 Jun 2016 11:06:19 -0400 Subject: [PATCH] Fixed accesses to colour memory. --- Machines/Vic-20/Vic20.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Vic-20/Vic20.hpp b/Machines/Vic-20/Vic20.hpp index 47dcb71df..865229b38 100644 --- a/Machines/Vic-20/Vic20.hpp +++ b/Machines/Vic-20/Vic20.hpp @@ -127,7 +127,7 @@ class Machine: public CPU6502::Processor, public CRTMachine::Machine, p inline uint8_t *ram_pointer(uint16_t address) { if(address < sizeof(_userBASICMemory)) return &_userBASICMemory[address]; if(address >= 0x1000 && address < 0x2000) return &_screenMemory[address&0x0fff]; - if(address >= 0x9400 && address < 0x9800) return &_colorMemory[0x03ff]; // TODO: make this 4-bit + if(address >= 0x9400 && address < 0x9800) return &_colorMemory[address&0x03ff]; // TODO: make this 4-bit return nullptr; }