From eb4db4618f00545f92bce8b0b1a21687e68be613 Mon Sep 17 00:00:00 2001 From: padz Date: Sun, 23 Dec 2012 03:21:19 -0500 Subject: clean up bank 0; time-sensitive fns; add Predef fn comment redone joypad functions + automated input comment some uncommented functions comment known hram addresses try to clean up CalcMagikarpLength label known addresses add time-sensitive functions (rtc, palettes) add Predef and PredefPointers --- constants.asm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'constants.asm') diff --git a/constants.asm b/constants.asm index ef360ebcd..4d1fe2ef3 100644 --- a/constants.asm +++ b/constants.asm @@ -3292,4 +3292,25 @@ BATTLETYPE_ROAMING EQU $05 BATTLETYPE_SHINY EQU $07 BATTLETYPE_TREE EQU $08 BATTLETYPE_FORCEITEM EQU $0a -BATTLETYPE_SUICUNE EQU $0c \ No newline at end of file +BATTLETYPE_SUICUNE EQU $0c + + +; joypad +NO_INPUT EQU %00000000 +BUTTON_A EQU %00000001 +BUTTON_B EQU %00000010 +SELECT EQU %00000100 +START EQU %00001000 +D_RIGHT EQU %00010000 +D_LEFT EQU %00100000 +D_UP EQU %01000000 +D_DOWN EQU %10000000 + +; mbc +NUM_SRAM_BANKS EQU 4 + +; provisional wram bank 5 labels +Unkn1Pals EQU $d000 ; 8 4-color palettes little endian) +Unkn2Pals EQU $d040 ; 8 4-color palettes little endian) +BGPals EQU $d080 ; 8 4-color palettes little endian) +OBPals EQU $d0c0 ; 8 4-color palettes little endian) \ No newline at end of file -- cgit v1.2.3