lorom                   ;\ ROM is LoRom
header                  ;/ and has a header.


!DisableRAM = $79			;Bitwise, xxxxxxCF
						;x = unused, C = Disable Cape, F = Disable Firepower

org $00D081
autoclean	JML ReplaceFire				;This probably isn't necessary, but it doesn't hurt

org $00D062
autoclean	JML ReplaceCapeSpin


freecode

ReplaceFire:
		CMP #$03
		BNE NoFireball
		LDA !DisableRAM
		BIT #$01
		BNE NoFireball
		JML $00D085
		NoFireball:
		JML $00D0AD

ReplaceCapeSpin:
		LDA $19
		CMP #$02
		BNE ReplaceFire
		LDA !DisableRAM
		BIT #$02
		BNE NoCape
		JML $00D068
		NoCape:
		JML $00D0AD