mirror of https://github.com/mgba-emu/mgba.git
Support reading 8-bit values from palette RAM
This commit is contained in:
parent
34ddb09516
commit
8132341b75
|
@ -251,6 +251,7 @@ int8_t GBALoad8(struct ARMMemory* memory, uint32_t address, int* cycleCounter) {
|
|||
value = (GBAIORead(gbaMemory->p, address & 0xFFFE) >> ((address & 0x0001) << 3)) & 0xFF;
|
||||
break;
|
||||
case BASE_PALETTE_RAM:
|
||||
value = ((int8_t*) gbaMemory->p->video.renderer->palette)[address & (SIZE_PALETTE_RAM - 1)];
|
||||
break;
|
||||
case BASE_VRAM:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue