summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
Diffstat (limited to 'constants')
-rwxr-xr-xconstants/cgb_constants.asm32
-rw-r--r--constants/misc_constants.asm26
-rw-r--r--constants/wram_constants.asm15
3 files changed, 65 insertions, 8 deletions
diff --git a/constants/cgb_constants.asm b/constants/cgb_constants.asm
new file mode 100755
index 000000000..27dce0494
--- /dev/null
+++ b/constants/cgb_constants.asm
@@ -0,0 +1,32 @@
+ const_def
+ const SCGB_00
+ const SCGB_01
+ const SCGB_02
+ const SCGB_03
+ const SCGB_04
+ const SCGB_05
+ const SCGB_06
+ const SCGB_07
+ const SCGB_08
+ const SCGB_09
+ const SCGB_0A
+ const SCGB_0B
+ const SCGB_0C
+ const SCGB_0D
+ const SCGB_0E
+ const SCGB_0F
+ const SCGB_10
+ const SCGB_11
+ const SCGB_12
+ const SCGB_13
+ const SCGB_14
+ const SCGB_15
+ const SCGB_16
+ const SCGB_17
+ const SCGB_18
+ const SCGB_19
+ const SCGB_1A
+ const SCGB_1B
+ const SCGB_1C
+ const SCGB_1D
+ const SCGB_1E
diff --git a/constants/misc_constants.asm b/constants/misc_constants.asm
index 4991daf0a..cc0257cfb 100644
--- a/constants/misc_constants.asm
+++ b/constants/misc_constants.asm
@@ -46,15 +46,25 @@ CHECK_FLAG EQU 2
; joypad
+ const_def
+ const A_BUTTON_F
+ const B_BUTTON_F
+ const SELECT_F
+ const START_F
+ const D_RIGHT_F
+ const D_LEFT_F
+ const D_UP_F
+ const D_DOWN_F
+
NO_INPUT EQU %00000000
-A_BUTTON EQU %00000001
-B_BUTTON EQU %00000010
-SELECT EQU %00000100
-START EQU %00001000
-D_RIGHT EQU %00010000
-D_LEFT EQU %00100000
-D_UP EQU %01000000
-D_DOWN EQU %10000000
+A_BUTTON EQU 1 << A_BUTTON_F
+B_BUTTON EQU 1 << B_BUTTON_F
+SELECT EQU 1 << SELECT_F
+START EQU 1 << START_F
+D_RIGHT EQU 1 << D_RIGHT_F
+D_LEFT EQU 1 << D_LEFT_F
+D_UP EQU 1 << D_UP_F
+D_DOWN EQU 1 << D_DOWN_F
BUTTONS EQU A_BUTTON | B_BUTTON | SELECT | START
D_PAD EQU D_RIGHT | D_LEFT | D_UP | D_DOWN
diff --git a/constants/wram_constants.asm b/constants/wram_constants.asm
index ffe9b11a6..a8d348e6c 100644
--- a/constants/wram_constants.asm
+++ b/constants/wram_constants.asm
@@ -7,10 +7,25 @@ BREEDMON EQU 3
WILDMON EQU 4
; Options: ; cfcc
+FAST_TEXT EQU 0
+MED_TEXT EQU 1
+SLOW_TEXT EQU 2
NO_TEXT_SCROLL EQU 4
+; bits
+STEREO EQU 5
BATTLE_SHIFT EQU 6
BATTLE_SCENE EQU 7
+; Options2:
+MENU_ACCOUNT EQU 0
+
+; GBPrinter:
+PRINT_LIGHTEST EQU $00
+PRINT_LIGHTER EQU $20
+PRINT_NORMAL EQU $40
+PRINT_DARKER EQU $60
+PRINT_DARKEST EQU $7f
+
; WalkingDirection: ; d043
STANDING EQU -1
DOWN EQU 0