![]() |
Routines |
| Prev: 7488 | Up: Map | Next: 74A6 |
|
Used by the routine at PrintMessage.
Looks up one of the common words used by the message printer.
|
||||||||||||
| GetCommonWord | 7493 | SUB $60 | Treat a letter at 60 or above as a common word. | |||||||||
| 7495 | LD E,A | Create offset for the dictionary look-up. | ||||||||||
| 7496 | LD D,$00 | |||||||||||
| 7498 | LD HL,$AD3D | Point HL at common Words. | ||||||||||
| 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) | Read the low byte of CommonWords. | ||||||||||
| 749E | INC HL | Step to the next letter. | ||||||||||
| 749F | LD A,(HL) | Read the next byte of the text. | ||||||||||
| 74A0 | ADD A,$50 | Add 50 to A and store the result in D. | ||||||||||
| 74A2 | LD D,A | Keep the class token plus 50. | ||||||||||
| 74A3 | JP PrintMessage_Token | Jump back to PrintMessage_Token to print a dictionary token. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 7488 | Up: Map | Next: 74A6 |