Prev: A4C3 Up: Map Next: A4EC
A4DC: Animate Program
The handler for entity types 74 to 77, which are the sprites of an installed program in the map. The stripe moves on to the next frame. sprites in turn.
Input
IX Entity
AnimateProgram A4DC LD A,(IX+$00) Fetch the type of the entity.
A4DF LD E,A Keep the type.
A4E0 DEC A Take one off and limit it to the four sprites...
A4E1 AND $03
A4E3 LD D,A ...and keep that in D.
A4E4 LD A,E Fetch the type again.
A4E5 AND $FC Replace the sprite with the new one...
A4E7 OR D
A4E8 LD (IX+$00),A ...and store the type.
A4EB RET Return.
Prev: A4C3 Up: Map Next: A4EC