Prev: AF56 Up: Map Next: AF7B
AF70: Parser: Validate No Direct Object
Used by the routines at F7FD, Action_Inventory, Action_Look, Action_Score, F892, F8A1, Action_Quit and F8DD.
The opposite of Parser_ValidateDirectObject, checks that there's no direct object.
Output
F The Z flag is set when there's no direct object present
F The carry flag is set when there's a second token set
Parser_ValidateNoDirectObject AF70 LD A,($A825) Return if the second token (*UserInput_Token_2) is the terminator character (FF).
AF73 CP $FF
AF75 RET Z
Print "Please rephrase that.".
AF76 CALL Response_PleaseRephraseThat Call Response_PleaseRephraseThat.
AF79 SCF Set the carry flag to indicate the command is malformed.
AF7A RET Return.
Prev: AF56 Up: Map Next: AF7B