![]() |
Routines |
| Prev: ACBD | Up: Map | Next: AD25 |
|
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 | ACFC | LD HL,$B420 | Jump to Handler_DispatchVerb_0 when the verb is known. | |
| ACFF | LD BC,($BBCB) | |||
| AD03 | LD A,($A13B) | |||
| AD06 | CPIR | |||
| AD08 | JR Z,Handler_DispatchVerb_0 | |||
|
The verb is not one this game understands.
|
||||
| AD0A | LD HL,$0018 | Print "Please rephrase that.". | ||
| AD0D | CALL PrintCompressedStringAndNewline | |||
| AD10 | RET | Return. | ||
|
Run the verb script from JumpTable_VerbScripts.
|
||||
| Handler_DispatchVerb_0 | AD11 | LD A,($BBCB) | This verb's place in JumpTable_VerbScripts. | |
| AD14 | SUB C | |||
| AD15 | DEC A | |||
| AD16 | LD E,A | |||
| AD17 | LD IX,$B44A | The verb scripts are listed at JumpTable_VerbScripts. | ||
| AD1B | CALL GetTableEntry | This verb's script. | ||
| AD1E | PUSH HL | Restore the verb script address into IX from the stack. | ||
| AD1F | POP IX | |||
| AD21 | CALL Handler_RunScript | Run that script. | ||
| AD24 | RET | Return. | ||
| Prev: ACBD | Up: Map | Next: AD25 |