Irmortononce

by supermaks64

Game: SMW

Description: Pressing L or R takes you to Morton's Castle once

LDA #$01
STA $1426
LDA $1B88
BEQ +
LDA #$12
STA $1DF9
LDA #$DE
LDX #$C0
LDY #$DE
RTL
+
LDA $1B89
CMP #$4C
BNE +
INC $1B89
+
CMP #$51
BNE +
DEC $1B89
PHB
PHK
PLB
STZ $03
LDY.b #$0E
REP #$30
STZ $00
	LDA.l $7F837B
	TAX
CODE_05B1EF:
	LDA.w DATA_05A580,Y	
	STA.l $7F837D,X		
	LDA.w #$2300		
	STA.l $7F837F,X		
	PHY
	SEP #$20			
	LDA.b #$12			
	STA $02		
	LDY $00
CODE_05B208:			
	LDA.b #$1F			
	BIT $03			
	BMI CODE_05B218		
	LDA.w DATA_05A5D9,Y
CMP #$FE
BNE ++
STA $03
LDA #$1F
++
	INY
CODE_05B218:
	STA.l $7F8381,X		
	LDA.b #$39			
	STA.l $7F8382,X		
	INX #2
	DEC $02
	BNE CODE_05B208
	STY $00				
	REP #$20			
	INX #4
	PLY	
	DEY #2
	BPL CODE_05B1EF	
	LDA.w #$00FF		
	STA.l $7F837D,X
	TXA
	STA.l $7F837B
SEP #$30			
LDA.b #$01			
STA.w $13D5			
STZ $22			
STZ $23			
STZ $24			
STZ $25			
PLB
+
RTL

DATA_05A580:
db $51,$A7,$51,$87,$51,$67,$51,$47
db $51,$27,$51,$07,$50,$E7,$50,$C7

DATA_05A5D9:
db $42,$47,$44,$44,$51,$23,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F,$1F
db $1F,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9F,$9F,$9F,$9F
;db $1F,$1F,$1F,$1C
;db $00,$12,$0C,$40,$46,$48,$42,$48,$40
;db $4D,$0C,$40,$4A,$52
;db $FE
back to listings