Prev: 53368 Up: Map Next: 53468
53456: Write Token To Buffer
Used by the routines at ProcessLocationToken and DescribeCurrentRoom.
Writes the current text token into the message pointer at 26846, with the top bit set so the printer treats it as a token.
Input
HL Pointer to output buffer
DE Token value (word)
WriteTokenToBuffer 53456 PUSH DE Use the text pointer (26846).
53457 LD DE,26846
53460 EX DE,HL
53461 SET 7,D
53463 LD (HL),D
53464 INC HL Advance through the text.
53465 LD (HL),E Store that byte at the pointer.
53466 POP DE Restore DE from the stack.
53467 RET Return.
Prev: 53368 Up: Map Next: 53468