summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-04-22 16:05:34 +0200
committerBad Diode <bd@badd10de.dev>2021-04-22 16:05:34 +0200
commita3e96cb4b1abc95fba71fbd833f9378b6dc5fdca (patch)
tree8869ebc8758c7dadd31bd5fdf11386aa79311b81
parentea125ee76032f05c81476a5d453f242268807721 (diff)
downloadgba-experiments-a3e96cb4b1abc95fba71fbd833f9378b6dc5fdca.tar.gz
gba-experiments-a3e96cb4b1abc95fba71fbd833f9378b6dc5fdca.zip
Fix DISP_STATUS and DISP_VCOUNT register size
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 54a153b..0af41f8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,8 +23,8 @@
23 23
24// Display registers. 24// Display registers.
25#define DISP_CTRL *((vu32*)(MEM_IO + 0x0000)) 25#define DISP_CTRL *((vu32*)(MEM_IO + 0x0000))
26#define DISP_STATUS *((vu32*)(MEM_IO + 0x0004)) 26#define DISP_STATUS *((vu16*)(MEM_IO + 0x0004))
27#define DISP_VCOUNT *((vu32*)(MEM_IO + 0x0006)) 27#define DISP_VCOUNT *((vu16*)(MEM_IO + 0x0006))
28 28
29// The first three bits in the DISP_CTRL are used to control the video mode. 29// The first three bits in the DISP_CTRL are used to control the video mode.
30#define DISP_MODE_0 0x0000 30#define DISP_MODE_0 0x0000