lorom !Defalt = #$0001 !Faster = #$0002 !Fastest = #$0004 ;-----------SPEED SETTINGS---------------- org $909B44 JSR $F695 org $90F695 ;FREESPACE LDA $0A1C ;SAMUS CURRENT POSITION/STATE CMP #$0082 ;SA going left BEQ Screwattack CMP #$0081 ;SA going right BEQ Screwattack CMP #$001B ;SJ going left BEQ Spacejump CMP #$001C ;SJ going right BEQ Spacejump LDA !Defalt ;defalt speed for spinjumps STA $0B46 LDA $0B46 ;previous value for A CMP $0004,x ;code that was replaced RTS Screwattack: ;uncomment the next 6 lines if you want screw attack to only be faster if run button is held ;LDA $09B6 ;run button in RAM ;BIT $8B ;Bit for controller 1 to see if run button is held ;BNE Alpha ;branch if held ;LDA !Defalt ;defalt speed for spinjumps ;RTS ;Alpha: LDA !Fastest ;increased speed for screw attack if run is held RTS Spacejump: LDA !Faster ;increased speed for space jump RTS