![]() |
Routines |
| Up: Map | Next: C02E |
|
Clears the parser workspace. A comma on the previous line reprints a space and jumps to ParseWord_Copy; otherwise it continues into PrintPrompt.
|
||||
|
Forget the previous noun, the scroll count and the three counters.
|
||||
| ReadCommand | C000 | XOR A | Clear *Noun and HL. | |
| C001 | LD L,A | |||
| C002 | LD H,A | |||
| C003 | LD ($5B80),A | |||
| C006 | LD ($655C),A | Clear *RowsScrolled. | ||
| C009 | LD ($5B81),HL | Clear *Counter1, *Counter3 and *WordCount. | ||
| C00C | LD ($5B83),A | |||
| C00F | LD ($5B8B),A | |||
| C012 | INC A | Write 01 to *WordSlot. | ||
| C013 | LD ($5B86),A | |||
|
A comma on the previous line left more words to read.
|
||||
| C016 | LD A,($5B85) | Jump to PrintPrompt when there is no leftover command. | ||
| C019 | OR A | |||
| C01A | JR Z,PrintPrompt | |||
| C01C | LD A,$1B | Call PrintSystemMessage to print message 1B (a space). | ||
| C01E | CALL $63D4 | |||
| ReadCommand_Wait | C021 | LD A,($5C04) | Wait until the key is not a space. | |
| C024 | CP $20 | |||
| C026 | JR Z,ReadCommand_Wait | |||
| C028 | LD HL,($5B8C) | Fetch the leftover pointer from *InputPointer. | ||
| C02B | JP ParseWord_Copy | Jump to ParseWord_Copy. | ||
| Up: Map | Next: C02E |