Prev: A2C0 Up: Map Next: A2EA
A2D5: Subtract Speeds From Position
Subtracts two speeds from the two coordinates of an object. Nothing in the game refers to this routine.
Input
IX Address of the object
SubtractSpeedsFromPosition A2D5 LD A,(IX+$02) Fetch the first coordinate.
A2D8 LD B,(IX+$05) Fetch the first speed.
A2DB SUB B Subtract the speed.
A2DC LD (IX+$02),A Store the coordinate.
A2DF LD A,(IX+$03) Fetch the second coordinate.
A2E2 LD B,(IX+$06) Fetch the second speed.
A2E5 SUB B Subtract the speed.
A2E6 LD (IX+$03),A Store the coordinate.
A2E9 RET Return.
Prev: A2C0 Up: Map Next: A2EA