![]() |
Routines |
| Prev: 44221 | Up: Map | Next: 44325 |
|
Used by the routine at GameStart.
Finds the first input token in Table_VerbTokens and runs the matching script from JumpTable_VerbScripts. Prints the rephrase message when the token is unknown.
|
||||
|
Look up the first token in the verb list at Table_VerbTokens.
|
||||
| Handler_DispatchVerb | 44284 | LD HL,46112 | Jump to Handler_DispatchVerb_0 when the verb is known. | |
| 44287 | LD BC,(48075) | |||
| 44291 | LD A,(41275) | |||
| 44294 | CPIR | |||
| 44296 | JR Z,Handler_DispatchVerb_0 | |||
|
The verb is not one this game understands.
|
||||
| 44298 | LD HL,24 | Print "Please rephrase that.". | ||
| 44301 | CALL PrintCompressedStringAndNewline | |||
| 44304 | RET | Return. | ||
|
Run the verb script from JumpTable_VerbScripts.
|
||||
| Handler_DispatchVerb_0 | 44305 | LD A,(48075) | This verb's place in JumpTable_VerbScripts. | |
| 44308 | SUB C | |||
| 44309 | DEC A | |||
| 44310 | LD E,A | |||
| 44311 | LD IX,46154 | The verb scripts are listed at JumpTable_VerbScripts. | ||
| 44315 | CALL GetTableEntry | This verb's script. | ||
| 44318 | PUSH HL | Restore the verb script address into IX from the stack. | ||
| 44319 | POP IX | |||
| 44321 | CALL Handler_RunScript | Run that script. | ||
| 44324 | RET | Return. | ||
| Prev: 44221 | Up: Map | Next: 44325 |