![]() |
Routines |
Prev: FA6A | Up: Map | Next: FAAD |
|
||||
Action_Drink | FA91 | CALL Parser_ValidateDirectObject | Call Parser_ValidateDirectObject. | |
FA94 | RET C | Return if there is no direct object in the user input (so the command is malformed). | ||
Print "Please rephrase that.".
|
||||
FA95 | CP $02 | Jump to Response_PleaseRephraseThat_Duplicate if there were more than 02 direct objects referenced in the user input (so the command is malformed). | ||
FA97 | JP NC,Response_PleaseRephraseThat_Duplicate | |||
FA9A | LD HL,$FAA9 | HL=Table_ActionDrink_TokenGroup. | ||
FA9D | LD DE,$FAAB | DE=Table_ActionsDrink. | ||
FAA0 | LD BC,$0001 | BC=0001. | ||
FAA3 | CALL $B0DE | Call B0DE. | ||
Print "You can't.".
|
||||
FAA6 | JP Response_YouCant_Duplicate | Jump to Response_YouCant_Duplicate. | ||
The token table for the action "drink":
|
||||
Table_ActionDrink_TokenGroup | FAA9 | DEFW PhraseTokens_Water | Token group 01. | |
The actions table for "drink":
|
||||
Table_ActionsDrink | FAAB | DEFW Process_Drink | Action routine 01. |
Prev: FA6A | Up: Map | Next: FAAD |