Prev: AEBF Up: Map Next: AED9
AEC0: Checks to see if wally has put a foot down, classing as one step.
Used by the routines at Game_Start and Invaders_Loop.
Input
Output
Wally_StepCheck AEC0 LD A,(Wally_Frame) Every 8th frame is one step.
AEC3 RES 3,A
AEC5 RES 4,A
AEC7 OR A
AEC8 JR Z,Wally_StepCheck_0
AECA XOR A
AECB LD (Wally_StepFlag),A
AECE RET
Wally_StepCheck_0 AECF LD A,(Wally_StepFlag)
AED2 OR A
AED3 RET NZ
AED4 LD A,$01
AED6 LD (Wally_StepFlag),A
Drops thru to next code.
Prev: AEBF Up: Map Next: AED9