Replacing hardcoded jumps and references to labels

This commit is contained in:
codemann8
2022-05-21 20:44:38 -05:00
parent c157708769
commit 74f66abf51
2 changed files with 8 additions and 2 deletions

View File

@@ -557,6 +557,9 @@ Overworld_MemorizeMap16Change:
org $05A51D
Sprite_SpawnFallingItem:
org $05AFF1
Sprite_6C_MirrorPortal_dont_do_warp:
org $05DF6C ; 02DF6C - Bank05.asm : 2445
Sprite_DrawMultiple:
@@ -617,6 +620,9 @@ Player_HaltDashAttackLong:
org $07999D
Link_ReceiveItem:
org $07A985
SetGameModeLikeMirror:
org $07E68F
Unknown_Method_0: ; In US version disassembly simply called "$3E6A6 IN ROM"

View File

@@ -220,14 +220,14 @@ OWPreserveMirrorSprite:
rtl
.deleteMirror
pla : lda #$de : pha ; in vanilla, if in dark world, jump to $05afdf
rtl
+ pla : pla : pla : jml Sprite_6C_MirrorPortal_missing_mirror
}
OWMirrorSpriteMove:
{
lda.l OWMode+1 : and.b #!FLAG_OW_CROSSED : beq +
lda $1acf : ora #$40 : sta $1acf
+ lda #$2c : jml.l $07A985 ; what we wrote over
lda.b #$2c : jml SetGameModeLikeMirror ; what we wrote over
}
OWMirrorSpriteRestore:
{