Prev: D078 Up: Map Next: D0DC
D0D0: Write Token To Buffer
Used by the routines at ProcessLocationToken and ProcessLocationTokenDisplay.
Input
HL Pointer to output buffer
DE Token value (word)
WriteTokenToBuffer D0D0 PUSH DE Stash DE on the stack.
D0D1 LD DE,$68DE DE=68DE.
D0D4 EX DE,HL Exchange the DE and HL registers.
D0D5 SET 7,D Set bit 7 of D.
D0D7 LD (HL),D Write D to *HL.
D0D8 INC HL Increment HL by one.
D0D9 LD (HL),E Write E to *HL.
D0DA POP DE Restore DE from the stack.
D0DB RET Return.
Prev: D078 Up: Map Next: D0DC