Prev: 33834 Up: Map Next: 33896
33863: Check whether current object is wanted / unwanted by current character
This routine checks whether the Current Object is associated with the Current Character in either the table of characters' wanted objects (IX = 44238) or the table of characters' unwanted objects (IX = 44251).
Used by the routines at 29619 and 29756.
Input
IX Points to table of characters' wanted (IX = 44238) or unwanted (IX = 44251) objects
Output
F Zero flag set if match found, reset otherwise
33863 HALT Wait for interrupt
33864 LD A,(IX+0) If current entry's character index is 255 (end marker)...
33867 CP 255 ...
33869 JP Z,33894 ...then skip ahead to 33894
33872 LD A,(29632) If current entry's character index is not the same as the Current Character...
33875 CP (IX+0) ...
33878 JR NZ,33888 ...then skip ahead to 33888 (advance to next character-object pair record)
33880 LD A,(29526) If current entry's object index is the same as Current Object...
33883 CP (IX+1) ...
33886 JR Z,33895 ...then return (with zero flag set)
33888 INC IX Advance to next character-object pair to check...
33890 INC IX ...
33892 JR 33864 Loop back to 33864
33894 OR A Reset zero flag as no match was found
33895 RET Return
Prev: 33834 Up: Map Next: 33896