summaryrefslogtreecommitdiff
path: root/src/wram.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2018-07-22 18:10:44 +0200
committerxCrystal <rgr.crystal@gmail.com>2018-07-22 18:10:44 +0200
commitc15b4070fb4805e3a1d81e22c858136302a04c9e (patch)
tree65922eb5a0915e51a74f2cfb22efea11392e61c1 /src/wram.asm
parent3f1cda3933a5d474017d3b5af9193e71a88801c3 (diff)
Document more serial functions
Diffstat (limited to 'src/wram.asm')
-rw-r--r--src/wram.asm20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/wram.asm b/src/wram.asm
index 6aed631..e82ad32 100644
--- a/src/wram.asm
+++ b/src/wram.asm
@@ -376,7 +376,7 @@ wOAM:: ; ca00
; 16-byte buffer to store text, usually a name or a number
; used by TX_RAM1 but not exclusively
-wTextBuf:: ; caa0
+wStringBuffer:: ; caa0
ds $10
wcab0:: ; cab0
@@ -586,10 +586,12 @@ wSerialRecvIndex:: ; cba4
wSerialRecvBuf:: ; cba5
ds $20
- ds $1
+wSerialEnd:: ; cbc5
SECTION "WRAM0 Duels 2", WRAM0
+ ds $1
+
; In a duel, the main menu current or last selected menu item
; From 0 to 5: Hand, Attack, Check, Pkmn Power, Retreat, Done
wCurrentDuelMenuItem:: ; cbc6
@@ -682,8 +684,14 @@ wcbe0:: ; cbe0
wAITurnEnded:: ; cbe1
ds $1
-wcbe2:: ; cbe2
- ds $3
+wOppRNG1:: ; cbe2
+ ds $1
+
+wOppRNG2:: ; cbe3
+ ds $1
+
+wOppRNGCounter:: ; cbe4
+ ds $1
; sp is saved here when starting a duel, in order to save the return address
; however, it only seems to be read after a transmission error in a link duel
@@ -701,7 +709,9 @@ wcbe9:: ; cbe9
ds $3
-wcbed:: ; cbed
+; temporarily stores 8 bytes for serial send/recv.
+; used by SerialSend8Bytes and SerialRecv8Bytes
+wTempSerialBuf:: ; cbed
ds $8
ds $2