![]() |
Routines |
| Prev: 5F8F | Up: Map | Next: 5FCE |
|
Used by the routine at ObeyCommand.
The scripts did not handle the command. A direction says you cannot go that way, any other verb is beyond the game, and a blank verb produces the longer refusal.
|
||||
| RefuseCommand | 5FAA | XOR A | Drop any comma continuation. | |
| 5FAB | LD ($5B85),A | |||
| 5FAE | LD A,($5B7F) | A blank verb is not a direction. | ||
| 5FB1 | OR A | |||
| 5FB2 | JR Z,RefuseCommand_Verb | |||
| 5FB4 | CP $0B | Verbs 01 to 0A are the directions that use message 18. | ||
| 5FB6 | JR NC,RefuseCommand_Verb | |||
| 5FB8 | LD A,$18 | |||
| 5FBA | JR RefuseCommand_Print | |||
| RefuseCommand_Verb | 5FBC | LD A,($5B7F) | Some other verb selects message 0C: it's beyond my power to do that. | |
| 5FBF | OR A | |||
| 5FC0 | JR Z,RefuseCommand_None | |||
| 5FC2 | LD A,$0C | |||
| RefuseCommand_Print | 5FC4 | CALL PrintSystemMessage | Call PrintSystemMessage to print the chosen refusal. | |
| 5FC7 | JP GameLoop_Act | Jump to GameLoop_Act for another turn. | ||
| RefuseCommand_None | 5FCA | LD A,$20 | Message 20: I don't understand that verb. | |
| 5FCC | JR RefuseCommand_Print | |||
| Prev: 5F8F | Up: Map | Next: 5FCE |