Added ability to cancel out of flute menu by pressing X

This commit is contained in:
codemann8
2021-06-27 14:50:28 -05:00
parent 15ffecb6fb
commit d3fd54600f
3 changed files with 27 additions and 1 deletions

2
Rom.py
View File

@@ -27,7 +27,7 @@ from EntranceShuffle import door_addresses, exit_ids
JAP10HASH = '03a63945398191337e896e5771f77173' JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = '837932c9c668a71707a764494f7a6e1a' RANDOMIZERBASEHASH = '5fecbc1016544cfdcc596abffaed6736'
class JsonRom(object): class JsonRom(object):

View File

@@ -12,6 +12,12 @@ dw 0
org $02a999 org $02a999
jsl OWEdgeTransition : nop #4 ;LDA $02A4E3,X : ORA $7EF3CA jsl OWEdgeTransition : nop #4 ;LDA $02A4E3,X : ORA $7EF3CA
; flute menu cancel
org $0ab7af ;LDA $F2 : ORA $F0 : AND #$C0
jml OWFluteCancel2 : nop
org $0ab90d ;JSL $02E99D
jsl OWFluteCancel
;(replacing -> LDA $8A : AND.b #$40) ;(replacing -> LDA $8A : AND.b #$40)
org $00d8c4 ; < ? - Bank00.asm 4068 () org $00d8c4 ; < ? - Bank00.asm 4068 ()
jsl.l OWWorldCheck jsl.l OWWorldCheck
@@ -84,6 +90,7 @@ DivideByTwoPreserveSign:
{ {
asl : php : ror : plp : ror : rtl asl : php : ror : plp : ror : rtl
} }
OWWorldCheck: OWWorldCheck:
{ {
phx phx
@@ -97,6 +104,25 @@ OWWorldCheck16:
plx : and.w #$00ff : rtl plx : and.w #$00ff : rtl
} }
OWFluteCancel:
{
lda.l OWFlags+1 : and #$10 : bne +
jsl $02e99d : rtl
+ lda $7f5006 : cmp #$01 : beq +
jsl $02e99d
+ lda #$00 : sta $7f5006 : rtl
}
OWFluteCancel2:
{
lda $f2 : ora $f0 : and #$c0 : bne +
jml $0ab7bd
+ inc $0200
lda.l OWFlags+1 : and #$10 : beq +
lda $f2 : cmp #$40 : bne +
lda #$01 : sta $7f5006
+ rtl
}
org $aa9000 org $aa9000
OWEdgeTransition: OWEdgeTransition:
{ {

Binary file not shown.