summaryrefslogtreecommitdiff
path: root/include/gba/defines.h
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-11-04 19:49:38 -0700
committerGitHub <noreply@github.com>2017-11-04 19:49:38 -0700
commit8832b766facd48c85c1b99ac6dad555f1e2aa1c7 (patch)
tree8f4bded9d721a993674a4e5d9eeb57ad86580d39 /include/gba/defines.h
parent1698e882b4760bcfe8cf91073cf7e46541ae6392 (diff)
parentb4c6e0560a7b1310cc08b93ea04935d4fbb7c3de (diff)
Merge pull request #450 from ProjectRevoTPP/fix_setmondata
various fixes
Diffstat (limited to 'include/gba/defines.h')
-rw-r--r--include/gba/defines.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/gba/defines.h b/include/gba/defines.h
index 0f7f06755..7fd429d9e 100644
--- a/include/gba/defines.h
+++ b/include/gba/defines.h
@@ -29,15 +29,16 @@
#define BG_VRAM VRAM
#define BG_VRAM_SIZE 0x10000
-#define BG_CHAR_ADDR(n) (BG_VRAM + (0x4000 * (n)))
-#define BG_SCREEN_ADDR(n) (BG_VRAM + (0x800 * (n)))
+#define BG_CHAR_ADDR(n) (void *)(BG_VRAM + (0x4000 * (n)))
+#define BG_SCREEN_ADDR(n) (void *)(BG_VRAM + (0x800 * (n)))
+#define BG_TILE_ADDR(n) (void *)(BG_VRAM + (0x80 * (n)))
// text-mode BG
-#define OBJ_VRAM0 (VRAM + 0x10000)
+#define OBJ_VRAM0 (void *)(VRAM + 0x10000)
#define OBJ_VRAM0_SIZE 0x8000
// bitmap-mode BG
-#define OBJ_VRAM1 (VRAM + 0x14000)
+#define OBJ_VRAM1 (void *)(VRAM + 0x14000)
#define OBJ_VRAM1_SIZE 0x4000
#define OAM 0x7000000