Prev: 30450 Up: Map Next: 30511
30475: Inglish: Save The Match
Saves the bytes of a match so it can be restored if a later try fails. Reached through the jump table at JumpTable, dispatched from 30160.
InglishSaveTheMatch 30475 RES 3,E Clear the flags so bit 3 is off.
30477 PUSH DE
InglishSaveTheMatch_Loop 30478 CALL Inglish_ReadTheNextGrammarByte Call Inglish_ReadTheNextGrammarByte to read the next grammar byte.
30481 CP 160 Jump back to InglishSaveTheMatch_Loop if the grammar byte is 160.
30483 JR Z,InglishSaveTheMatch_Loop
30485 DEC HL Step back one byte through the text.
30486 DEC HL Step back one byte through the text.
30487 LD (30068),HL Remember the text pointer at InglishPrepareTheClause.
30490 LD (46812),HL Update *46812.
30493 POP DE Take the low byte of the saved word.
30494 LD A,E
30495 LD (30070),A Store the result at 30070.
30498 LD (30071),IY Store IY at 30071.
30502 LD A,(46854) Read *46854.
30505 LD (30073),A Store the result at 30073.
30508 JP InglishMatchOneWord Jump to InglishMatchOneWord to match one word.
View the equivalent code in;
Prev: 30450 Up: Map Next: 30511