Prev: 29741 Up: Map Next: 29862
29843: Get Common Word
Used by the routine at PrintMsg.
Input
A Letter reference
Output
DE Common word address
GetCommonWord 29843 SUB 96 Subtract $60 from the letter byte - anything higher than $60 signifies the letter is a "common word".
29845 LD E,A Create offset for the word look-up.
29846 LD D,0
29848 LD HL,44349 HL=CommonWords
29851 ADD HL,DE Add to base address at CommonWords so that pointer is at the referenced word.
29852 ADD HL,DE
29853 LD E,(HL) E=LSB of word address.
29854 INC HL A=MSB of word address.
29855 LD A,(HL)
29856 ADD A,80 Add $50 to A and store the result in D.
29858 LD D,A
29859 JP PrintMsg_Token Jump to PrintMsg_Token.
Prev: 29741 Up: Map Next: 29862