Prev: 46866 Up: Map Next: 46937
46925: Test Object Solid
Tests whether collision tests should take any notice of an object. The zero flag is set if the slot is unused or bit 1 of the flags is set.
Input
IY The address of the object
Output
F Zero flag set if the slot is not used or the object is ignored
Return if the slot is empty.
TestObjectSolid 46925 LD A,(IY+0) Fetch the sprite number of the object.
46928 AND A Return if the slot is not used.
46929 RET Z
After invert, bit 1 is set when the object is not ignored.
46930 LD A,(IY+7) Fetch the flags of the object.
46933 CPL Invert them.
46934 AND %00000010 Keep only bit 1.
46936 RET Return.
View the equivalent code in;
Prev: 46866 Up: Map Next: 46937