Routines |
Prev: 35536 | Up: Map | Next: 35598 |
Used by the routine at 35495.
|
||||
35567 | LD A,(65532) | Reset locate-enabled flag (i.e. false)... | ||
35570 | RES 1,A | ... | ||
35572 | LD (65532),A | ... | ||
35575 | LD HL,25395 | Point HL to start of Magic Knight's current inventory | ||
35578 | LD B,5 | Set counter to 5 (as Magic Knight can carry 5 objects) | ||
35580 | LD A,(HL) | Load index of object carried by Magic Knight into A | ||
35581 | CP 6 | And if this is the Crystal Ball (object 6)... | ||
35583 | JR Z,35589 | ...then skip to 35589... | ||
35585 | INC HL | ...else advance to next inventory slot... | ||
35586 | DJNZ 35580 | ...and repeat | ||
35588 | RET | If this was last slot, then return with locate-enabled flag unset | ||
35589 | LD A,(65532) | Set locate-enabled flag (i.e. true)... | ||
35592 | SET 1,A | ... | ||
35594 | LD (65532),A | ... | ||
35597 | RET | Return |
Prev: 35536 | Up: Map | Next: 35598 |