1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-27 22:30:49 +00:00

Fixed accesses to colour memory.

This commit is contained in:
Thomas Harte 2016-06-12 11:06:19 -04:00
parent 4fec625b19
commit 19b2f46488

View File

@ -127,7 +127,7 @@ class Machine: public CPU6502::Processor<Machine>, 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;
}