;============================================
;	Gravity suit Immune to Spikes ASM ver1.3
;	ASM by: Charmander aka Webber1900
;============================================

lorom

;----------------------------------------
;Gravity Suit Immune to Spikes (Spike block)
;----------------------------------------

org $949069		; Hi-jack code to free space.
	JSR $B1D0

org $949057		; Hi-jack code to free space.
	JSR $B1D0

org $94B1D0		; Start of custom code at free space.

	LDA $09A2	; Let's check if Gravity Suit is equiped.
	BIT #$0020
	BNE END		; Branch if we have Gravity Suit equiped.
	JSR ($902B,x)
	RTS

;----------------------------------------
;Gravity Suit Immune to Spikes (Air-Fool X-Ray BTS 2)
;----------------------------------------

org $9498B0		; Hi-jack code to free space.
	DW $B1B0

org $94B1B0		; Start of custom code at free space.
	LDA $09A2	; Let's check if Gravity Suit is equiped.
	BIT #$0020
	BNE END		; Branch if we have Gravity Suit equiped.
	JSR $9866

END:         
	RTS