Code
;================================;
;Autowalk, version 99999.9999999 ;
;Made by Iceguy ;
;================================;
;Uses Extra bit: YES
;If set, you'll walk left instead.
!Speed = $18 ; Speed to walk at.
; 00 = Stationary.
; 01 = HORRIBLY slow.
; 08ish = standard walking.
; 20ish = really fast.
; Don't go beyond 25 or so, might glitch through walls.
!DisableControls = $01 ; Disable spin-jumping, jumping etc. (00 = No, 01 = Yes)
;===========================================================================================================================================
print "INIT ",pc
LDY #$00
LDA $7FAB10,x
AND #$04
STA $1588,x ; Store the extra bit in $1588,x so we can use it later.
LDA $1588,x
BEQ LOLno ; If bit = clear, use left.
INY
LOLno:
STY $76
RTL
print "MAIN ",pc
PHB
PHK
PLB
JSR LOOOOOL
PLB
RTL
;==========;
; Main ;
;==========;
LOOOOOL:
LDA #!DisableControls
BEQ Lol
LDA #$FF
STA $0DAA
STA $0DAC
Lol:
LDA $1588,x
BEQ LOLOLOLOL
STZ $76
LDA #!Speed
EOR #$FF
INC A
BRA ROFLCOPTERS
LOLOLOLOL:
LDA #$01
STA $76
LDA #!Speed
ROFLCOPTERS:
STA $7B
LDA $77
AND #$03
BEQ ROFLOL
LDA $1588,x
EOR #$04
STA $1588,x
STZ $77
BRA Lol
ROFLOL:
RTS
#