Routines |
Prev: 35495 | Up: Map | Next: 35567 |
Used by the routine at 35495.
|
||||
35536 | LD A,(65532) | Reset command-a-character-enabled flag (i.e. false)... | ||
35539 | RES 0,A | ... | ||
35541 | LD (65532),A | ... | ||
35544 | LD HL,25395 | Point HL to start of Magic Knight's current inventory | ||
35547 | LD B,5 | Set counter to 5 (as Magic Knight can carry 5 objects) | ||
35549 | LD A,(HL) | Load index of object carried by Magic Knight into A | ||
35550 | CP 7 | And if this is the Wand of Command (object 7)... | ||
35552 | JR Z,35558 | ...then skip to 35558... | ||
35554 | INC HL | ...else advance to next inventory slot... | ||
35555 | DJNZ 35549 | ...and repeat | ||
35557 | RET | If this was last slot, then return with command-a-character-enabled flag unset | ||
35558 | LD A,(65532) | Set command-a-character-enabled flag (i.e. true)... | ||
35561 | SET 0,A | ... | ||
35563 | LD (65532),A | ... | ||
35566 | RET | Return |
Prev: 35495 | Up: Map | Next: 35567 |