Prev: A25D Up: Map Next: A296
A277: Process Text Token
Used by the routine at DescribeCurrentRoom.
If this token is not already on screen, clears the picture lines and draws the room again.
Input
A Token ID
ProcessTextToken A277 PUSH IX Call CheckTextTokenMatch to check text token match.
A279 PUSH HL
A27A PUSH BC
A27B PUSH AF
A27C CALL CheckTextTokenMatch
A27F JR Z,ProcessTextToken_Next Go to ProcessTextToken_Next if there is no text token.
A281 CALL ClearDisplayLines Call ClearDisplayLines and then InitialiseScreenDisplay to initialise the screen display.
A284 CALL InitialiseScreenDisplay
A287 LD L,(IX+$01) Call Drawing to draw.
A28A LD H,(IX+$02)
A28D CALL Drawing
ProcessTextToken_Next A290 POP AF Restore the saved result, the saved count, the saved pointer and the saved character record from the stack.
A291 POP BC
A292 POP HL
A293 POP IX
A295 RET Return.
Prev: A25D Up: Map Next: A296