Prev: 30820 Up: Map Next: 30860
30835: Inglish: Read The Next Grammar Byte
Reads the next grammar byte from the token pointer, splits it into nibbles, and stores the token pointer, the unknown word and the class.
Inglish_ReadTheNextGrammarByte 30835 LD HL,(46812) Read *46812.
30838 LD (46810),HL Update *46810.
30841 LD A,D Take the class into A.
30842 LD (46814),A Update *46814.
30845 LD A,(HL) Read the token.
30846 AND 15 Keep the low nibble of the token.
30848 LD B,A
30849 LD A,(HL) Read the token.
30850 AND 240 Keep the high nibble of the token.
30852 LD D,A
30853 INC HL Step to the next byte of the token pointer.
30854 LD C,(HL) Read a byte from the pointer into C.
30855 INC HL Step to the next byte of the token pointer.
30856 LD (46812),HL Update *46812.
30859 RET Return.
View the equivalent code in;
Prev: 30820 Up: Map Next: 30860