Routines |
Prev: 35567 | Up: Map | Next: 35629 |
Used by the routine at 35495.
|
||||
35598 | LD A,(65532) | Reset teleport-enabled flag (i.e. false)... | ||
35601 | RES 2,A | ... | ||
35603 | LD (65532),A | ... | ||
35606 | LD HL,25395 | Point HL to start of Magic Knight's current inventory | ||
35609 | LD B,5 | Set counter to 5 (as Magic Knight can carry 5 objects) | ||
35611 | LD A,(HL) | Load index of object carried by Magic Knight into A | ||
35612 | CP 48 | And if this is the Teleport Key (object 48)... | ||
35614 | JR Z,35620 | ...then skip to 35620... | ||
35616 | INC HL | ...else advance to next inventory slot... | ||
35617 | DJNZ 35611 | ...and repeat | ||
35619 | RET | If this was last slot, then return with teleport-enabled flag unset | ||
35620 | LD A,(65532) | Set teleport-enabled flag (i.e. true)... | ||
35623 | SET 2,A | ... | ||
35625 | LD (65532),A | ... | ||
35628 | RET | Return |
Prev: 35567 | Up: Map | Next: 35629 |