Prev: 36138 Up: Map Next: 36269
36229: Handler: Match Verb
Used by the routines at GameLoop and HandlerResolveSynonym.
Find the typed verb and jump to its action routine.
HandlerMatchVerb 36229 LD HL,35100 Point at the list of verb word numbers.
36232 LD BC,(25306) Fetch how many verbs the game knows.
36236 LD A,(25233) Fetch the first word of the command.
36239 CPIR Find the typed verb in that list.
36241 JR Z,HandlerMatchVerb_Step1 The typed word is one of those verbs.
36243 LD HL,25324 Print I don't understand..
36246 CALL PrintStringAndANewline
36249 JR GameLoop Jump to GameLoop to read the next command.
HandlerMatchVerb_Step1 36251 LD A,(25306) Fetch how many verbs the game knows.
36254 SUB C The matching verb selects its handler.
36255 DEC A
36256 LD E,A
36257 LD IX,(25304) Fetch the verb handlers.
36261 CALL GetTableEntry Call GetTableEntry to look up the table entry.
This entry point is used by the routine at GameLoop.
HandlerMatchVerb_Step2 36264 LD DE,36138 Run the verb, then return to the game loop.
36267 PUSH DE
36268 JP (HL)
Prev: 36138 Up: Map Next: 36269