Prev: 43100 Up: Map Next: 43143
43136: Extract Token From Text
Reads the next dictionary token from the message and keeps its low digit as the page.
Input
HL Pointer to text data
Output
DE Token value (word)
HL Updated pointer
Read the token value from the text data.
ExtractTokenFromText 43136 LD E,(HL) Read this message byte and the one after it.
43137 INC HL
43138 LD A,(HL)
43139 INC HL
43140 AND %00001111 Keep only bits 0-3 (extract the low nibble from the second byte).
43142 LD D,A Keep the low digit as the dictionary page.
View the equivalent code in;
Prev: 43100 Up: Map Next: 43143