Fixed X register overflow

This commit is contained in:
0xmac 2025-01-24 10:37:46 +01:00
parent 37cfca1482
commit dc23e8d7ed

View File

@ -57,7 +57,7 @@ void write6502(uint16_t address, uint8_t value){
case VIDADDRS ... VIDADDRS + PAGESIZE: case VIDADDRS ... VIDADDRS + PAGESIZE:
switch ((address - VIDADDRS) % 4){ switch ((address - VIDADDRS) % 4){
case 0: /* Video X Register */ case 0: /* Video X Register */
videoX = value; videoX = value & 0b01111111;
break; break;
case 1: /* Video Y Register */ case 1: /* Video Y Register */
videoY = value; videoY = value;