![]() |
Routines |
Prev: 45087 | Up: Map | Next: 45185 |
Used by the routines at GameLoop and RemoveUserInput_Token_1.
|
||||
Handler_MatchVerb | 45150 | LD HL,(42976) | Load HL with *Pointer_VerbWordTokens. | |
45153 | LD BC,(42986) | Set the length of the table from *Count_VerbTokens into BC. | ||
45157 | LD A,(43044) | Search *Pointer_VerbWordTokens for *UserInput_Token_1. | ||
45160 | CPIR | |||
45162 | JR Z,Handler_Verb | Jump to Handler_Verb if *UserInput_Token_1 was found in the table. | ||
The verb wasn't found.
Print "I don't understand.".
|
||||
45164 | LD HL,43087 | HL=Messaging_IDontUnderstand. | ||
45167 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
45170 | RET | Return. | ||
The verb token was found in the table, so jump to the appropriate routine.
|
||||
Handler_Verb | 45171 | LD A,(42986) | Calculate the index using *Count_VerbTokens-C-1 and store the result in E. | |
45174 | SUB C | |||
45175 | DEC A | |||
45176 | LD E,A | |||
45177 | LD IX,(42970) | IX=*Pointer_JumpTable_Verbs. | ||
45181 | CALL GetTableEntry | Call GetTableEntry. | ||
45184 | JP (HL) | Jump to the verb handler held by HL. | ||
View the equivalent code in The Jewels Of Babylon.
|
Prev: 45087 | Up: Map | Next: 45185 |