summaryrefslogtreecommitdiff
path: root/gflib
diff options
context:
space:
mode:
Diffstat (limited to 'gflib')
-rw-r--r--gflib/io_reg.c36
-rw-r--r--gflib/io_reg.h7
2 files changed, 43 insertions, 0 deletions
diff --git a/gflib/io_reg.c b/gflib/io_reg.c
new file mode 100644
index 000000000..44364349d
--- /dev/null
+++ b/gflib/io_reg.c
@@ -0,0 +1,36 @@
+#include "global.h"
+#include "io_reg.h"
+#include "gba/io_reg.h"
+
+static const u32 sUnused[] = {
+ 0,
+ 0,
+ (1 << 26) | (1 << 3),
+ (1 << 26) | (1 << 3) | (1 << 1),
+ (1 << 26) | (1 << 3) | (1 << 2),
+ (1 << 26) | (1 << 3) | (1 << 2) | (1 << 1),
+ (1 << 26) | (1 << 4),
+ (1 << 26) | (1 << 4) | (1 << 2),
+ (1 << 26) | (1 << 4) | (1 << 3),
+ (1 << 26) | (1 << 4) | (1 << 3) | (1 << 2),
+ (1 << 26) | (1 << 4) | (1 << 1),
+ (1 << 26) | (1 << 4) | (1 << 2) | (1 << 1),
+ (1 << 26) | (1 << 4) | (1 << 3) | (1 << 1),
+ (1 << 26) | (1 << 4) | (1 << 3) | (1 << 2) | (1 << 1),
+ (1 << 25) | (1 << 8),
+ (1 << 27) | (1 << 10),
+};
+
+const u16 gOverworldBackgroundLayerFlags[] = {
+ BLDCNT_TGT2_BG0,
+ BLDCNT_TGT2_BG1,
+ BLDCNT_TGT2_BG2,
+ BLDCNT_TGT2_BG3,
+};
+
+const u16 gOrbEffectBackgroundLayerFlags[] = {
+ BLDCNT_TGT1_BG0,
+ BLDCNT_TGT1_BG1,
+ BLDCNT_TGT1_BG2,
+ BLDCNT_TGT1_BG3,
+};
diff --git a/gflib/io_reg.h b/gflib/io_reg.h
new file mode 100644
index 000000000..82d2fc5ed
--- /dev/null
+++ b/gflib/io_reg.h
@@ -0,0 +1,7 @@
+#ifndef GUARD_IO_REG_H
+#define GUARD_IO_REG_H
+
+extern const u16 gOverworldBackgroundLayerFlags[];
+extern const u16 gOrbEffectBackgroundLayerFlags[];
+
+#endif // GUARD_IO_REG_H