Prev: 54890 Up: Map Next: 55022
55002: Unused routine
This routine seems to be involved with the relative positioning of two different entities, assuming that IX contains a complex state data address.
55002 LD IY,(34258) Load IY with address of complex state data for entity involved in last collision check
55006 LD A,(IY+7) Load A with width of this entity, minus one...
55009 SUB (IY+5) ...
55012 SRL A Divide result by two, clearing remainder...
55014 DEC A ...and subtract one
55015 ADD A,(IY+5) Add x-coordinate of entity's left edge
55018 CP (IX+5)
55021 RET Return
Prev: 54890 Up: Map Next: 55022