summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gba/io_reg.h11
-rw-r--r--include/text.h64
2 files changed, 74 insertions, 1 deletions
diff --git a/include/gba/io_reg.h b/include/gba/io_reg.h
index 44d6b932d..87c167ab6 100644
--- a/include/gba/io_reg.h
+++ b/include/gba/io_reg.h
@@ -335,7 +335,7 @@
// I/O registers
-#define REG_DISPCNT (*(vu32 *)REG_ADDR_DISPCNT)
+#define REG_DISPCNT (*(vu16 *)REG_ADDR_DISPCNT)
#define REG_DISPSTAT (*(vu16 *)REG_ADDR_DISPSTAT)
#define REG_VCOUNT (*(vu16 *)REG_ADDR_VCOUNT)
#define REG_BG0CNT (*(vu16 *)REG_ADDR_BG0CNT)
@@ -453,6 +453,15 @@
#define DISPCNT_MODE_5 0x0005
#define DISPCNT_OBJ_1D_MAP 0x0040
#define DISPCNT_FORCED_BLANK 0x0080
+#define DISPCNT_BG0_ON 0x0100
+#define DISPCNT_BG1_ON 0x0200
+#define DISPCNT_BG2_ON 0x0400
+#define DISPCNT_BG3_ON 0x0800
+#define DISPCNT_BG_ALL_ON 0x0F00
+#define DISPCNT_OBJ_ON 0x1000
+#define DISPCNT_WIN0_ON 0x2000
+#define DISPCNT_WIN1_ON 0x4000
+#define DISPCNT_OBJWIN_ON 0x8000
// DISPSTAT
#define DISPSTAT_VBLANK 0x0001 // in V-Blank
diff --git a/include/text.h b/include/text.h
index 4f9bdee5a..43480d9db 100644
--- a/include/text.h
+++ b/include/text.h
@@ -11,6 +11,70 @@
#define PLACEHOLDER_BEGIN 0xFD // string placeholder
#define EOS 0xFF // end of string
+extern vu16 *const gBGControlRegs[];
+extern vu16 *const gBGHOffsetRegs[];
+extern vu16 *const gBGVOffsetRegs[];
+
+extern struct WindowConfig gWindowConfig_81E6C3C;
+extern struct WindowConfig gWindowConfig_81E6C58;
+extern struct WindowConfig gWindowConfig_81E6C74;
+extern struct WindowConfig gWindowConfig_81E6C90;
+extern struct WindowConfig gWindowConfig_81E6CAC;
+extern struct WindowConfig gWindowConfig_81E6CC8;
+extern struct WindowConfig gWindowConfig_81E6CE4;
+extern struct WindowConfig gWindowConfig_81E6D00;
+extern struct WindowConfig gWindowConfig_81E6D1C;
+extern struct WindowConfig gWindowConfig_81E6D38;
+extern struct WindowConfig gWindowConfig_81E6D54;
+extern struct WindowConfig gWindowConfig_81E6D70;
+extern struct WindowConfig gWindowConfig_81E6D8C;
+extern struct WindowConfig gWindowConfig_81E6DA8;
+extern struct WindowConfig gWindowConfig_81E6DC4;
+extern struct WindowConfig gWindowConfig_81E6DE0;
+extern struct WindowConfig gWindowConfig_81E6DFC;
+extern struct WindowConfig gWindowConfig_81E6E18;
+extern struct WindowConfig gWindowConfig_81E6E34;
+extern struct WindowConfig gWindowConfig_81E6E50;
+extern struct WindowConfig gWindowConfig_81E6E6C;
+extern struct WindowConfig gWindowConfig_81E6E88;
+extern struct WindowConfig gWindowConfig_81E6EA4;
+extern struct WindowConfig gWindowConfig_81E6EC0;
+extern struct WindowConfig gWindowConfig_81E6EDC;
+extern struct WindowConfig gWindowConfig_81E6EF8;
+extern struct WindowConfig gWindowConfig_81E6F14;
+extern struct WindowConfig gWindowConfig_81E6F30;
+extern struct WindowConfig gWindowConfig_81E6F4C;
+extern struct WindowConfig gWindowConfig_81E6F68;
+extern struct WindowConfig gWindowConfig_81E6F84;
+extern struct WindowConfig gWindowConfig_81E6FA0;
+extern struct WindowConfig gWindowConfig_81E6FBC;
+extern struct WindowConfig gWindowConfig_81E6FD8;
+extern struct WindowConfig gWindowConfig_81E6FF4;
+extern struct WindowConfig gWindowConfig_81E7010;
+extern struct WindowConfig gWindowConfig_81E702C;
+extern struct WindowConfig gWindowConfig_81E7048;
+extern struct WindowConfig gWindowConfig_81E7064;
+extern struct WindowConfig gWindowConfig_81E7080;
+extern struct WindowConfig gWindowConfig_81E709C;
+extern struct WindowConfig gWindowConfig_81E70B8;
+extern struct WindowConfig gWindowConfig_81E70D4;
+extern struct WindowConfig gWindowConfig_81E70F0;
+extern struct WindowConfig gWindowConfig_81E710C;
+extern struct WindowConfig gWindowConfig_81E7128;
+extern struct WindowConfig gWindowConfig_81E7144;
+extern struct WindowConfig gWindowConfig_81E7160;
+extern struct WindowConfig gWindowConfig_81E717C;
+extern struct WindowConfig gWindowConfig_81E7198;
+extern struct WindowConfig gWindowConfig_81E71B4;
+extern struct WindowConfig gWindowConfig_81E71D0;
+extern struct WindowConfig gWindowConfig_81E71EC;
+extern struct WindowConfig gWindowConfig_81E7208;
+extern struct WindowConfig gWindowConfig_81E7224;
+extern struct WindowConfig gWindowConfig_81E7240;
+extern struct WindowConfig gWindowConfig_81E725C;
+extern struct WindowConfig gWindowConfig_81E7278;
+extern struct WindowConfig gWindowConfig_81E7294;
+
u8 GetExtCtrlCodeLength(u8 code);
#endif // GUARD_TEXT_H