aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppu.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-08-31 09:57:45 +0200
committerBad Diode <bd@badd10de.dev>2023-08-31 09:57:45 +0200
commit66daaf81e953bc0d44cf0309f945f76c97d0ede4 (patch)
treed0794be583460ac39e365ab2ddd348c4f0a5d699 /src/ppu.c
parentea85184fdadf08760aa8f88871f96ddf8dde2914 (diff)
downloaduxngba-66daaf81e953bc0d44cf0309f945f76c97d0ede4.tar.gz
uxngba-66daaf81e953bc0d44cf0309f945f76c97d0ede4.zip
Fix bank switching
Diffstat (limited to 'src/ppu.c')
-rw-r--r--src/ppu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ppu.c b/src/ppu.c
index 4dcc5be..d871514 100644
--- a/src/ppu.c
+++ b/src/ppu.c
@@ -40,6 +40,7 @@ WITH REGARD TO THIS SOFTWARE.
40// Keyboard. 40// Keyboard.
41#define SPRITE_START_IDX 640 41#define SPRITE_START_IDX 640
42 42
43// TODO: Can we put these tables on the VRAM for extra speed?
43static u32 dec_byte_flip_x[256] = { 44static u32 dec_byte_flip_x[256] = {
44 0x00000000, 0x00000001, 0x00000010, 0x00000011, 0x00000100, 45 0x00000000, 0x00000001, 0x00000010, 0x00000011, 0x00000100,
45 0x00000101, 0x00000110, 0x00000111, 0x00001000, 0x00001001, 46 0x00000101, 0x00000110, 0x00000111, 0x00001000, 0x00001001,