Prev: F7F8 Up: Map Next: F80D
F7FA: Move Player
Used by the routines at Action_North, Action_South, Action_East, Action_West and Action_Up.
Input
C Requested direction where:
00 NORTH
01 SOUTH
02 EAST
03 WEST
04 UP
05 DOWN
MovePlayer F7FA CALL ParserValidateNoDirectObject Call ParserValidateNoDirectObject.
F7FD RET C Return if the direct object is malformed.
F7FE LD B,$00 Call GetRoomPointer.
F800 CALL GetRoomPointer
F803 ADD HL,BC HL+=BC.
F804 LD A,(HL) A=*HL.
F805 OR A Jump to Response_YouCantGoInThatDirection if the exit is closed.
F806 JP Z,Response_YouCantGoInThatDirection
F809 CALL Handler_ChangeRoom Call Handler_ChangeRoom.
F80C RET Return.
Prev: F7F8 Up: Map Next: F80D