Skip to content

Commit

Permalink
Add facing fix, partially solves #13
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVilela7 committed Jul 19, 2021
1 parent 4938732 commit 2348b9d
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions super-mario-world/asm/facing_fix.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
;lorom
!bank = $800000
if read1($00FFD5) == $23
;sa1rom
!bank = $000000
endif

; Well, LM writes 94-97 at 05D97D :duk:
; so this needed to be moved down
;org $05D971
; autoclean JSL Mymain

org $05D984
autoclean JSL Mymain0
org $05D9FC
autoclean JML Mymain2
org $05DA03
autoclean JSL Mymain3

freedata
Mymain0:
STA $02
AND #$03
XBA
; this is important
PHA
LDA $94
STA $D1
LDA $95
STA $D2
LDA $96
STA $D3
LDA $97
STA $D4
PLA
XBA
RTL

Mymain2:
STA $95
STA $D2
JML $05DA17|!bank

Mymain3:
STA $97
STA $D4
STA $1D
RTL
2 changes: 2 additions & 0 deletions super-mario-world/asm/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -431,3 +431,5 @@ incsrc "iggy_hair.asm"
incsrc "proximity_wrap_fix.asm"
; 3rd party - independent patches - goal/score sprite fix
incsrc "goal_fix.asm"
; 3rd party - independent patches - sprite facing fix
incsrc "facing_fix.asm"

0 comments on commit 2348b9d

Please sign in to comment.