Routines |
Prev: 39714 | Up: Map | Next: 39795 |
Used by the routine at 39668.
|
||||
39758 | LD A,(23702) | If Magic Knight's current room is not 2 (Outdoors, 1, Bearwoolf's Cave)... | ||
39761 | CP 2 | ... | ||
39763 | JR NZ,39779 | ...then skip ahead to 39779 | ||
39765 | LD A,(23465) | If current progress through cave is zero... | ||
39768 | OR A | ... | ||
39769 | JR Z,39779 | ...then skip ahead to 39779 | ||
39771 | DEC A | Decrease current progress through cave by one... | ||
39772 | LD (23465),A | ... | ||
39775 | LD A,4 | Load A with Magic Knight's new x-coordinate when he arrives in new room (4 is near left-hand side of room) | ||
39777 | JR 39746 | Set Magic Knight's x-coordinate, draw the room and return | ||
39779 | LD DE,1 | Set DE to 1 (dealing with current room's right exit) | ||
39782 | LD A,4 | Load A with Magic Knight's new x-coordinate when he arrives in new room (4 is near left-hand side of room) | ||
39784 | CALL 39682 | Change Magic Knight's current room (if possible) based upon right exit of his current room | ||
39787 | JR NZ,39746 | If Magic Knight's can leave his current room then set his x-coordinate, draw the room and return | ||
39789 | LD A,2 | Set Magic Knight's temporary-movement flags to 2 (Magic Knight can't move right because he can't leave his current room)... | ||
39791 | LD (23451),A | ... | ||
39794 | RET | Return |
Prev: 39714 | Up: Map | Next: 39795 |