Improvement to FF damage fix to insta-warp Link to destination once Link has exceeded the bounds of the current screen

This commit is contained in:
codemann8
2021-12-13 23:16:29 -06:00
parent c3df5f6cb1
commit 9c3d85e360
2 changed files with 21 additions and 1 deletions

View File

@@ -134,4 +134,21 @@ protectff:
.spow
db $80, $81, $81, $FF, $FF, $FF, $FF, $FF
db $FF, $81, $81, $FF, $FF, $FF, $FF, $FF
db $FF, $81, $81, $FF, $FF, $FF, $FF, $FF
FlipperScrollWarp:
STZ $00 : STZ $02 ; what we wrote over
LDA $308358 : BEQ .checkX : RTL
.checkX
LDA $22 : CMP.w $0604 : BCC +
CMP.w $0616 : BCS +
BRA .checkY
+ LDA $7EC186
STA $22
.checkY
LDA $20 : CMP.w $0600 : BCC +
CMP.w $0612 : BCS +
RTL
+ LDA $7EC184
STA $20
RTL