lorom

org $90A4C4						;DOUBLE JUMP CHECK ROUTINE
	JSR EXTRAJUMPCHECK : NOP

org $90DD40						;ZEROS THE COUNTER FOR CHARGE JUMPING
	JSR ZEROJUMPCOUNTER




org $90F640

ZEROJUMPCOUNTER:
	LDA #$0000 : STA $7FFDE6 : LDA $0D32 : RTS
	
EXTRAJUMPCHECK:
	LDA $7FFDE6 : BEQ JUMPAGAIN
	BRA DONTJUMPAGAIN									;COMMENT THIS IF YOU WANT SCREW ATTACK TO GIVE YOU 5 JUMPS LIKE IN MP2
;	LDA $09A2 : BIT #$0008 : BEQ DONTJUMPAGAIN			;AND UNCOMMENT THIS
;	LDA $7FFDE6 : CMP #$0004 : BPL DONTJUMPAGAIN		;UNCOMMENT THIS ONE TOO
	JUMPAGAIN:
		LDA $7FFDE6 : INC A : STA $7FFDE6
		JSL $9098BC
		DONTJUMPAGAIN:
			RTS