Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Status Bar Disable Flag
- ; This version by Zeldara109, vaguely based on patch by DiscoTheBat found at
- ; http://www.smwcentral.net/?p=section&a=details&id=12483
- ; but with a few changes-- notably the status bar is disabled when the flag is
- ; set (not cleared), and the timer won't be paused when it's disabled
- ; I didn't thoroughly test this; feel free to report any bugs
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- !SBFlag = $1475 ; set to disable status bar
- ; this particular default address is cleared on overworld load, useful to prevent the flag from accidentally being carried over between levels (e.g. if the player Start-Selects out)
- org $808275
- autoclean JML SBDisable3
- ; hijack the only branch to $008292 in the code
- ; $008292 itself can't be hijacked due to a jump from $008371 to $008294
- freecode
- SBDisable3:
- LDA $0D9B ; $008275 code
- BEQ + ; this was a BEQ to $008292
- JML $80827A ; if branch didn't occur, return
- +
- LDA !SBFlag
- BNE .Disable ; if flag is set, disable
- JML $808292 ; if flag is cleared, start from $008292 as normal
- .Disable
- JML $808297 ; if flag is set, skip LDY #$24 : LDA $4211
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement