![]() |
Routines |
| Prev: A1C8 | Up: Map | Next: A1E3 |
|
Used by the routines at Turn_RunTheActionHandler and Turn_RunTheHandlerIfPresent.
Matches the current action against the five verb bytes at A20B and returns when one of them matches.
|
||||
| Action_MatchAVerbInTheTable | A1D0 | PUSH HL | Count 05 passes. | |
| A1D1 | PUSH BC | |||
| A1D2 | LD B,$05 | |||
| A1D4 | LD HL,$A20B | Point HL at table: Verb List. | ||
| A1D7 | LD A,($B6E7) | Read *CurrentAction. | ||
| Action_MatchAVerbInTheTable_TestTheVerb | A1DA | CP (HL) | Jump to Action_MatchAVerbInTheTable_ReturnFromTheVerbTable if the current action is the verb byte. | |
| A1DB | JR Z,Action_MatchAVerbInTheTable_ReturnFromTheVerbTable | |||
| A1DD | INC HL | Step to the next byte in display exits. | ||
| A1DE | DJNZ Action_MatchAVerbInTheTable_TestTheVerb | Loop back to Action_MatchAVerbInTheTable_TestTheVerb until 05 runs out. | ||
| Action_MatchAVerbInTheTable_ReturnFromTheVerbTable | A1E0 | POP BC | Restore BC and HL from the stack. | |
| A1E1 | POP HL | |||
| A1E2 | RET | Return. | ||
| Prev: A1C8 | Up: Map | Next: A1E3 |