Prev: F93A Up: Map Next: F9B2
F9A4: Asteroids : Get the change values for the current direction
Used by the routines at F93A and F9F5.
Input
HL On exit, points to data containing a change in x and y co-ordinates
F9A4 LD A,(IY+$00) Get the current sprite.
F9A7 SUB $6E Subtract 6E to get an offset between 0 and 8.
F9A9 ADD A,A Double this to get a word offset.
F9AA LD E,A Put this in DE.
F9AB LD D,$00
F9AD LD HL,$F9B2 Add the base address of the direction table. (F9B2) and return.
F9B0 ADD HL,DE
F9B1 RET
Prev: F93A Up: Map Next: F9B2