![]() |
Routines |
| Prev: 24526 | Up: Map | Next: 24591 |
|
Used by the routine at ObeyCommand.
If the verb is one of the directions listed for this room, move to the destination that follows it.
|
||||
| TakeExit | 24561 | CALL FindExits | Call FindExits to find this room's exits. | |
| 24564 | DEC HL | |||
|
Each exit is a verb byte with bit 7 clear, then the destination room. Bit 7 ends the room.
|
||||
| TakeExit_Next | 24565 | INC HL | Bit 7 ends this room's exits. | |
| 24566 | INC HL | |||
| 24567 | BIT 7,(HL) | |||
| 24569 | JR NZ,TakeExit_Done | |||
| 24571 | LD A,(23423) | Keep the exit whose verb is the one just typed. | ||
| 24574 | CP (HL) | |||
| 24575 | JR NZ,TakeExit_Next | |||
| 24577 | XOR A | Remember the match and clear the last-matched verb. | ||
| 24578 | LD (23503),A | |||
| 24581 | INC A | |||
| 24582 | LD (23418),A | |||
| 24585 | INC HL | Move to the destination room. | ||
| 24586 | LD A,(HL) | |||
| 24587 | LD (23943),A | |||
| TakeExit_Done | 24590 | RET | Return. | |
| Prev: 24526 | Up: Map | Next: 24591 |