RSwitch

by circlefriendo

Game: SMW

Description: R button activates P-Switch

!pswitch = $14ad   ; timer

STZ $1401	;disable L/R scrolling

lda #$01
sta $7f9da1     ; disable L/R on HUD
sta $7f9da3     ; Set R Power on HUD


lda $17         ; Check if R pressed
and #$10
beq end

lda #$02
sta !pswitch

end:
rtl
back to listings