You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
More label updates, moved predefs to new file
Also named most of the engine and event flag constants.
This commit is contained in:
@@ -321,7 +321,7 @@ Function3ca8:: ; 3ca8
|
||||
ret
|
||||
; 3cae
|
||||
|
||||
Function3cae:: ; 3cae
|
||||
CrankUpTheVolume:: ; 3cae
|
||||
ld a, 4 | 1 << 7
|
||||
ld [MusicFade], a
|
||||
ret
|
||||
|
@@ -36,7 +36,7 @@ Function4a3:: ; 4a3
|
||||
jr FadeOut
|
||||
; 4b6
|
||||
|
||||
Function4b6:: ; 4b6
|
||||
FadeToWhite:: ; 4b6
|
||||
ld a, [hCGB]
|
||||
and a
|
||||
jr z, .asm_4c2
|
||||
|
55
home/map.asm
55
home/map.asm
@@ -150,9 +150,7 @@ Function2198:: ; 2198
|
||||
add a
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add_n_times hl, hl, 3
|
||||
ld a, [TilesetBlocksAddress]
|
||||
add l
|
||||
ld l, a
|
||||
@@ -387,7 +385,7 @@ Function2300:: ; 2300
|
||||
; 2309
|
||||
|
||||
|
||||
Function2309:: ; 2309
|
||||
LoadMapAttributes:: ; 2309
|
||||
call Function2326
|
||||
call SwitchToMapScriptHeaderBank
|
||||
call Function234f
|
||||
@@ -396,7 +394,7 @@ Function2309:: ; 2309
|
||||
ret
|
||||
; 2317
|
||||
|
||||
Function2317:: ; 2317
|
||||
LoadMapAttributes_IgnoreHidden:: ; 2317
|
||||
call Function2326
|
||||
call SwitchToMapScriptHeaderBank
|
||||
call Function234f
|
||||
@@ -664,7 +662,7 @@ Function2471:: ; 2471
|
||||
ret
|
||||
; 248a
|
||||
|
||||
Function248a:: ; 248a
|
||||
RestoreFacingAfterWarp:: ; 248a
|
||||
call GetMapScriptHeaderBank
|
||||
rst Bankswitch
|
||||
|
||||
@@ -691,7 +689,7 @@ Function248a:: ; 248a
|
||||
call Function24ba
|
||||
|
||||
.asm_24b3
|
||||
callba Function10486d
|
||||
callba GetCoordOfUpperLeftCorner
|
||||
ret
|
||||
; 24ba
|
||||
|
||||
@@ -705,7 +703,7 @@ Function24ba:: ; 24ba
|
||||
ret
|
||||
; 24cd
|
||||
|
||||
Function24cd:: ; 24cd
|
||||
LoadBlockData:: ; 24cd
|
||||
ld hl, OverworldMap
|
||||
ld bc, OverworldMapEnd - OverworldMap
|
||||
ld a, 0
|
||||
@@ -713,7 +711,7 @@ Function24cd:: ; 24cd
|
||||
call ChangeMap
|
||||
call FillMapConnections
|
||||
ld a, $1
|
||||
call Function263b
|
||||
call RunMapCallback
|
||||
ret
|
||||
; 24e4
|
||||
|
||||
@@ -976,7 +974,8 @@ Function2631:: ; 2631
|
||||
jr CallScript
|
||||
; 263b
|
||||
|
||||
Function263b:: ; 263b
|
||||
RunMapCallback:: ; 263b
|
||||
; Will run the first callback found in the map header with execution index equal to a.
|
||||
ld b, a
|
||||
ld a, [hROMBank]
|
||||
push af
|
||||
@@ -988,7 +987,7 @@ Function263b:: ; 263b
|
||||
ld b, a
|
||||
ld d, h
|
||||
ld e, l
|
||||
call Function2674
|
||||
call ExecuteCallbackScript
|
||||
|
||||
.done
|
||||
pop af
|
||||
@@ -1007,18 +1006,18 @@ Function2653:: ; 2653
|
||||
ld l, a
|
||||
or h
|
||||
ret z
|
||||
ld de, $0003
|
||||
.asm_2664
|
||||
ld de, 3
|
||||
.loop
|
||||
ld a, [hl]
|
||||
cp b
|
||||
jr z, .asm_266e
|
||||
jr z, .done
|
||||
add hl, de
|
||||
dec c
|
||||
jr nz, .asm_2664
|
||||
jr nz, .loop
|
||||
xor a
|
||||
ret
|
||||
|
||||
.asm_266e
|
||||
.done
|
||||
inc hl
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@@ -1027,7 +1026,7 @@ Function2653:: ; 2653
|
||||
ret
|
||||
; 2674
|
||||
|
||||
Function2674:: ; 2674
|
||||
ExecuteCallbackScript:: ; 2674
|
||||
callba Function974f3
|
||||
ld a, [ScriptMode]
|
||||
push af
|
||||
@@ -1449,7 +1448,7 @@ BufferScreen:: ; 2879
|
||||
ret
|
||||
; 289d
|
||||
|
||||
Function289d:: ; 289d
|
||||
SaveScreen:: ; 289d
|
||||
ld hl, wd194
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@@ -1499,7 +1498,7 @@ Function289d:: ; 289d
|
||||
jr Function28f7
|
||||
|
||||
|
||||
Function28e3:: ; 28e3
|
||||
LoadNeighboringBlockData:: ; 28e3
|
||||
ld hl, wd194
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@@ -1947,7 +1946,7 @@ FadeToMenu:: ; 2b29
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function1d6e
|
||||
callba Function8c084
|
||||
callba FadeBlackBGMap
|
||||
call ClearSprites
|
||||
call Function2ed3
|
||||
ret
|
||||
@@ -1976,7 +1975,7 @@ Function2b5c:: ; 2b5c
|
||||
call GetSGBLayout
|
||||
callba Function49409
|
||||
call Function3200
|
||||
callba Function8c079
|
||||
callba FadeInBGMap
|
||||
call Function2ee4
|
||||
ret
|
||||
; 2b74
|
||||
@@ -2308,23 +2307,23 @@ RADIO_TOWER_MUSIC EQU 7
|
||||
jr .done
|
||||
; 2cff
|
||||
|
||||
Function2cff:: ; 2cff
|
||||
call Function2d0d
|
||||
GetMapHeaderTimeOfDayNybble:: ; 2cff
|
||||
call GetPhoneServiceTimeOfDayByte
|
||||
and $f
|
||||
ret
|
||||
; 2d05
|
||||
|
||||
Function2d05:: ; 2d05
|
||||
call Function2d0d
|
||||
GetMapHeaderPhoneServiceNybble:: ; 2d05
|
||||
call GetPhoneServiceTimeOfDayByte
|
||||
and $f0
|
||||
swap a
|
||||
ret
|
||||
; 2d0d
|
||||
|
||||
Function2d0d:: ; 2d0d
|
||||
GetPhoneServiceTimeOfDayByte:: ; 2d0d
|
||||
push hl
|
||||
push bc
|
||||
ld de, $0007
|
||||
ld de, 7 ; phone service and time of day
|
||||
call GetMapHeaderMember
|
||||
ld a, c
|
||||
pop bc
|
||||
@@ -2336,7 +2335,7 @@ Function2d19:: ; 2d19
|
||||
push de
|
||||
push hl
|
||||
push bc
|
||||
ld de, $0008
|
||||
ld de, 8 ; fishing group
|
||||
call GetMapHeaderMember
|
||||
ld a, c
|
||||
pop bc
|
||||
|
@@ -67,7 +67,7 @@ MenuDataHeader_0x1d75:: ; 1d75
|
||||
; 1d7d
|
||||
|
||||
Function1d7d:: ; 1d7d
|
||||
call Function1c07
|
||||
call ExitMenu
|
||||
ret
|
||||
; 1d81
|
||||
|
||||
@@ -541,7 +541,7 @@ PlayClickSFX:: ; 2009
|
||||
Function2012:: ; 2012
|
||||
call MenuTextBox
|
||||
call CloseText
|
||||
call Function1c07
|
||||
call ExitMenu
|
||||
ret
|
||||
; 201c
|
||||
|
||||
|
@@ -193,7 +193,7 @@ Function1c00:: ; 1c00
|
||||
ret
|
||||
; 1c07
|
||||
|
||||
Function1c07:: ; 0x1c07
|
||||
ExitMenu:: ; 0x1c07
|
||||
push af
|
||||
callab Function243e8
|
||||
pop af
|
||||
@@ -205,7 +205,7 @@ Function1c10:: ; 0x1c10
|
||||
|
||||
WriteBackup:: ; 0x1c17
|
||||
push af
|
||||
call Function1c07
|
||||
call ExitMenu
|
||||
call Function321c
|
||||
call DrawOnMap
|
||||
pop af
|
||||
|
@@ -41,7 +41,7 @@ Function2de2:: ; 2de2
|
||||
ld a, $90
|
||||
ld [hWY], a
|
||||
call Functione4a
|
||||
callba Functionb8000
|
||||
callba ReturnFromMapSetupScript
|
||||
callba Function106594
|
||||
ret
|
||||
; 2e08
|
||||
|
Reference in New Issue
Block a user