mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Identify some more WRAM labels
This commit is contained in:
parent
d5f5e6d5db
commit
45e3f6aca9
@ -1669,8 +1669,8 @@ MusicF9:
|
|||||||
; sets some flag
|
; sets some flag
|
||||||
; seems to be unused
|
; seems to be unused
|
||||||
; params: 0
|
; params: 0
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ld [wc2b5], a
|
ld [wUnusedMusicF9Flag], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
MusicE2:
|
MusicE2:
|
||||||
@ -2345,7 +2345,7 @@ _PlayMusic::
|
|||||||
dec a
|
dec a
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
xor a
|
xor a
|
||||||
ld [wc2b5], a
|
ld [wUnusedMusicF9Flag], a
|
||||||
ld [wChannel1JumpCondition], a
|
ld [wChannel1JumpCondition], a
|
||||||
ld [wChannel2JumpCondition], a
|
ld [wChannel2JumpCondition], a
|
||||||
ld [wChannel3JumpCondition], a
|
ld [wChannel3JumpCondition], a
|
||||||
|
@ -263,7 +263,9 @@ If <code><i>item_id</i></code> = `USE_SCRIPT_VAR`, then it uses `[wScriptVar]` i
|
|||||||
## `$49`: `closetext`
|
## `$49`: `closetext`
|
||||||
|
|
||||||
|
|
||||||
## `$4A`: <code>loadbytec2cf <i>byte</i></code>
|
## `$4A`: <code>writeunusedbytebuffer <i>byte</i></code>
|
||||||
|
|
||||||
|
<code>[<i>wUnusedScriptByteBuffer</i>] = <i>byte</i></code>
|
||||||
|
|
||||||
|
|
||||||
## `$4B`: <code>farwritetext <i>text_pointer</i></code>
|
## `$4B`: <code>farwritetext <i>text_pointer</i></code>
|
||||||
|
@ -585,7 +585,7 @@ FixDataForLinkTransfer:
|
|||||||
ld [hli], a
|
ld [hli], a
|
||||||
dec b
|
dec b
|
||||||
jr nz, .loop3
|
jr nz, .loop3
|
||||||
ld hl, wTimeCapsulePartyMon1 - 1 + 6
|
ld hl, wTimeCapsulePartyMon1 - 1 + PARTY_LENGTH
|
||||||
ld de, wc612
|
ld de, wc612
|
||||||
lb bc, 0, 0
|
lb bc, 0, 0
|
||||||
.loop4
|
.loop4
|
||||||
|
@ -1836,7 +1836,7 @@ Function5000: ; unscripted?
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
GetMovementByte:
|
GetMovementByte:
|
||||||
ld hl, wMovementDataPointer
|
ld hl, wMovementDataBank
|
||||||
call _GetMovementByte
|
call _GetMovementByte
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ ScriptCommandTable:
|
|||||||
dw Script_opentext ; 47
|
dw Script_opentext ; 47
|
||||||
dw Script_refreshscreen ; 48
|
dw Script_refreshscreen ; 48
|
||||||
dw Script_closetext ; 49
|
dw Script_closetext ; 49
|
||||||
dw Script_loadbytec2cf ; 4a
|
dw Script_writeunusedbytebuffer ; 4a
|
||||||
dw Script_farwritetext ; 4b
|
dw Script_farwritetext ; 4b
|
||||||
dw Script_writetext ; 4c
|
dw Script_writetext ; 4c
|
||||||
dw Script_repeattext ; 4d
|
dw Script_repeattext ; 4d
|
||||||
@ -2636,12 +2636,12 @@ Script_refreshscreen:
|
|||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Script_loadbytec2cf:
|
Script_writeunusedbytebuffer:
|
||||||
; script command 0x4a
|
; script command 0x4a
|
||||||
; parameters: byte
|
; parameters: byte
|
||||||
|
|
||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld [wc2cf], a
|
ld [wUnusedScriptByteBuffer], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
db closetext_command ; unused
|
db closetext_command ; unused
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
HandleNewMap:
|
HandleNewMap:
|
||||||
call ClearUnusedC7E8
|
call ClearUnusedMapBuffer
|
||||||
call ResetMapBufferEventFlags
|
call ResetMapBufferEventFlags
|
||||||
call ResetFlashIfOutOfCave
|
call ResetFlashIfOutOfCave
|
||||||
call GetCurrentMapSceneID
|
call GetCurrentMapSceneID
|
||||||
|
@ -254,7 +254,7 @@ HatchEggs:
|
|||||||
ld [wCurSpecies], a
|
ld [wCurSpecies], a
|
||||||
call GetPokemonName
|
call GetPokemonName
|
||||||
xor a
|
xor a
|
||||||
ld [wd26b], a
|
ld [wUnusedEggHatchFlag], a
|
||||||
call GetBaseData
|
call GetBaseData
|
||||||
ld a, [wCurPartyMon]
|
ld a, [wCurPartyMon]
|
||||||
ld hl, wPartyMon1
|
ld hl, wPartyMon1
|
||||||
@ -325,8 +325,8 @@ HatchEggs:
|
|||||||
pop de
|
pop de
|
||||||
jr c, .nonickname
|
jr c, .nonickname
|
||||||
|
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ld [wd26b], a
|
ld [wUnusedEggHatchFlag], a
|
||||||
xor a
|
xor a
|
||||||
ld [wMonType], a
|
ld [wMonType], a
|
||||||
push de
|
push de
|
||||||
|
@ -479,7 +479,7 @@ Unreferenced_Function3d9f::
|
|||||||
xor a
|
xor a
|
||||||
ld [wVirtualOAMSprite38Attributes], a
|
ld [wVirtualOAMSprite38Attributes], a
|
||||||
ld [wVirtualOAMSprite39Attributes], a
|
ld [wVirtualOAMSprite39Attributes], a
|
||||||
ld a, [wc296]
|
ld a, [wUnusedBCDNumber]
|
||||||
cp 100
|
cp 100
|
||||||
jr nc, .max
|
jr nc, .max
|
||||||
add 1
|
add 1
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
; Functions dealing with rendering and interacting with maps.
|
; Functions dealing with rendering and interacting with maps.
|
||||||
|
|
||||||
ClearUnusedC7E8::
|
ClearUnusedMapBuffer::
|
||||||
ld hl, wUnusedC7E8
|
ld hl, wUnusedMapBuffer
|
||||||
ld bc, wUnusedC7E8End - wUnusedC7E8
|
ld bc, wUnusedMapBufferEnd - wUnusedMapBuffer
|
||||||
ld a, 0
|
ld a, 0
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ret
|
ret
|
||||||
|
@ -395,11 +395,11 @@ LoadMovementDataPointer::
|
|||||||
; Load the movement data pointer for object a.
|
; Load the movement data pointer for object a.
|
||||||
ld [wMovementObject], a
|
ld [wMovementObject], a
|
||||||
ldh a, [hROMBank]
|
ldh a, [hROMBank]
|
||||||
ld [wMovementDataPointer], a
|
ld [wMovementDataBank], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [wMovementDataPointer + 1], a
|
ld [wMovementDataAddress], a
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [wMovementDataPointer + 2], a
|
ld [wMovementDataAddress + 1], a
|
||||||
ld a, [wMovementObject]
|
ld a, [wMovementObject]
|
||||||
call CheckObjectVisibility
|
call CheckObjectVisibility
|
||||||
ret c
|
ret c
|
||||||
|
@ -112,6 +112,7 @@ givepokeitem EQUS "givepokemail"
|
|||||||
checkpokeitem EQUS "checkpokemail"
|
checkpokeitem EQUS "checkpokemail"
|
||||||
passtoengine EQUS "autoinput"
|
passtoengine EQUS "autoinput"
|
||||||
verbosegiveitem2 EQUS "verbosegiveitemvar"
|
verbosegiveitem2 EQUS "verbosegiveitemvar"
|
||||||
|
loadbytec2cf EQUS "writeunusedbytebuffer"
|
||||||
|
|
||||||
; macros/scripts/maps.asm
|
; macros/scripts/maps.asm
|
||||||
|
|
||||||
|
@ -489,9 +489,9 @@ closetext: MACRO
|
|||||||
db closetext_command
|
db closetext_command
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
enum loadbytec2cf_command ; $4a
|
enum writeunusedbytebuffer_command ; $4a
|
||||||
loadbytec2cf: MACRO
|
writeunusedbytebuffer: MACRO
|
||||||
db loadbytec2cf_command
|
db writeunusedbytebuffer_command
|
||||||
db \1 ; byte
|
db \1 ; byte
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
36
wram.asm
36
wram.asm
@ -39,7 +39,7 @@ wChannel8:: channel_struct wChannel8 ; c25f
|
|||||||
wCurTrackDuty:: db
|
wCurTrackDuty:: db
|
||||||
wCurTrackIntensity:: db
|
wCurTrackIntensity:: db
|
||||||
wCurTrackFrequency:: dw
|
wCurTrackFrequency:: dw
|
||||||
wc296:: db ; BCD value, dummied out
|
wUnusedBCDNumber:: db ; BCD value, dummied out
|
||||||
wCurNoteDuration:: db ; used in MusicE0 and LoadNote
|
wCurNoteDuration:: db ; used in MusicE0 and LoadNote
|
||||||
|
|
||||||
wCurMusicByte:: db ; c298
|
wCurMusicByte:: db ; c298
|
||||||
@ -95,7 +95,7 @@ wCryPitch:: dw ; c2b0
|
|||||||
wCryLength:: dw ; c2b2
|
wCryLength:: dw ; c2b2
|
||||||
|
|
||||||
wLastVolume:: db ; c2b4
|
wLastVolume:: db ; c2b4
|
||||||
wc2b5:: db ; c2b5
|
wUnusedMusicF9Flag:: db ; c2b5
|
||||||
|
|
||||||
wSFXPriority:: ; c2b6
|
wSFXPriority:: ; c2b6
|
||||||
; if nonzero, turn off music when playing sfx
|
; if nonzero, turn off music when playing sfx
|
||||||
@ -145,7 +145,7 @@ wDebugFlags:: db
|
|||||||
wGameLogicPaused:: db ; c2cd
|
wGameLogicPaused:: db ; c2cd
|
||||||
wSpriteUpdatesEnabled:: db
|
wSpriteUpdatesEnabled:: db
|
||||||
|
|
||||||
wc2cf:: db ; ????
|
wUnusedScriptByteBuffer:: db
|
||||||
|
|
||||||
wMapTimeOfDay:: db
|
wMapTimeOfDay:: db
|
||||||
|
|
||||||
@ -171,7 +171,8 @@ wPlayerMovement:: db
|
|||||||
wc2e2::
|
wc2e2::
|
||||||
wMovementObject::
|
wMovementObject::
|
||||||
db
|
db
|
||||||
wMovementDataPointer:: ds 3 ; dba
|
wMovementDataBank:: db
|
||||||
|
wMovementDataAddress:: dw
|
||||||
wc2e6:: ds 4
|
wc2e6:: ds 4
|
||||||
wMovementByteWasControlSwitch:: db
|
wMovementByteWasControlSwitch:: db
|
||||||
wMovementPointer:: dw ; c2eb
|
wMovementPointer:: dw ; c2eb
|
||||||
@ -909,8 +910,10 @@ ENDU ; c7e8
|
|||||||
|
|
||||||
ENDU ; c7e8
|
ENDU ; c7e8
|
||||||
|
|
||||||
wUnusedC7E8:: ds 24
|
; This was a buffer for map-related pointers in the 1997 G/S prototype.
|
||||||
wUnusedC7E8End::
|
; See wMapBuffer in pokegold-spaceworld's wram.asm.
|
||||||
|
wUnusedMapBuffer:: ds 24
|
||||||
|
wUnusedMapBufferEnd::
|
||||||
|
|
||||||
|
|
||||||
SECTION "Overworld Map", WRAM0
|
SECTION "Overworld Map", WRAM0
|
||||||
@ -954,7 +957,7 @@ wPrinterTileMapBuffer:: ds SCREEN_HEIGHT * SCREEN_WIDTH ; ca90
|
|||||||
wPrinterTileMapBufferEnd::
|
wPrinterTileMapBufferEnd::
|
||||||
wPrinterStatus:: db ; cbf8
|
wPrinterStatus:: db ; cbf8
|
||||||
ds 1
|
ds 1
|
||||||
wcbfa:: ds 1
|
wcbfa:: db
|
||||||
wGBPrinterSettings:: db
|
wGBPrinterSettings:: db
|
||||||
ds 16
|
ds 16
|
||||||
wGameboyPrinterRAMEnd::
|
wGameboyPrinterRAMEnd::
|
||||||
@ -2259,22 +2262,23 @@ wTimeOfDay:: db ; d269
|
|||||||
SECTION "Enemy Party", WRAMX
|
SECTION "Enemy Party", WRAMX
|
||||||
|
|
||||||
UNION ; d26b
|
UNION ; d26b
|
||||||
wd26b::
|
|
||||||
wPokedexShowPointerAddr:: dw
|
wPokedexShowPointerAddr:: dw
|
||||||
wPokedexShowPointerBank:: db
|
wPokedexShowPointerBank:: db
|
||||||
ds 3
|
ds 3
|
||||||
wd271:: ds 5
|
wd271:: dw ; mobile
|
||||||
|
|
||||||
|
NEXTU ; d26b
|
||||||
|
wUnusedEggHatchFlag:: db
|
||||||
|
|
||||||
NEXTU ; d26b
|
NEXTU ; d26b
|
||||||
; enemy party
|
; enemy party
|
||||||
wOTPlayerName:: ds NAME_LENGTH ; d26b
|
wOTPlayerName:: ds NAME_LENGTH ; d26b
|
||||||
ENDU ; d276
|
|
||||||
|
|
||||||
wOTPlayerID:: dw ; d276
|
wOTPlayerID:: dw ; d276
|
||||||
ds 8
|
ds 8
|
||||||
wOTPartyCount:: db ; d280
|
wOTPartyCount:: db ; d280
|
||||||
wOTPartySpecies:: ds PARTY_LENGTH ; d281
|
wOTPartySpecies:: ds PARTY_LENGTH ; d281
|
||||||
wOTPartyEnd:: db ; older code doesn't check PartyCount
|
wOTPartyEnd:: db ; older code doesn't check PartyCount
|
||||||
|
ENDU ; d276
|
||||||
|
|
||||||
UNION ; d288
|
UNION ; d288
|
||||||
; ot party mons
|
; ot party mons
|
||||||
@ -2309,10 +2313,10 @@ wDudeBallsEnd:: db ; d2af
|
|||||||
wDudeBagEnd::
|
wDudeBagEnd::
|
||||||
ENDU ; d430
|
ENDU ; d430
|
||||||
|
|
||||||
wd430::
|
wd430:: ; mobile
|
||||||
wBattleAction:: db ; d430
|
wBattleAction:: db ; d430
|
||||||
|
|
||||||
wd431:: db
|
wd431:: db ; mobile
|
||||||
wMapStatus:: db ; d432
|
wMapStatus:: db ; d432
|
||||||
wMapEventStatus:: db ; d433
|
wMapEventStatus:: db ; d433
|
||||||
|
|
||||||
@ -2778,8 +2782,10 @@ wKenjiBreakTimer:: ds 2 ; Kenji
|
|||||||
wYanmaMapGroup:: db ; dc5a
|
wYanmaMapGroup:: db ; dc5a
|
||||||
wYanmaMapNumber:: db
|
wYanmaMapNumber:: db
|
||||||
wPlayerMonSelection:: ds 3
|
wPlayerMonSelection:: ds 3
|
||||||
wdc5f:: ds 1
|
wdc5f:: db
|
||||||
wdc60:: ds 19
|
wdc60:: db
|
||||||
|
|
||||||
|
ds 18
|
||||||
|
|
||||||
wStepCount:: db ; dc73
|
wStepCount:: db ; dc73
|
||||||
wPoisonStepCount:: db ; dc74
|
wPoisonStepCount:: db ; dc74
|
||||||
|
Loading…
Reference in New Issue
Block a user