Prev: 49316 Up: Map Next: 49412
49390: Look Up Word
Used by the routine at ParseWord.
Looks the four letters up. An unknown or leading noise word is skipped; a noise word after a real word keeps the rest of the line.
Input
HL Line pointer
Output
A Token id, or 255 if the word is unknown
HL Restored line pointer
LookupWord 49390 CALL MatchWord Call MatchWord to look the four characters up.
49393 CP 255 Jump to ParseWord if the word is unknown (255).
49395 JR Z,ParseWord
49397 OR A Jump to KeepToken to keep a real word.
49398 JR NZ,KeepToken
49400 LD A,(23435) Jump to ParseWord if a noise word arrives before any real word.
49403 OR A
49404 JR Z,ParseWord
49406 LD A,1 Write 1 to *Continuation to keep the rest of the line.
49408 LD (23429),A
49411 RET Return.
Prev: 49316 Up: Map Next: 49412