Prev: 55349 Up: Map Next: 55421
55387: Record A Parser Failure
Used by the routine at ParseInput.
On failure, store the result in the parser workspace, then read the display flag.
RecordParserFailure 55387 XOR A Clear the parser workspace.
55388 LD (54968),A
55391 LD A,(40988) Jump to RecordParserFailure_StepSucceedsScript if the display is zero.
55394 AND A
55395 JR Z,RecordParserFailure_StepSucceedsScript
55397 LD A,255 Store 255 in the saved character and call ReleaseNextDisplayRecord to release the next display record.
55399 LD (41011),A
55402 CALL ReleaseNextDisplayRecord
55405 JP ParseInputNumber_ReturnZero Return zero through ParseInputNumber_ReturnZero.
RecordParserFailure_StepSucceedsScript 55408 LD A,1 Store 1 in the state byte at 55264 and save HL.
55410 LD (55264),A
55413 PUSH HL
55414 LD HL,(54973) Read the parser pointer.
55417 LD (HL),192 Write 192 at the parser pointer, restore HL.
55419 POP HL
55420 RET Return.
Prev: 55349 Up: Map Next: 55421