Added w3 and w5 labels for misc/mobile_40.asm

This commit is contained in:
PikalaxALT 2015-11-10 23:23:28 -05:00
parent 03f0815679
commit 4b35fa0582
12 changed files with 1330 additions and 1290 deletions

View File

@ -3,7 +3,7 @@ BattleCore:
; Core components of the battle engine.
Function3c000: ; 3c000
SendOutFirstMons: ; 3c000
xor a
ld [wBattleParticipantsNotFainted], a
ld [wc6fc], a
@ -2506,7 +2506,7 @@ WinTrainerBattle: ; 3cfa4
.mobile
call Function3ebd8
ld c, $28
ld c, 40
call DelayFrames
ld c, $4
callba Function4ea0a
@ -2514,12 +2514,12 @@ WinTrainerBattle: ; 3cfa4
.battle_tower
call Function3ebd8
ld c, $28
ld c, 40
call DelayFrames
call EmptyBattleTextBox
ld c, $3
callba BattleTowerText
call Functiona80
call WaitPressAorB_BlinkCursor
ld hl, wPayDayMoney
ld a, [hli]
or [hl]
@ -3135,7 +3135,7 @@ LostBattle: ; 3d38e
call EmptyBattleTextBox
ld c, 2
callba BattleTowerText
call Functiona80
call WaitPressAorB_BlinkCursor
call ClearTileMap
call WhiteBGMap
ret
@ -7713,7 +7713,7 @@ endr
predef PrintTempMonStats
ld c, $1e
call DelayFrames
call Functiona80
call WaitPressAorB_BlinkCursor
call Call_LoadTempTileMapToTileMap
xor a ; PARTYMON
ld [MonType], a
@ -8474,8 +8474,8 @@ StartBattle: ; 3f4c1
ld a, [TimeOfDayPal]
push af
call BattleIntro
call Function3c000
call Function3f69e
call SendOutFirstMons
call ExitBattle
pop af
ld [TimeOfDayPal], a
scf
@ -8483,8 +8483,9 @@ StartBattle: ; 3f4c1
; 3f4d9
Function3f4d9: ; 3f4d9
call Function3c000
_SendOutFirstMons: ; 3f4d9
; unreferenced
call SendOutFirstMons
ret
; 3f4dd
@ -8716,9 +8717,9 @@ Function3f662: ; 3f662
; 3f69e
Function3f69e: ; 3f69e
ExitBattle: ; 3f69e
call Function3f6a5
call Function3f6d0
call CleanUpBattleRAM
ret
; 3f6a5
@ -8726,7 +8727,7 @@ Function3f6a5: ; 3f6a5
ld a, [wLinkMode]
and a
jr z, .not_linked
call Function3f759
call ShowLinkBattleParticipantsAfterEnd
ld c, 150
call DelayFrames
call Function3f77c
@ -8736,7 +8737,7 @@ Function3f6a5: ; 3f6a5
ld a, [wBattleResult]
and $f
ret nz
call Function3f71d
call CheckPayDay
xor a
ld [wd1e9], a
predef Function421e6
@ -8744,7 +8745,7 @@ Function3f6a5: ; 3f6a5
ret
; 3f6d0
Function3f6d0: ; 3f6d0
CleanUpBattleRAM: ; 3f6d0
call Function3f998
xor a
ld [Danger], a
@ -8777,7 +8778,7 @@ Function3f6d0: ; 3f6d0
ret
; 3f71d
Function3f71d: ; 3f71d
CheckPayDay: ; 3f71d
ld hl, wPayDayMoney
ld a, [hli]
or [hl]
@ -8786,21 +8787,21 @@ Function3f71d: ; 3f71d
ret z
ld a, [wc73d]
and a
jr z, .asm_3f73d
jr z, .okay
ld hl, wPayDayMoney + 2
sla [hl]
dec hl
rl [hl]
dec hl
rl [hl]
jr nc, .asm_3f73d
jr nc, .okay
ld a, $ff
rept 2
ld [hli], a
endr
ld [hl], a
.asm_3f73d
.okay
ld hl, wPayDayMoney + 2
ld de, Money + 2
call Function3d0be
@ -8814,7 +8815,7 @@ endr
ret
; 3f759
Function3f759: ; 3f759
ShowLinkBattleParticipantsAfterEnd: ; 3f759
callba MobileFn_1060df
callba BackupMobileEventIndex
ld a, [CurOTMon]
@ -8829,13 +8830,15 @@ Function3f759: ; 3f759
Function3f77c: ; 3f77c
callba CheckMobileBattleError
jp c, Function3f80f
call Function3f830
jp c, .Mobile_InvalidBattle
call IsMobileBattle2
jr nz, .proceed
ld hl, wcd2a
bit 4, [hl]
jr z, .proceed
callba Function2b930
callba DetermineLinkBattleResult
.proceed
ld a, [wBattleResult]
@ -8843,17 +8846,17 @@ Function3f77c: ; 3f77c
cp $1
jr c, .victory
jr z, .loss
callba MobileFn_106107
callba MobileFn_SaveBattleResult_Draw
ld de, .Draw
jr .store_result
.victory
callba MobileFn_1060fb
callba MobileFn_SaveBattleResult_Win
ld de, .Win
jr .store_result
.loss
callba MobileFn_106101
callba MobileFn_SaveBattleResult_Lose
ld de, .Lose
jr .store_result
@ -8872,13 +8875,13 @@ Function3f77c: ; 3f77c
call CloseSRAM
call Function3f830
jr z, .asm_3f7ee
call Functiona80
call IsMobileBattle2
jr z, .mobile
call WaitPressAorB_BlinkCursor
call ClearTileMap
ret
.asm_3f7ee
.mobile
ld c, 200
call DelayFrames
call ClearTileMap
@ -8894,11 +8897,11 @@ Function3f77c: ; 3f77c
; 3f80f
Function3f80f: ; 3f80f
.Mobile_InvalidBattle: ; 3f80f
hlcoord 6, 8
ld de, .Invalid
call PlaceString
ld c, $c8
ld c, 200
call DelayFrames
call ClearTileMap
ret
@ -8909,7 +8912,7 @@ Function3f80f: ; 3f80f
; 3f830
Function3f830: ; 3f830
IsMobileBattle2: ; 3f830
ld a, [wLinkMode]
cp LINK_MOBILE
ret
@ -8919,7 +8922,9 @@ Function3f830: ; 3f830
Function3f836: ; 3f836
ld a, BANK(sLinkBattleStats)
call GetSRAMBank
call Function3f85f
call CloseSRAM
hlcoord 0, 0, AttrMap
xor a
@ -8931,7 +8936,7 @@ Function3f836: ; 3f836
call SetPalettes
ld c, $8
call DelayFrames
call Functiona80
call WaitPressAorB_BlinkCursor
ret
; 3f85f
@ -9634,7 +9639,7 @@ BattleStartMessage: ; 3fc8b
pop hl
call StdBattleTextBox
call Function3f830
call IsMobileBattle2
ret nz
ld c, $2

View File

@ -894,7 +894,7 @@ Special_DayCareMon2: ; 17440
jp PrintText
Function1745f: ; 1745f
jp Functiona80
jp WaitPressAorB_BlinkCursor
; 17462
UnknownText_0x17462: ; 0x17462

View File

@ -99,7 +99,7 @@ RestartClock: ; 20021 (8:4021)
call .PrintTime
ld hl, .Text_ClockReset
call PrintText
call Functiona80
call WaitPressAorB_BlinkCursor
xor a
ret

View File

@ -1,7 +1,7 @@
Function1dd702: ; 1dd702
call Function1dd709
call Functiona80
call WaitPressAorB_BlinkCursor
ret
; 1dd709

View File

@ -1623,7 +1623,7 @@ PrintWinLossText:: ; 3718
call GetMapScriptHeaderBank
call FarPrintText
call WaitBGMap
call Functiona80
call WaitPressAorB_BlinkCursor
ret
; 3741

View File

@ -98,7 +98,9 @@ FarCopyWRAM:: ; 306b
push af
ld a, [hBuffer]
ld [rSVBK], a
call CopyBytes
pop af
ld [rSVBK], a
ret

View File

@ -355,7 +355,7 @@ JoyTextDelay:: ; a57
ret
; a80
Functiona80:: ; a80
WaitPressAorB_BlinkCursor:: ; a80
ld a, [hMapObjectIndexBuffer]
push af
ld a, [hObjectStructIndexBuffer]
@ -368,7 +368,7 @@ Functiona80:: ; a80
.loop
push hl
hlcoord 18, 17
call Functionb06
call BlinkCursor
pop hl
call JoyTextDelay
@ -383,7 +383,7 @@ Functiona80:: ; a80
ret
; aa5
Functionaa5:: ; aa5
SimpleWaitPressAorB:: ; aa5
.loop
call JoyTextDelay
ld a, [hJoyLast]
@ -451,14 +451,14 @@ KeepTextOpen:: ; aaf
ret
; b06
Functionb06:: ; b06
BlinkCursor:: ; b06
push bc
ld a, [hl]
ld b, a
ld a, "▼"
cp b
pop bc
jr nz, .asm_b27
jr nz, .place_arrow
ld a, [hMapObjectIndexBuffer]
dec a
ld [hMapObjectIndexBuffer], a
@ -475,7 +475,7 @@ Functionb06:: ; b06
ld [hObjectStructIndexBuffer], a
ret
.asm_b27
.place_arrow
ld a, [hMapObjectIndexBuffer]
and a
ret z
@ -488,9 +488,9 @@ Functionb06:: ; b06
dec a
ld [hObjectStructIndexBuffer], a
ret nz
ld a, $6
ld a, 6
ld [hObjectStructIndexBuffer], a
ld a, $ee
ld a, "▼"
ld [hl], a
ret
; b40

View File

@ -1438,7 +1438,7 @@ RareCandy: ; ef14
ld bc, $0004
predef PrintTempMonStats
call Functiona80
call WaitPressAorB_BlinkCursor
xor a ; PARTYMON
ld [MonType], a
@ -1921,7 +1921,7 @@ Functionf279: ; f279 (3:7279)
ld [hBGMapMode], a
ld c, $32
call DelayFrames
jp Functiona80
jp WaitPressAorB_BlinkCursor
Functionf299: ; f299 (3:7299)
call WontHaveAnyEffectMessage
@ -2943,7 +2943,7 @@ Functionf789: ; f789
ld hl, UsedItemText
call PrintText
call Play_SFX_FULL_HEAL
call Functiona80
call WaitPressAorB_BlinkCursor
; fallthrough
; f795

1224
main.asm

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1094
misc/mobile_41.asm Executable file

File diff suppressed because it is too large Load Diff

View File

@ -757,6 +757,7 @@ AlreadyFailed:: ; c6fb
wc6fc:: ds 1
wc6fd:: ds 1
wc6fe::
wPlayerMinimized:: ds 1 ; c6fe
wc6ff::
PlayerScreens:: ; c6ff
@ -2741,7 +2742,9 @@ wPokeAnimStructEnd::
SECTION "WRAM 3", WRAMX, BANK [3]
w3_d000:: ; d000
ds $90
ds $80
w3_d080::
ds $10
w3_d090::
ds $70
@ -2753,7 +2756,9 @@ BT_TrainerTextIndex::
ds $600
wBTChoiceOfLvlGroup::
w3_d800:: ds 1
w3_d800:: ds $400
w3_dc00:: ds $168
w3_dd68::
SECTION "GBC Video", WRAMX, BANK [5]
@ -2819,7 +2824,18 @@ BattleAnimTemps:: ; d419
w5_d422:: ds $32
wBattleAnimEnd::
ds $e
; d462
SECTION "WRAM 5 MOBILE", WRAMX [$d800], BANK [5]
w5_d800:: ds $200
w5_da00:: ds $200
w5_dc00:: ds $d
w5_dc0d:: ds 4
w5_dc11:: ds 9
w5_dc1a:: ds $c
w5_dc26:: ds $c
w5_dc32:: ds $c
w5_dc3e:: ds $c
SECTION "WRAM 6", WRAMX, BANK [6]