![]() |
Routines |
| Prev: C31E | Up: Map | Next: C345 |
|
Accept a command that names one or two objects, and reject the rest.
|
||||
| Parser_ValidateInputTokens | C32D | CALL Parser_ValidateDirectObject | Return if the words after the verb are not valid for this command. | |
| C330 | RET C | |||
| C331 | CP $01 | Jump to Parser_ValidateInputTokens_Next unless the carried location matches. | ||
| C333 | JR NZ,Parser_ValidateInputTokens_Next | |||
|
Only one object was named.
|
||||
| C335 | CALL Response_PleaseBeMoreSpecific | Call Response_PleaseBeMoreSpecific. | ||
| C338 | SCF | Set the carry flag to reject the command. | ||
| C339 | RET | Return. | ||
| Parser_ValidateInputTokens_Next | C33A | CP $03 | Jump to Parser_ValidateInputTokens_Rephrase when the value 03 succeeded. | |
| C33C | JR NC,Parser_ValidateInputTokens_Rephrase | |||
| C33E | AND A | Clear the carry flag; the input tokens are valid. | ||
| C33F | RET | Return. | ||
|
Too many objects were named.
|
||||
| Parser_ValidateInputTokens_Rephrase | C340 | CALL Response_PleaseRephraseThat | Call Response_PleaseRephraseThat. | |
| C343 | SCF | Set the carry flag to reject the command. | ||
| C344 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: C31E | Up: Map | Next: C345 |