![]()  | 
Routines | 
| Prev: A83A | Up: Map | Next: A851 | 
  | 
||||||||||
| GetCommonWord | A840 | SUB $60 | Subtract 60 from the letter byte - anything higher than 60 signifies the letter is a "common word". | |||||||
| A842 | LD E,A | Load the letter reference into DE. | ||||||||
| A843 | LD D,$00 | |||||||||
| A845 | LD HL,$67B7 | HL=Table_CommonWords+(DE*02). | ||||||||
| A848 | ADD HL,DE | |||||||||
| A849 | ADD HL,DE | |||||||||
| A84A | LD E,(HL) | Fetch the LSB of the word reference and store it in E. | ||||||||
| A84B | INC HL | Fetch the MSB of the word reference, add 50 and store it in D. | ||||||||
| A84C | LD A,(HL) | |||||||||
| A84D | ADD A,$50 | |||||||||
| A84F | LD D,A | |||||||||
| A850 | RET | Return. | ||||||||
| Prev: A83A | Up: Map | Next: A851 |