Prev: EBE2 Up: Map Next: EBFE
EBED: Pattern 1 HAS(x) : Match if item xx held
EBED LD A,(HL) Get the item ID.
EBEE INC HL Ensure HL points to the next pattern.
EBEF CP (IY+$50) Is the first item held this?
EBF2 JP Z,$EACB If so, there's a match, carry on looking at other patterns.
EBF5 CP (IY+$55) Is the second item held this?
EBF8 JP Z,$EACB If so, there's a match, carry on looking at other patterns.
EBFB JP $EAE3 Otherwise, flag the pattern has having not matched.
Prev: EBE2 Up: Map Next: EBFE