![]() |
Routines |
| Prev: 30673 | Up: Map | Next: 30748 |
|
Used by the routine at InglishStepOverAGroup.
Patches the matcher word at 30081 with the saved bytes. When those bytes do not match, the player is asked "what?".
|
||||
| Inglish_PatchTheMatcherWord | 30729 | LD HL,30081 | Point HL at the patched matcher word at 30081. | |
|
This entry point is used by the routine at Inglish_CountAnotherGrammarTry.
|
||||
| Inglish_PatchTheMatcherWord_Loop | 30732 | LD A,(HL) | Jump to Inglish_PatchTheMatcherWord_StoreTheSavedBytes if this grammar pair is empty. | |
| 30733 | INC HL | |||
| 30734 | OR (HL) | |||
| 30735 | JR Z,Inglish_PatchTheMatcherWord_StoreTheSavedBytes | |||
| 30737 | INC HL | Jump to Inglish_AskWhat unless the next grammar pair is empty. | ||
| 30738 | LD A,(HL) | |||
| 30739 | INC HL | |||
| 30740 | OR (HL) | |||
| 30741 | JP NZ,Inglish_AskWhat | |||
| Inglish_PatchTheMatcherWord_StoreTheSavedBytes | 30744 | LD (HL),B | Store the saved byte in the patched matcher word. | |
| 30745 | DEC HL | Step back one byte through the patched matcher word. | ||
| 30746 | LD (HL),C | Store the saved byte in the patched matcher word. | ||
| 30747 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 30673 | Up: Map | Next: 30748 |