![]() |
Routines |
| Prev: 82F7 | Up: Map | Next: 83CD |
|
Prints the hint for the player's current location. Reached through the special-key table at 8271, dispatched from Command_MatchASpecialKey.
|
||||
|
Test whose turn it is.
|
||||
| DisplayLocateHelpMessage | 83A0 | LD A,($B6EA) | Jump to InglishPrepareTheClause_3 if *CurrentCharacter is not zero. | |
| 83A3 | AND A | |||
| 83A4 | JP NZ,InglishPrepareTheClause_3 | |||
| 83A7 | PUSH HL | Save HL and IX, and point HL at B467. | ||
| 83A8 | PUSH IX | |||
|
Default message response should there be no match for the current location.
|
||||
| 83AA | LD HL,$B467 | |||
|
Use the current location ID to look-up if there is a specific help message.
|
||||
| 83AD | LD A,($C12B) | Using the current location number, see if there is a help message available for display. This is achieved by passing LocateHelpMessage to the Index ID Table routine. | ||
| 83B0 | LD IX,$83CD | |||
| 83B4 | CALL IndexIdTable | |||
| 83B7 | JR Z,DisplayLocateHelpMessage_Print | If there is no message, jump directly to DisplayLocateHelpMessage_Print to display the default message. | ||
|
Point to the specific help for the current location.
|
||||
| 83B9 | LD L,(IX+$01) | Read the low byte of this location's hint message address. | ||
| 83BC | LD H,(IX+$02) | Read the high byte of this location's hint message address. | ||
|
Print the message.
|
||||
| DisplayLocateHelpMessage_Print | 83BF | LD A,$01 | Write 01 to WaitCountdown. | |
| 83C1 | LD ($B701),A | |||
| 83C4 | CALL PrintMessage | Call PrintMessage to print message. | ||
| 83C7 | POP IX | Jump back to CommandDispatchAControl to dispatch a control. | ||
| 83C9 | POP HL | |||
| 83CA | JP CommandDispatchAControl | |||
| Prev: 82F7 | Up: Map | Next: 83CD |