Skip to content

Commit

Permalink
Add No Hole patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jakiki6 committed Jun 30, 2020
1 parent 43fc89c commit 6f22b66
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Binary file modified builds/all.nes
Binary file not shown.
Binary file added builds/nohole.nes
Binary file not shown.
17 changes: 17 additions & 0 deletions patches/nohole.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/smb.asm b/smb.asm
index e5ef1ad..d7d48a5 100644
--- a/smb.asm
+++ b/smb.asm
@@ -5633,9 +5633,9 @@ PlayerHole: lda Player_Y_HighPos ;check player's vertical high byte
bne HoleDie ;if set, branch
ldy CloudTypeOverride ;check for cloud type override
bne ChkHoleX ;skip to last part if found
-HoleDie: inx ;set flag in X for player death
- ldy GameEngineSubroutine
- cpy #$0b ;check for some other routine running
+HoleDie: lda #$01
+ sta Player_Y_HighPos
+ rts
beq ChkHoleX ;if so, branch ahead
ldy DeathMusicLoaded ;check value here
bne HoleBottom ;if already set, branch to next part

0 comments on commit 6f22b66

Please sign in to comment.