![]() |
Routines |
| Prev: EE1F | Up: Map | Next: EE3D |
|
Try to leave downwards.
|
||||
| Action_Down | EE23 | LD C,$05 | Choose the down exit and join the movement routine. | |
|
This entry point is used by the routines at Action_North, Action_South, Action_East, Action_West and Action_Up.
|
||||
| Action_TryExit | EE25 | CALL Parser_ValidateNoDirectObject | Call Parser_ValidateNoDirectObject to reject the command when a direct object was typed. Return if the comparison failed. | |
| EE28 | RET C | |||
| EE29 | LD B,$00 | Call GetRoomPointer to fetch this room's six exits. | ||
| EE2B | CALL GetRoomPointer | |||
| EE2E | ADD HL,BC | Jump to Action_Down_Next when that way out is closed. | ||
| EE2F | LD A,(HL) | |||
| EE30 | OR A | |||
| EE31 | JR Z,Action_Down_Next | |||
| EE33 | CALL Handler_InjuryCheck | Call Handler_InjuryCheck to enter that room, unless the player is too badly hurt. | ||
| EE36 | RET | Return. | ||
|
Reply with "You can't go in that direction.".
|
||||
| Action_Down_Next | EE37 | LD HL,$BD32 | Print "You can't go in that direction." and return to the game loop. | |
| EE3A | JP PrintResponse | |||
|
View the equivalent code in;
|
||||
| Prev: EE1F | Up: Map | Next: EE3D |