summaryrefslogtreecommitdiff
path: root/wram.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2019-10-21 00:27:34 +0200
committermid-kid <esteve.varela@gmail.com>2019-10-21 00:42:36 +0200
commit86061d37d2aff18530d4340796c0799bb316e7f0 (patch)
tree2aeb40fb1c53f682cf722de345d1a50524440e21 /wram.asm
parentf4907040c9f757960dd1e37c3c02a3c01824b1e1 (diff)
More mobile SDK documentation
Labelled WRAM addresses, added constants for mobile commands, fixed some mobile lib function names, documented most of the functions for specific commands.
Diffstat (limited to 'wram.asm')
-rw-r--r--wram.asm21
1 files changed, 16 insertions, 5 deletions
diff --git a/wram.asm b/wram.asm
index e2c8f1fbc..fa885ddd7 100644
--- a/wram.asm
+++ b/wram.asm
@@ -731,6 +731,9 @@ wPuzzlePieces:: ds 6 * 6
wUnownPuzzleEnd::
NEXTU ; c608
+wMobileTransferData:: ds $1e0
+
+NEXTU ; c608
; This union spans 200 bytes from c608 to c6d0.
UNION ; c608
@@ -759,7 +762,6 @@ wOddEggName:: ds MON_NAME_LENGTH
wOddEggOTName:: ds NAME_LENGTH
NEXTU ; c608
-; mobile data
wc608:: ds 53
wc63d:: ds 5
wc642:: ds 5
@@ -1052,14 +1054,15 @@ wc80e:: ds 1
wc80f:: ds 1
wc810:: ds 1
wc811:: ds 1
-wc812:: ds 1
-wc813:: ds 1
+wMobileSDK_PacketChecksum:: dw ; c812
wc814:: ds 4
-wc818:: ds 6
+wMobileSDK_AdapterType:: db ; c818
+ ds 5
wMobileSDK_SendCommandID:: db ; c81e
ds 1
wc820:: ds 1
-wc821:: ds 47
+wc821:: ds 1
+wc822:: ds 46
UNION ; c850
wMysteryGiftTrainerData:: ds (1 + 1 + NUM_MOVES) * PARTY_LENGTH + 2
@@ -1126,6 +1129,13 @@ NEXTU ; ca00
; link data
ds 191
wcabf:: ds 1
+
+NEXTU ; ca00
+ ds $2f
+wMobileSDK_ReceivePacketBufferAlt:: ds 11 ; ca2f
+wMobileSDK_ReceivedBytes:: dw ; ca3a
+wMobileSDK_ReceivePacketBuffer:: ; ca3c
+
ENDU ; cb00
ds 14
@@ -3066,6 +3076,7 @@ NEXTU ; dd68
w3_de00:: ds $200
ENDU ; e000
+
SECTION "GBC Video", WRAMX, ALIGN[8]
; LCD expects wLYOverrides to have an alignment of $100