Prev: CC97 Up: Map Next: CCBE
CCAE: Next Sprite Number
Used by the routine at HandleOutlaw.
Moves on to the next of the four walking frames of a figure. They are the lowest two bits of the walking frame.
Input
IX The address of the figure
Add one to the lowest two bits of the walking frame.
NextSpriteNumber CCAE LD A,(IX+$0C) Fetch the walking frame and keep it in C.
CCB1 LD C,A
CCB2 INC A Add one.
CCB3 AND %00000011 Keep the lowest two bits.
CCB5 LD B,A Keep them in B.
Put them back in the walking frame.
CCB6 LD A,C Fetch the walking frame again.
CCB7 AND %11111100 Clear the lowest two bits.
CCB9 OR B Put in the new frame.
CCBA LD (IX+$0C),A Set the walking frame and return.
CCBD RET
View the equivalent code in;
Prev: CC97 Up: Map Next: CCBE