	dcb "INIT"
		RTL

	dcb "MAIN"
		PHB		;\
		PHK		; | Change the data bank to the one our code is running from.
		PLB		; | This is a good practice.
		JSR SpriteCode	; | Jump to the sprite's function.
		PLB		; | Restore old data bank.
		RTL		;/ And return.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Sprite MAIN Code			;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

SpriteCode:
		LDA $77		;\ Check if mario is blocked from below
		CMP #$04	;| If he isn't blocked from below, Return
		BNE Return	;/
		LDA $18		;\
		AND #$80	;| If pressing A, branch
		BNE Switch	;/
		RTS		; Else, Return

Switch:
		LDA #$0B	;\ Make the Hit
		STA $1DF9	;/ Switch Sound
		LDA $14AF	;\
		EOR #$01	;| Switch between On & Off
		STA $14AF	;/
Return:				;\
		RTS		;/ Return