Enumerate MobileAPI function constants

This commit is contained in:
mid-kid 2022-01-16 23:50:50 +01:00
parent ce16317f33
commit 1dc88cb585
8 changed files with 152 additions and 115 deletions

View File

@ -1,3 +1,40 @@
; MobileAPI calls (see lib/mobile/main.asm:_MobileAPI)
const_def 0, 2
const MOBILEAPI_00
const MOBILEAPI_01
const MOBILEAPI_02
const MOBILEAPI_03
const MOBILEAPI_04
const MOBILEAPI_05
const MOBILEAPI_06
const MOBILEAPI_07
const MOBILEAPI_08
const MOBILEAPI_09
const MOBILEAPI_0A
const MOBILEAPI_0B
const MOBILEAPI_0C
const MOBILEAPI_0D
const MOBILEAPI_0E
const MOBILEAPI_0F
const MOBILEAPI_10
const MOBILEAPI_11
const MOBILEAPI_12
const MOBILEAPI_13
const MOBILEAPI_14
const MOBILEAPI_15
const MOBILEAPI_16
const MOBILEAPI_17
const MOBILEAPI_SETTIMER
const MOBILEAPI_19
const MOBILEAPI_1A
const MOBILEAPI_1B
const MOBILEAPI_1C
const MOBILEAPI_1D
const MOBILEAPI_1E
const MOBILEAPI_1F
const MOBILEAPI_20
const MOBILEAPI_21
; MobileEZChatCategoryPointers indexes (see mobile/fixed_words.asm) ; MobileEZChatCategoryPointers indexes (see mobile/fixed_words.asm)
const_def const_def
const EZCHAT_POKEMON const EZCHAT_POKEMON

View File

@ -1,7 +1,7 @@
Function3e32:: MobileAPI::
; Mobile ; Mobile
cp $2 cp $2
ld [wc988], a ld [wMobileAPIIndex], a
ld a, l ld a, l
ld [wc986], a ld [wc986], a
ld a, h ld a, h
@ -22,19 +22,19 @@ Function3e32::
set 6, [hl] set 6, [hl]
ldh a, [hROMBank] ldh a, [hROMBank]
push af push af
ld a, BANK(Function110030) ld a, BANK(_MobileAPI)
ld [wc981], a ld [wc981], a
rst Bankswitch rst Bankswitch
jp Function110030 jp _MobileAPI
Function3e60:: ReturnMobileAPI::
; Return from Function110030 ; Return from _MobileAPI
ld [wc986], a ld [wc986], a
ld a, l ld a, l
ld [wc987], a ld [wc987], a
ld a, h ld a, h
ld [wc988], a ld [wMobileAPIIndex], a
pop bc pop bc
ld a, b ld a, b

View File

@ -88,40 +88,40 @@ ResetReceivePacketBuffer:
ld [hl], a ld [hl], a
ret ret
Function110030:: _MobileAPI::
; Use the byte at wc988 as a parameter ; Use the byte at wMobileAPIIndex as a parameter
; for a dw. ; for a dw.
; If [wc988] not in {12, 14, 16}, ; If [wMobileAPIIndex] not in {MOBILEAPI_06, MOBILEAPI_07, MOBILEAPI_08},
; clear [wc835]. ; clear [wc835].
push de push de
ld a, [wc988] ld a, [wMobileAPIIndex]
cp $0c cp MOBILEAPI_06
jr z, .noreset jr z, .noreset
cp $0e cp MOBILEAPI_07
jr z, .noreset jr z, .noreset
cp $10 cp MOBILEAPI_08
jr z, .noreset jr z, .noreset
xor a xor a
ld [wc835], a ld [wc835], a
ld a, [wc988] ld a, [wMobileAPIIndex]
.noreset .noreset
; Get the pointer ; Get the pointer
ld d, 0 ld d, 0
ld e, a ld e, a
ld hl, .dw ld hl, .dw
add hl, de add hl, de
; Store the low byte in [wc988] ; Store the low byte in [wMobileAPIIndex]
ld a, [hli] ld a, [hli]
ld [wc988], a ld [wMobileAPIIndex], a
ld a, [hl] ld a, [hl]
; restore de ; restore de
pop de pop de
ld hl, Function3e60 ; return here ld hl, ReturnMobileAPI ; return here
push hl push hl
; If the destination function is not Function110236, ; If the destination function is not Function110236,
; call Function1100b4. ; call Function1100b4.
ld h, a ld h, a
ld a, [wc988] ld a, [wMobileAPIIndex]
ld l, a ld l, a
push hl push hl
ld a, LOW(Function110236) ld a, LOW(Function110236)
@ -135,7 +135,7 @@ Function110030::
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
ret ; indirectly jump to the function loaded from the dw, which returns to Function3e60. ret ; indirectly jump to the function loaded from the dw, which returns to ReturnMobileAPI.
.dw .dw
dw Function110115 dw Function110115
@ -162,7 +162,7 @@ Function110030::
dw Function110ddd dw Function110ddd
dw Function1111fe dw Function1111fe
dw Function1113fe dw Function1113fe
dw Function1100dc dw MobileAPI_SetTimer
dw Function111541 dw Function111541
dw Function111596 dw Function111596
dw Function11162d dw Function11162d
@ -201,7 +201,7 @@ Function1100b4:
pop bc pop bc
ret ret
Function1100dc: MobileAPI_SetTimer:
xor a xor a
ldh [rTAC], a ldh [rTAC], a
ld e, c ld e, c
@ -231,10 +231,10 @@ Function1100dc:
ld a, [hl] ld a, [hl]
ld [wc820], a ld [wc820], a
ld [wc815], a ld [wc815], a
ld c, $7 ld c, LOW(rTAC)
ld a, $2 ld a, rTAC_65536_HZ
ldh [c], a ldh [c], a
ld a, $6 ld a, 1 << rTAC_ON | rTAC_65536_HZ
ldh [c], a ldh [c], a
ret ret
@ -413,7 +413,7 @@ Function110235:
nop nop
Function110236: Function110236:
ld a, [wc988] ld a, [wMobileAPIIndex]
push af push af
push bc push bc
push hl push hl
@ -453,7 +453,7 @@ Function110236:
xor a xor a
ld [wc819], a ld [wc819], a
ld c, $c ld c, $c
call Function1100dc call MobileAPI_SetTimer
call Function1104b0 call Function1104b0
pop af pop af
cp $35 cp $35
@ -505,7 +505,7 @@ Function110291:
ld [hl], a ld [hl], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
ld hl, wc829 ld hl, wc829
ld a, $72 ld a, $72
ld [hli], a ld [hli], a
@ -590,7 +590,7 @@ Function11032c:
ld [hl], a ld [hl], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
ld de, wMobileSDK_PacketBuffer ld de, wMobileSDK_PacketBuffer
ld b, 6 ; header size ld b, 6 ; header size
ld hl, MobilePacket_ReadConfigurationDataPart1 ld hl, MobilePacket_ReadConfigurationDataPart1
@ -676,7 +676,7 @@ Function1103ac:
ld [wc97a], a ld [wc97a], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
ld hl, wc829 ld hl, wc829
ld a, $80 ld a, $80
ld [hli], a ld [hli], a
@ -741,7 +741,7 @@ Function110438:
ld [wc97a], a ld [wc97a], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
ld hl, wc98f ld hl, wc98f
ld a, $81 ld a, $81
ld [hli], a ld [hli], a
@ -929,7 +929,7 @@ Function110596:
ld [wc819], a ld [wc819], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
ld hl, wc829 ld hl, wc829
ld a, $80 ld a, $80
ld [hli], a ld [hli], a
@ -956,7 +956,7 @@ Function1105dd:
ldh [rTAC], a ldh [rTAC], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
ld hl, wc98f ld hl, wc98f
ld a, $81 ld a, $81
ld [hli], a ld [hli], a
@ -3252,7 +3252,7 @@ Function111541:
ld hl, MobilePacket_TelephoneStatus ld hl, MobilePacket_TelephoneStatus
call PacketSendEmptyBody call PacketSendEmptyBody
.asm_11156f .asm_11156f
ld a, [wc988] ld a, [wMobileAPIIndex]
cp $40 cp $40
jr nz, .asm_11157a jr nz, .asm_11157a
ld a, $2c ld a, $2c
@ -3270,7 +3270,7 @@ Function111541:
ldh [rTAC], a ldh [rTAC], a
ld a, [wc870] ld a, [wc870]
ld c, a ld c, a
call Function1100dc call MobileAPI_SetTimer
call Function1104b0 call Function1104b0
ld a, $1 ld a, $1
ld [wc86b], a ld [wc86b], a
@ -4926,13 +4926,13 @@ MobilePacket_CloseTCPConnection:
.End .End
Unknown_112089: Unknown_112089:
db $ec, $14, $c9 db -20, $14, $c9
db $e4, $0f, $0e db -28, $0f, $0e
db $e0, $0c, $53 db -32, $0c, $53
db $c4, $07, $94 db -60, $07, $94
db $b0, $05, $ee db -80, $05, $ee
db $ec, $10, $b4 db -20, $10, $b4
db $e4, $0c, $dd db -28, $0c, $dd
Unknown_11209e: Unknown_11209e:
db "HELO ", 0 db "HELO ", 0

View File

@ -481,8 +481,8 @@ Function10034d:
ret ret
.asm_10036a .asm_10036a
ld a, 0 ld a, MOBILEAPI_00
call Function3e32 call MobileAPI
ld [wcd2c], a ld [wcd2c], a
ld a, h ld a, h
ld [wcd2d], a ld [wcd2d], a
@ -505,14 +505,14 @@ Function100382:
Function10038a: Function10038a:
ld hl, wccb4 ld hl, wccb4
ld a, $2e ld a, MOBILEAPI_17
call Function3e32 call MobileAPI
ret ret
Function100393: Function100393:
ld hl, wcc60 ld hl, wcc60
ld a, $3a ld a, MOBILEAPI_1D
call Function3e32 call MobileAPI
ret ret
Function10039c: Function10039c:
@ -3138,32 +3138,32 @@ Function101507:
ld de, wcd30 ld de, wcd30
ld hl, $40 ld hl, $40
ld bc, $40 ld bc, $40
ld a, $02 ld a, MOBILEAPI_01
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
ret ret
Function10151d: ; unreferenced Function10151d: ; unreferenced
ld a, $34 ld a, MOBILEAPI_1A
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
ret ret
Function10152a: Function10152a:
ld a, $36 ld a, MOBILEAPI_1B
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
ret ret
Function101537: Function101537:
ld a, $0a ld a, MOBILEAPI_05
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
@ -3171,8 +3171,8 @@ Function101537:
Function101544: Function101544:
farcall StartMobileInactivityTimer farcall StartMobileInactivityTimer
ld a, $12 ld a, MOBILEAPI_09
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
@ -3181,8 +3181,8 @@ Function101544:
Function101557: Function101557:
farcall StartMobileInactivityTimer farcall StartMobileInactivityTimer
ld hl, wcd53 ld hl, wcd53
ld a, $08 ld a, MOBILEAPI_04
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a

View File

@ -865,8 +865,8 @@ Function10635c:
ld de, wcd30 ld de, wcd30
ld hl, $41 ld hl, $41
ld bc, $41 ld bc, $41
ld a, $40 ld a, MOBILEAPI_20
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
@ -935,8 +935,8 @@ Function1063e5:
Function1063f3: Function1063f3:
ld de, wcd31 ld de, wcd31
ld a, $32 ld a, MOBILEAPI_19
call Function3e32 call MobileAPI
ld a, [wMobileCommsJumptableIndex] ld a, [wMobileCommsJumptableIndex]
inc a inc a
ld [wMobileCommsJumptableIndex], a ld [wMobileCommsJumptableIndex], a
@ -983,8 +983,8 @@ Function106403:
ret ret
Function106442: Function106442:
ld a, $36 ld a, MOBILEAPI_1B
call Function3e32 call MobileAPI
xor a xor a
ldh [hMobile], a ldh [hMobile], a
ldh [hMobileReceive], a ldh [hMobileReceive], a

View File

@ -910,15 +910,15 @@ Function11878d:
ret c ret c
ret ret
.asm_1187af .asm_1187af
ld a, $0 ld a, MOBILEAPI_00
call Function3e32 call MobileAPI
ld [wMobileErrorCodeBuffer], a ld [wMobileErrorCodeBuffer], a
ld a, l ld a, l
ld [wMobileErrorCodeBuffer + 1], a ld [wMobileErrorCodeBuffer + 1], a
ld a, h ld a, h
ld [wMobileErrorCodeBuffer + 2], a ld [wMobileErrorCodeBuffer + 2], a
ld a, $a ld a, MOBILEAPI_05
call Function3e32 call MobileAPI
ld a, [wc3f0] ld a, [wc3f0]
ld [wc319], a ld [wc319], a
ld a, [wcd34] ld a, [wcd34]
@ -940,18 +940,18 @@ Function11878d:
jr c, .asm_1187fd jr c, .asm_1187fd
sla a sla a
jr c, .asm_1187f5 jr c, .asm_1187f5
ld a, $24 ld a, MOBILEAPI_12
jr .asm_1187ff jr .asm_1187ff
.asm_1187f5 .asm_1187f5
ld a, $28 ld a, MOBILEAPI_14
jr .asm_1187ff jr .asm_1187ff
.asm_1187f9 .asm_1187f9
ld a, $2a ld a, MOBILEAPI_15
jr .asm_1187ff jr .asm_1187ff
.asm_1187fd .asm_1187fd
ld a, $2c ld a, MOBILEAPI_16
.asm_1187ff .asm_1187ff
call Function3e32 call MobileAPI
ret ret
.asm_118803 .asm_118803
ld a, $d3 ld a, $d3
@ -961,8 +961,8 @@ SetMobileErrorCode:
xor a xor a
ld [wMobileErrorCodeBuffer + 1], a ld [wMobileErrorCodeBuffer + 1], a
ld [wMobileErrorCodeBuffer + 2], a ld [wMobileErrorCodeBuffer + 2], a
ld a, $a ld a, MOBILEAPI_05
call Function3e32 call MobileAPI
ld a, [wc3f0] ld a, [wc3f0]
ld [wc319], a ld [wc319], a
ld a, [wcd34] ld a, [wcd34]
@ -978,8 +978,8 @@ Function118821:
ldh a, [hJoyDown] ldh a, [hJoyDown]
cp $5 cp $5
jr nz, .asm_11884a jr nz, .asm_11884a
ld a, $a ld a, MOBILEAPI_05
call Function3e32 call MobileAPI
ld a, $a ld a, $a
ld [wMobileErrorCodeBuffer], a ld [wMobileErrorCodeBuffer], a
ld a, [wc3f0] ld a, [wc3f0]
@ -996,8 +996,8 @@ Function11884c:
ldh a, [hJoyDown] ldh a, [hJoyDown]
cp $5 cp $5
jr nz, .asm_118864 jr nz, .asm_118864
ld a, $a ld a, MOBILEAPI_05
call Function3e32 call MobileAPI
ld a, $a ld a, $a
ld [wMobileErrorCodeBuffer], a ld [wMobileErrorCodeBuffer], a
ld a, [wcd34] ld a, [wcd34]
@ -1036,7 +1036,7 @@ Function118880:
ld [wc807], a ld [wc807], a
ld de, wcd81 ld de, wcd81
ld hl, $46 ld hl, $46
ld a, $2 ld a, MOBILEAPI_01
jp Function119e2b jp Function119e2b
Function118896: ; unreferenced Function118896: ; unreferenced
@ -1049,7 +1049,7 @@ Function118896: ; unreferenced
jr z, .asm_1188aa jr z, .asm_1188aa
.asm_1188a5 .asm_1188a5
ld a, $34 ld a, MOBILEAPI_1A
jp Function119e2b jp Function119e2b
.asm_1188aa .asm_1188aa
@ -1058,17 +1058,17 @@ Function118896: ; unreferenced
Function1188b0: Function1188b0:
ld de, wc346 ld de, wc346
ld a, $c ld a, MOBILEAPI_06
jp Function119e2b jp Function119e2b
Function1188b8: Function1188b8:
ld de, wc3ac ld de, wc3ac
ld a, $e ld a, MOBILEAPI_07
jp Function119e2b jp Function119e2b
Function1188c0: Function1188c0:
ld de, wc3cd ld de, wc3cd
ld a, $10 ld a, MOBILEAPI_08
jp Function119e2b jp Function119e2b
Function1188c8: Function1188c8:
@ -1085,7 +1085,7 @@ Function1188c8:
call Function119eb4 call Function119eb4
call Function119ec2 call Function119ec2
ld hl, wc708 ld hl, wc708
ld a, $6 ld a, MOBILEAPI_03
jp Function119e2b jp Function119e2b
Function1188e7: Function1188e7:
@ -1394,7 +1394,7 @@ Function118ae4:
call Function118b24 call Function118b24
pop de pop de
pop bc pop bc
ld a, $2a ld a, MOBILEAPI_15
jp Function119e2b jp Function119e2b
Function118b10: Function118b10:
@ -1406,7 +1406,7 @@ Function118b10:
call Function118b24 call Function118b24
pop bc pop bc
pop de pop de
ld a, $2a ld a, MOBILEAPI_15
jp Function119e2b jp Function119e2b
Function118b24: Function118b24:
@ -1602,7 +1602,7 @@ asm_118d9f:
ld hl, w3_d800 ld hl, w3_d800
ld de, w3_de00 ld de, w3_de00
ld bc, $200 ld bc, $200
ld a, $2c ld a, MOBILEAPI_16
jp Function119e2b jp Function119e2b
Function118ded: Function118ded:
@ -1697,7 +1697,7 @@ asm_118e3e:
Function118e6d: Function118e6d:
xor a xor a
ld [wcd65], a ld [wcd65], a
ld a, $a ld a, MOBILEAPI_05
jp Function119e2b jp Function119e2b
Function118e76: Function118e76:
@ -1709,7 +1709,7 @@ Function118e76:
Function118e7e: Function118e7e:
call BattleTowerRoomMenu2 call BattleTowerRoomMenu2
ret c ret c
ld a, $36 ld a, MOBILEAPI_1B
jp Function119e2b jp Function119e2b
BattleTowerRoomMenu_CallRoomMenu2: BattleTowerRoomMenu_CallRoomMenu2:
@ -1857,7 +1857,7 @@ Function118f68:
ld hl, wc346 ld hl, wc346
ld de, w3_de00 ld de, w3_de00
ld bc, $200 ld bc, $200
ld a, $2c ld a, MOBILEAPI_16
jp Function119e2b jp Function119e2b
.asm_118fba .asm_118fba
@ -1937,7 +1937,7 @@ Function119009:
ld hl, wc346 ld hl, wc346
ld de, w3_d000 ld de, w3_d000
ld bc, $1000 ld bc, $1000
ld a, $2c ld a, MOBILEAPI_16
jp Function119e2b jp Function119e2b
Function119054: Function119054:
@ -2471,7 +2471,7 @@ Function1193a0:
ld hl, wc346 ld hl, wc346
ld de, w3_de00 ld de, w3_de00
ld bc, $200 ld bc, $200
ld a, $2c ld a, MOBILEAPI_16
jp Function119e2b jp Function119e2b
Function1193e3: Function1193e3:
@ -2856,7 +2856,7 @@ Function119648:
call Function118b24 call Function118b24
ld de, w3_d000 ld de, w3_d000
ld bc, $1000 ld bc, $1000
ld a, $2a ld a, MOBILEAPI_15
jp Function119e2b jp Function119e2b
Function119665: Function119665:
@ -3147,7 +3147,7 @@ Function1197dc:
call Function118b24 call Function118b24
ld de, w3_d000 ld de, w3_d000
ld bc, $1000 ld bc, $1000
ld a, $2a ld a, MOBILEAPI_15
jp Function119e2b jp Function119e2b
Function119800: Function119800:
@ -3287,7 +3287,7 @@ Function1198f7:
ld hl, w3_d800 ld hl, w3_d800
ld de, w3_de00 ld de, w3_de00
ld bc, $200 ld bc, $200
ld a, $2c ld a, MOBILEAPI_16
jp Function119e2b jp Function119e2b
Function119937: Function119937:
@ -3328,7 +3328,7 @@ Function119954:
jr nz, .asm_119962 jr nz, .asm_119962
call Function119ec2 call Function119ec2
ld hl, wc608 ld hl, wc608
ld a, $1e ld a, MOBILEAPI_0F
jp Function119e2b jp Function119e2b
Function119973: Function119973:
@ -3338,7 +3338,7 @@ Function119973:
ld [wcf65], a ld [wcf65], a
ld [w3_d090], a ld [w3_d090], a
ld de, w3_d000 ld de, w3_d000
ld a, $20 ld a, MOBILEAPI_10
jp Function119e2b jp Function119e2b
Function119987: Function119987:
@ -3351,7 +3351,7 @@ Function119987:
ld a, [wcf65] ld a, [wcf65]
ld h, a ld h, a
ld de, wBGPals2 ld de, wBGPals2
ld a, $22 ld a, MOBILEAPI_11
jp Function119e2b jp Function119e2b
.asm_1199a0 .asm_1199a0
@ -3389,7 +3389,7 @@ Function1199ca:
ld h, a ld h, a
ld de, w3_d100 ld de, w3_d100
ld bc, $0700 ld bc, $0700
ld a, $28 ld a, MOBILEAPI_14
jp Function119e2b jp Function119e2b
Function1199e2: Function1199e2:
@ -3555,7 +3555,7 @@ Function119b0d:
ld h, a ld h, a
ld de, w3_d100 ld de, w3_d100
ld bc, $0700 ld bc, $0700
ld a, $24 ld a, MOBILEAPI_12
jp Function119e2b jp Function119e2b
Function119b3b: Function119b3b:
@ -3572,7 +3572,7 @@ Function119b45:
ld h, a ld h, a
asm_119b4d: asm_119b4d:
ld a, $26 ld a, MOBILEAPI_13
jp Function119e2b jp Function119e2b
Function119b52: Function119b52:
@ -3586,7 +3586,7 @@ Function119b52:
call CloseSRAM call CloseSRAM
.asm_119b66 .asm_119b66
ld a, $1c ld a, MOBILEAPI_0E
jp Function119e2b jp Function119e2b
Function119b6b: Function119b6b:
@ -3993,7 +3993,7 @@ BattleTower_UbersCheck:
ret ret
Function119e2b: Function119e2b:
call Function3e32 call MobileAPI
BattleTowerRoomMenu_IncrementJumptable: BattleTowerRoomMenu_IncrementJumptable:
ld hl, wBattleTowerRoomMenuJumptableIndex ld hl, wBattleTowerRoomMenuJumptableIndex

View File

@ -371,15 +371,15 @@ Function171a5d:
jp Function171c66 jp Function171c66
.asm_171a6a .asm_171a6a
ld a, $0 ld a, MOBILEAPI_00
call Function3e32 call MobileAPI
ld [wMobileErrorCodeBuffer], a ld [wMobileErrorCodeBuffer], a
ld a, l ld a, l
ld [wMobileErrorCodeBuffer + 1], a ld [wMobileErrorCodeBuffer + 1], a
ld a, h ld a, h
ld [wMobileErrorCodeBuffer + 2], a ld [wMobileErrorCodeBuffer + 2], a
ld a, $a ld a, MOBILEAPI_05
call Function3e32 call MobileAPI
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af
ld a, $1 ld a, $1
@ -407,8 +407,8 @@ String_171aa7:
Function171ac9: Function171ac9:
ld de, wcd81 ld de, wcd81
ld hl, $5c ld hl, $5c
ld a, $2 ld a, MOBILEAPI_01
call Function3e32 call MobileAPI
jp Function171c66 jp Function171c66
Function171ad7: Function171ad7:
@ -417,8 +417,8 @@ Function171ad7:
ld bc, $66 ld bc, $66
call ByteFill call ByteFill
ld de, $c608 ld de, $c608
ld a, $c ld a, MOBILEAPI_06
call Function3e32 call MobileAPI
jp Function171c66 jp Function171c66
Function171aec: Function171aec:

View File

@ -1195,7 +1195,7 @@ wc983:: dw
wc985:: db wc985:: db
wc986:: db wc986:: db
wc987:: db wc987:: db
wc988:: db wMobileAPIIndex:: db
wc989:: db wc989:: db
wc98a:: db wc98a:: db
wc98b:: db wc98b:: db