Prev: 49849 Up: Map Next: 49861
49850: Choose Other Object
Used by the routine at CompareObjectDepths.
Swaps the first object for the second one, which has to be drawn before it.
Input
IY The address of the second object
ChooseOtherObject 49850 LD HL,(41548) Make the place in the list after the second object the place after the first object.
49853 LD (41546),HL
49856 PUSH IY Copy the address of the second object into IX (using the stack).
49858 POP IX
49860 RET Return.
View the equivalent code in;
Prev: 49849 Up: Map Next: 49861