![]() |
Routines |
| Prev: F7F4 | Up: Map | Next: F80D |
|
Carry out the "Down" command.
|
||||
| Action_Down | F7F8 | LD C,$05 | Select the down exit. | |
|
This entry point is used by the routines at Action_North, Action_South, Action_East, Action_West and Action_Up.
|
||||
| Action_Move | F7FA | CALL ParserValidateNoDirectObject | Call ParserValidateNoDirectObject to check that the command has no object. | |
| F7FD | RET C | Leave the routine when the carry flag is set. | ||
| F7FE | LD B,$00 | Call GetRoomPointer to point at the current room's exits. | ||
| F800 | CALL GetRoomPointer | |||
| F803 | ADD HL,BC | Point at the exit for this direction. | ||
| F804 | LD A,(HL) | Read this exit's destination room. | ||
| F805 | OR A | Refuse the move when that exit is closed. | ||
| F806 | JP Z,Messaging_YouCantGoInThatDirection_Reply | |||
| F809 | CALL Handler_ChangeRoom | Call Handler_ChangeRoom to change room. | ||
| F80C | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: F7F4 | Up: Map | Next: F80D |