Routines |
Prev: 45505 | Up: Map | Next: 45522 |
|
||||||||||||||
45510 | LD HL,24848 | Point HL at start of Magic Knight's current inventory (carrying) | ||||||||||||
This entry point is used by the routines at 45227 and 45505.
|
||||||||||||||
45513 | LD B,5 | Load B with 5 (as characters have five inventory slots) | ||||||||||||
45515 | CP (HL) | If object at current inventory slot is the object of interest... | ||||||||||||
45516 | RET Z | ...then return with zero flag set | ||||||||||||
45517 | INC HL | Advance HL to next inventory slot | ||||||||||||
45518 | DJNZ 45515 | Decrease B (remaining number of inventory slots to check) and loop back to 33650 | ||||||||||||
45520 | OR A | Reset zero flag, as object is not present | ||||||||||||
45521 | RET | Return |
Prev: 45505 | Up: Map | Next: 45522 |