Prev: 46704 Up: Map Next: 46740
46725: Parser: Validate Input Tokens
Check the words after the verb, and ask for a rephrase when none of them is a known item. Nothing calls this routine.
Output
F The carry flag is set when the command is malformed
The first token is the verb, so read the second token.
Parser_ValidateInputTokens 46725 LD A,(44847) Read the second word token into A.
46728 CP 255 Compare the token with the terminator.
46730 RET Z Return if there is no second token.
There is a second token, so count the known items.
46731 CALL ParserCountItemReferences Call ParserCountItemReferences to count how the command refers to the item.
46734 RET NZ Return if a known item was named.
The words are not known items.
46735 CALL Messaging_PleaseRephraseThat_Newline Call Messaging_PleaseRephraseThat_Newline to ask the player to rephrase.
46738 SCF Mark the command as malformed.
46739 RET Return.
Prev: 46704 Up: Map Next: 46740