Prev: 837F Up: Map Next: 83AA
839F: Add String To Buffer
Input
DE Buffer address
HL Message string
AddStringToBuffer 839F LD A,(HL) Fetch a character from the string and store it in A.
83A0 AND %01111111 Strip off the termination bit.
83A2 LD (DE),A Write the character to the buffer.
83A3 BIT 7,(HL) Test if bit 7 of the current character is set.
83A5 INC HL Increment the message string pointer by one.
83A6 INC DE Increment the buffer pointer by one.
83A7 JR Z,AddStringToBuffer Jump to AddStringToBuffer until the termination bit is set.
83A9 RET Return.
Prev: 837F Up: Map Next: 83AA