Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified patches/ips/disableable_etanks.ips
Binary file not shown.
Binary file modified patches/ips/horizontal_door_fix.ips
Binary file not shown.
2 changes: 2 additions & 0 deletions patches/src/disableable_etanks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ org !bank_83_free_space_start

etank_do_some_math:
php
sei ; disable interrupts
rep #$30

lda $0755
Expand Down Expand Up @@ -485,6 +486,7 @@ etank_do_some_math:
lda $809CCE,X ; There's a nice table here of E-Tank tile offsets that are convenient for our purposes
sta !etank_hud_tile_offset

cli ; enable interrupts
plp
rtl

Expand Down
8 changes: 5 additions & 3 deletions patches/src/horizontal_door_fix.asm
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,24 @@ lorom
!bank_84_free_space_end = $84f5a0

org $848488
jsr clr_ints
jmp clr_ints
clr_ret:

org $8484e0
jmp set_ints
set_ret:

org !bank_84_free_space_start
clr_ints:
sei ; disable IRQ
sta $4202 ; replaced code
rts
jmp clr_ret

set_ints:
cli ; enable IRQ
plx ; replaced code
ply
plb
jmp $84e3
jmp set_ret

warnpc !bank_84_free_space_end
Loading