![]() |
Routines |
| Prev: D835 | Up: Map | Next: D87D |
|
Used by the routine at ParseInput.
On failure, store the result in the parser workspace, then read the display flag.
|
||||
| RecordParserFailure | D85B | XOR A | Clear the parser workspace. | |
| D85C | LD ($D6B8),A | |||
| D85F | LD A,($A01C) | Jump to RecordParserFailure_StepSucceedsScript if the display is zero. | ||
| D862 | AND A | |||
| D863 | JR Z,RecordParserFailure_StepSucceedsScript | |||
| D865 | LD A,$FF | Store FF in the saved character and call ReleaseNextDisplayRecord to release the next display record. | ||
| D867 | LD ($A033),A | |||
| D86A | CALL ReleaseNextDisplayRecord | |||
| D86D | JP ParseInputNumber_ReturnZero | Return zero through ParseInputNumber_ReturnZero. | ||
| RecordParserFailure_StepSucceedsScript | D870 | LD A,$01 | Store 01 in the state byte at D7E0 and save HL. | |
| D872 | LD ($D7E0),A | |||
| D875 | PUSH HL | |||
| D876 | LD HL,($D6BD) | Read the parser pointer. | ||
| D879 | LD (HL),$C0 | Write C0 at the parser pointer, restore HL. | ||
| D87B | POP HL | |||
| D87C | RET | Return. | ||
| Prev: D835 | Up: Map | Next: D87D |