db $42
JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Return : JMP Main


Main:	
	REP #$20	;Check if on...
	LDA $7FC0FC	;...
	AND #$0001	;...
	BNE Return
	SEP #$20

Switch_Check:
	LDA $14AF	;Check if switch is on...
	CMP #$00	;
	BEQ Switch_On	;Jump if it is.
Switch_Off:
	LDA #$00	;
	STA $14AF	;Turn switch on
	BRA Next
Switch_On:
	LDA #$01	;
	STA $14AF	;Turn switch on
Next:
	LDA #$09	;Play "click" sound
	STA $1DFC	;Store to bank.

	REP #$20	;Turn on animation...
	LDA $7FC0FC	;...
	ORA #$0001	;...
	STA $7FC0FC	;...
Return:
	SEP #$20
	RTL		;Return
