summaryrefslogtreecommitdiff
path: root/src/hram.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2018-02-27 11:09:09 -0600
committerGitHub <noreply@github.com>2018-02-27 11:09:09 -0600
commit96b32412d82bdee2756b1a300b05d2647da9ad1f (patch)
tree677858a17041e829c8a442be2b16b43e20d2a341 /src/hram.asm
parent24f40989d472407dc51653f2a671348126c6e816 (diff)
parent43d4b8644de2ffb3b1fc13638081cd228c4b2c74 (diff)
Merge pull request #35 from xCrystal/master
Lots of bank0 and some bank1 disasm, labeling and corrections ; Many constants related to duels, cards, and WRAM structs ; Replace hardcoded WRAM addresses with generic labels ; Style clean up ; Format SGB packets ; Reorganize some gfx files
Diffstat (limited to 'src/hram.asm')
-rw-r--r--src/hram.asm61
1 files changed, 58 insertions, 3 deletions
diff --git a/src/hram.asm b/src/hram.asm
index 1951d99..58c455b 100644
--- a/src/hram.asm
+++ b/src/hram.asm
@@ -3,7 +3,7 @@ SECTION "HRAM", HRAM
hBankROM:: ; ff80
ds 1
-hBankRAM:: ; ff81
+hBankSRAM:: ; ff81
ds 1
hBankVRAM:: ; ff82
@@ -39,20 +39,71 @@ hWX:: ; ff94
hWY:: ; ff95
ds 1
+hff96:: ; ff96
ds 1
; $c2 = player ; $c3 = opponent
hWhoseTurn:: ; ff97
ds 1
-hTempCardNumber:: ; ff98
+; deck index of a card (0-59)
+hTempCardIndex_ff98:: ; ff98
ds 1
- ds 22
+; used in SortCardsInListByID
+hTempListPtr_ff99:: ; ff99
+ ds 2
+
+; used in SortCardsInListByID
+; this function supports 16-bit card IDs
+hTempCardID_ff9b:: ; ff9b
+ ds 2
+
+; a PLAY_AREA_ARENA constant (0: arena card, 1-5: bench card)
+hTempPlayAreaLocationOffset_ff9d:: ; ff9d
+ ds 1
+
+hAIActionTableIndex:: ; ff9e
+ ds 1
+
+hTempCardIndex_ff9f:: ; ff9f
+ ds 1
+
+; multipurpose temp storage
+hffa0:: ; ffa0
+ ds 1
+
+hTempPlayAreaLocationOffset_ffa1:: ; ffa1
+ ds 1
+
+ ds 6
+
+; hffa8 through hffb0 appear to be related to text processing
+hffa8:: ; ffa8
+ ds 1
+
+hffa9:: ; ffa9
+ ds 1
+
+hffaa:: ; ffaa
+ ds 1
+
+hffab:: ; ffab
+ ds 1
+
+hffac:: ; ffac
+ ds 1
+
+hffad:: ; ffad
+ ds 1
+
+hffae:: ; ffae
+ ds 1
hffaf:: ; ffaf
ds 1
+hffb0:: ; ffb0
ds 1
hCurrentMenuItem:: ; ffb1
@@ -62,3 +113,7 @@ hCurrentMenuItem:: ; ffb1
hffb5:: ; ffb5
ds 1
+
+; used in DivideBCbyDE
+hffb6:: ; ffb6
+ ds 1 \ No newline at end of file