Prev: ABE8 Up: Map Next: AC02
ABF4: Parser: Validate No Direct Object
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 ABF4 LD A,($A13C) Return if the second token (*UserInput_Token_2) is the terminator character (FF).
ABF7 CP $FF
ABF9 RET Z
Print "Please rephrase that.".
ABFA LD HL,$0018 HL=Messaging_PleaseRephraseThat.
ABFD CALL PrintCompressedStringAndNewline Call PrintCompressedStringAndNewline.
AC00 SCF Set the carry flag to indicate the command is malformed.
AC01 RET Return.
View the equivalent code in;
Prev: ABE8 Up: Map Next: AC02