Prev: EC34 Up: Map Next: EC4A
EC3D: Check if the item in a room matches a certain object ID and sets the zero flag if it is
Used by the routines at EC2B and EC34.
Input
HL Buffer containing the nth object number and the target ID
EC3D LD B,(HL) Put the first byte in B as the object number.
EC3E INC HL Put the second byte in A as the target object ID.
EC3F LD A,(HL)
EC40 INC HL Move to the next part of the buffer for future use, and store it.
EC41 PUSH HL
EC42 PUSH AF Get the current object data for this room in HL.
EC43 CALL $AA8C
EC46 POP AF
EC47 CP (HL) Set the zero flag if the ID matches.
EC48 POP HL Restore the active buffer pointer in HL and return.
EC49 RET
Prev: EC34 Up: Map Next: EC4A