More enumeration of constants, more annotations of scripts.

This commit is contained in:
PikalaxALT
2015-07-15 15:48:44 -04:00
parent 67e56102ef
commit 39524cdb76
96 changed files with 2634 additions and 2501 deletions

View File

@@ -310,7 +310,7 @@ BattleTextBox:: ; 3ac3
push hl
call SpeechTextBox
call MobileTextBorder
call Function1ad2
call DrawOnMap
call Function321c
pop hl
call PrintTextBoxText

View File

@@ -312,7 +312,7 @@ Functiona36:: ; a36
jr Functiona36
; a46
Functiona46:: ; a46
CloseText:: ; a46
ld a, [hOAMUpdate]
push af
ld a, 1
@@ -387,7 +387,7 @@ Functionaa5:: ; aa5
ret
; aaf
Functionaaf:: ; aaf
KeepTextOpen:: ; aaf
ld a, [InLinkBattle]
and a
jr nz, .asm_ac1

View File

@@ -8,7 +8,7 @@ Function210f:: ; 210f
ret
; 211b
Function211b:: ; 211b
CheckTriggers:: ; 211b
push hl
ld hl, BikeFlags + 2
ld a, [hli]
@@ -17,7 +17,7 @@ Function211b:: ; 211b
or h
ld a, [hl]
jr nz, .asm_2128
ld a, $ff
ld a, -1
.asm_2128
pop hl
@@ -702,7 +702,7 @@ Function24cd:: ; 24cd
ld bc, OverworldMapEnd - OverworldMap
ld a, 0
call ByteFill
call Function24e4
call ChangeMap
call FillMapConnections
ld a, $1
call Function263b
@@ -711,7 +711,7 @@ Function24cd:: ; 24cd
Function24e4:: ; 24e4
ChangeMap:: ; 24e4
ld a, [hROMBank]
push af
@@ -938,7 +938,7 @@ FillEastConnectionStrip:: ; 25f6
ret
; 261b
Function261b:: ; 261b
LoadMapStatus:: ; 261b
ld [MapStatus], a
ret
; 261f
@@ -1027,7 +1027,7 @@ Function2674:: ; 2674
ld a, [hl]
push af
set 1, [hl]
callba Function96c56
callba EnableScriptMode
callba ScriptEvents
pop af
ld [ScriptFlags], a
@@ -1036,7 +1036,7 @@ Function2674:: ; 2674
ret
; 269a
Function269a:: ; 269a
MapTextbox:: ; 269a
ld a, [hROMBank]
push af
@@ -1059,7 +1059,7 @@ Function269a:: ; 269a
ret
; 26b7
Function26b7:: ; 26b7
Call_a_de:: ; 26b7
; Call a:de.
ld [hBuffer], a
@@ -1079,7 +1079,7 @@ Function26b7:: ; 26b7
ret
; 26c7
Function26c7:: ; 26c7
GetMovementData:: ; 26c7
ld a, [hROMBank]
push af
ld a, b
@@ -1412,7 +1412,7 @@ Function2821:: ; 2821
ret
; 2879
Function2879:: ; 2879
BufferScreen:: ; 2879
ld hl, wd194
ld a, [hli]
ld h, [hl]
@@ -1733,7 +1733,7 @@ GetFacingTileCoord:: ; 2a07
Function2a3c:: ; 2a3c
call Function2a66
call GetBlockLocation
ld a, [hl]
and a
jr z, .asm_2a63
@@ -1766,7 +1766,7 @@ Function2a3c:: ; 2a3c
ret
; 2a66
Function2a66:: ; 2a66
GetBlockLocation:: ; 2a66
ld a, [MapWidth]
add $6
ld c, a
@@ -1878,7 +1878,7 @@ Function2ae7:: ; 2ae7
ld a, [hli]
ld h, [hl]
ld l, a
call Function211b
call CheckTriggers
ld b, a
ld a, [MapX]
sub $4
@@ -1941,7 +1941,7 @@ FadeToMenu:: ; 2b29
Function2b3c:: ; 2b3c
call WhiteBGMap
call Function2bae
call Function1ad2
call DrawOnMap
call Function1d7d
call Functiond90
jr Function2b5c
@@ -1951,7 +1951,7 @@ Function2b4d:: ; 2b4d
call WhiteBGMap
call Function1d7d
call Function2bae
call Function1ad2
call DrawOnMap
call Functiond90
; 2b5c
@@ -1978,7 +1978,7 @@ Function2b74:: ; 0x2b74
call TextBox
ld hl, VramState
set 0, [hl]
call Function1ad2
call DrawOnMap
call Function3200
ld b, $9
call GetSGBLayout

File diff suppressed because it is too large Load Diff

View File

@@ -2,11 +2,11 @@
LoadMenuDataHeader:: ; 0x1d35
call Function1d3c
call CopyMenuDataHeader
call Function1c00
ret
Function1d3c:: ; 0x1d3c
CopyMenuDataHeader:: ; 0x1d3c
ld de, wcf81
ld bc, $0010
call CopyBytes
@@ -48,7 +48,7 @@ MenuDataHeader_0x1d5f:: ; 1d5f
Function1d67:: ; 1d67
call Function1d4f
call Function1c17
call WriteBackup
ret
; 1d6e
@@ -71,11 +71,11 @@ Function1d7d:: ; 1d7d
ret
; 1d81
Function1d81:: ; 0x1d81
InterpretMenu2:: ; 0x1d81
xor a
ld [hBGMapMode], a
call Function1cbb
call Function1ad2
call DrawOnMap
call Function1c89
call Function321c
call Function1c66
@@ -97,8 +97,8 @@ Function1d81:: ; 0x1d81
Function1dab:: ; 1dab
call LoadMenuDataHeader
call Function1d81
call Function1c17
call InterpretMenu2
call WriteBackup
ld a, [wcfa9]
ret
; 1db8
@@ -138,7 +138,7 @@ _YesNoBox:: ; 1dd9
; Return nc (yes) or c (no).
push bc
ld hl, YesNoMenuDataHeader
call Function1d3c
call CopyMenuDataHeader
pop bc
ld a, b
cp $e
@@ -158,11 +158,11 @@ _YesNoBox:: ; 1dd9
call Function1c00
Function1dfe:: ; 1dfe
call Function1d81
call InterpretMenu2
push af
ld c, $f
call DelayFrames
call Function1c17
call WriteBackup
pop af
jr c, .asm_1e16
ld a, [wcfa9]
@@ -201,7 +201,7 @@ Function1e2e:: ; 1e2e
Function1e35:: ; 1e35
push de
call Function1d3c
call CopyMenuDataHeader
pop de
ld a, [wcf83]
ld h, a
@@ -540,7 +540,7 @@ PlayClickSFX:: ; 2009
Function2012:: ; 2012
call Function1d4f
call Functiona46
call CloseText
call Function1c07
ret
; 201c
@@ -559,7 +559,7 @@ Function201c:: ; 201c
ret
; 202a
Function202a:: ; 202a
InterpretMenu:: ; 202a
ld a, [hROMBank]
ld [wcf94], a
callba Function2400e

View File

@@ -203,11 +203,11 @@ Function1c10:: ; 0x1c10
callab Function2446d
ret
Function1c17:: ; 0x1c17
WriteBackup:: ; 0x1c17
push af
call Function1c07
call Function321c
call Function1ad2
call DrawOnMap
pop af
ret

View File

@@ -169,7 +169,7 @@ Function1052:: ; 1052
PrintText:: ; 1057
call Function106c
call SetUpTextBox
Function105a:: ; 105a
push hl
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY
@@ -183,10 +183,10 @@ PrintTextBoxText:: ; 1065
ret
; 106c
Function106c:: ; 106c
SetUpTextBox:: ; 106c
push hl
call SpeechTextBox
call Function1ad2
call DrawOnMap
call Function321c
pop hl
ret
@@ -385,7 +385,7 @@ Char3F:: ; 121b
ld de, String12a2
call PlaceString
push bc
callab Function39939
callab Battle_GetTrainerName
pop hl
ld de, StringBuffer1
jr Function126a
@@ -517,7 +517,7 @@ Paragraph:: ; 12f2
.asm_1301
call Function13b6
call Functionaaf
call KeepTextOpen
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY
lb bc, TEXTBOX_INNERH - 1, TEXTBOX_INNERW
call ClearBox
@@ -540,7 +540,7 @@ Char4B:: ; 131f
call Function13b6
push de
call Functionaaf
call KeepTextOpen
pop de
ld a, [InLinkBattle]
@@ -590,7 +590,7 @@ PromptText:: ; 135a
.ok
call Function13b6
call Functionaaf
call KeepTextOpen
ld a, [InLinkBattle]
cp $3
jr z, DoneText
@@ -904,7 +904,7 @@ Text_06:: ; 149f
push hl
call Function13c7
push bc
call Functionaaf
call KeepTextOpen
pop bc
call Function13cd
pop hl
@@ -1066,7 +1066,7 @@ Text_0D:: ; 1562
; display arrow
push hl
push bc
call Functionaaf
call KeepTextOpen
pop bc
pop hl
ret

View File

@@ -83,7 +83,7 @@ Function2e31:: ; 2e31
ld [hBGMapMode], a
ld a, $1
ld [hOAMUpdate], a
call Function1ad2
call DrawOnMap
xor a
ld [hOAMUpdate], a
call DelayFrame