summaryrefslogtreecommitdiff
path: root/include/gba/types.h
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2017-12-22 17:58:40 -0600
committerGitHub <noreply@github.com>2017-12-22 17:58:40 -0600
commitaa13f45ebb79aed62171fbfe654d8b542fc9aa6c (patch)
tree89d4bc15a468733180a0d76041f73ee5364e5d89 /include/gba/types.h
parent62bdd4d480ced306b85791c828ee8497e9fa2acc (diff)
parent7bf8a1c67fb373854673e870b15ba5170e7b0243 (diff)
Merge pull request #490 from camthesaxman/decompile_contest
decompile contest.s
Diffstat (limited to 'include/gba/types.h')
-rw-r--r--include/gba/types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gba/types.h b/include/gba/types.h
index 480619d21..33ae7df9a 100644
--- a/include/gba/types.h
+++ b/include/gba/types.h
@@ -28,6 +28,17 @@ typedef u8 bool8;
typedef u16 bool16;
typedef u32 bool32;
+struct BgCnt
+{
+ u16 priority:2;
+ u16 charBaseBlock:2;
+ u16 dummy:4;
+ u16 screenBaseBlock:5;
+ u16 areaOverflowMode:1;
+ u16 screenSize:2;
+};
+typedef volatile struct BgCnt vBgCnt;
+
struct PlttData
{
u16 r:5; // red