![]() |
Routines |
Prev: AC02 | Up: Map | Next: AC2F |
|
||||||||||||||
The first token is the verb, so target the second token for the direct object.
|
||||||||||||||
Parser_ValidateInputTokens | AC1D | LD A,($A13C) | Fetch the second token from the user input and store it in A. | |||||||||||
AC20 | CP $FF | Return if there is no second token. | ||||||||||||
AC22 | RET Z | |||||||||||||
There is a second token; so validate all direct objects after this point.
|
||||||||||||||
AC23 | CALL Parser_CountItems | Call Parser_CountItems. | ||||||||||||
AC26 | RET NZ | Return if there is at least one valid item mentioned in the user input tokens. | ||||||||||||
Any references are invalid.
Print "Please rephrase that.".
|
||||||||||||||
AC27 | LD HL,$0018 | HL=Messaging_PleaseRephraseThat. | ||||||||||||
AC2A | CALL PrintCompressedStringAndNewline | Call PrintCompressedStringAndNewline. | ||||||||||||
AC2D | SCF | Set the carry flag. | ||||||||||||
AC2E | RET | Return. | ||||||||||||
View the equivalent code in;
|
Prev: AC02 | Up: Map | Next: AC2F |