![]() |
Routines |
| Prev: 8D2A | Up: Map | Next: 8DAD |
|
Used by the routines at GameLoop and HandlerResolveSynonym.
Find the typed verb and jump to its action routine.
|
||||
| HandlerMatchVerb | 8D85 | LD HL,$891C | Point at the list of verb word numbers. | |
| 8D88 | LD BC,($62DA) | Fetch how many verbs the game knows. | ||
| 8D8C | LD A,($6291) | Fetch the first word of the command. | ||
| 8D8F | CPIR | Find the typed verb in that list. | ||
| 8D91 | JR Z,HandlerMatchVerb_Step1 | The typed word is one of those verbs. | ||
| 8D93 | LD HL,$62EC | Print I don't understand.. | ||
| 8D96 | CALL PrintStringAndANewline | |||
| 8D99 | JR GameLoop | Jump to GameLoop to read the next command. | ||
| HandlerMatchVerb_Step1 | 8D9B | LD A,($62DA) | Fetch how many verbs the game knows. | |
| 8D9E | SUB C | The matching verb selects its handler. | ||
| 8D9F | DEC A | |||
| 8DA0 | LD E,A | |||
| 8DA1 | LD IX,($62D8) | Fetch the verb handlers. | ||
| 8DA5 | CALL GetTableEntry | Call GetTableEntry to look up the table entry. | ||
|
This entry point is used by the routine at GameLoop.
|
||||
| HandlerMatchVerb_Step2 | 8DA8 | LD DE,$8D2A | Run the verb, then return to the game loop. | |
| 8DAB | PUSH DE | |||
| 8DAC | JP (HL) | |||
| Prev: 8D2A | Up: Map | Next: 8DAD |