Routines |
Prev: 742D | Up: Map | Next: 74A6 |
Used by the routine at PrintMsg.
|
||||||||||||
GetCommonWord | 7493 | SUB $60 | Subtract $60 from the letter byte - anything higher than $60 signifies the letter is a "common word". | |||||||||
7495 | LD E,A | Create offset for the word look-up. | ||||||||||
7496 | LD D,$00 | |||||||||||
7498 | LD HL,$AD3D | HL=CommonWords | ||||||||||
749B | ADD HL,DE | Add to base address at CommonWords so that pointer is at the referenced word. | ||||||||||
749C | ADD HL,DE | |||||||||||
749D | LD E,(HL) | E=LSB of word address. | ||||||||||
749E | INC HL | A=MSB of word address. | ||||||||||
749F | LD A,(HL) | |||||||||||
74A0 | ADD A,$50 | Add $50 to A and store the result in D. | ||||||||||
74A2 | LD D,A | |||||||||||
74A3 | JP PrintMsg_Token | Jump to PrintMsg_Token. |
Prev: 742D | Up: Map | Next: 74A6 |