![]() |
Routines |
| Prev: A83A | Up: Map | Next: A851 |
|
Used by the routines at GetCommonWordAndProcess and ProcessTextTokenStream.
Turns a vocabulary code into the dictionary address of that word.
|
||||||||||
| GetCommonWord | A840 | SUB $60 | Use the common words at Table_CommonWords. | |||||||
| A842 | LD E,A | |||||||||
| A843 | LD D,$00 | |||||||||
| A845 | LD HL,$67B7 | |||||||||
| A848 | ADD HL,DE | Point at word DE of the common-word table at Table_CommonWords. | ||||||||
| A849 | ADD HL,DE | |||||||||
| A84A | LD E,(HL) | Fetch the LSB of the dictionary address and store it in E. | ||||||||
| A84B | INC HL | Fetch the MSB of the dictionary address, add 50 and store it in D. | ||||||||
| A84C | LD A,(HL) | |||||||||
| A84D | ADD A,$50 | |||||||||
| A84F | LD D,A | |||||||||
| A850 | RET | Return. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: A83A | Up: Map | Next: A851 |