Prev: C0A4 Up: Map Next: C104
C0EE: 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 FF if the word is unknown
HL Restored line pointer
LookupWord C0EE CALL MatchWord Call MatchWord to look the four characters up.
C0F1 CP $FF Jump to ParseWord if the word is unknown (FF).
C0F3 JR Z,ParseWord
C0F5 OR A Jump to KeepToken to keep a real word.
C0F6 JR NZ,KeepToken
C0F8 LD A,($5B8B) Jump to ParseWord if a noise word arrives before any real word.
C0FB OR A
C0FC JR Z,ParseWord
C0FE LD A,$01 Write 01 to *Continuation to keep the rest of the line.
C100 LD ($5B85),A
C103 RET Return.
Prev: C0A4 Up: Map Next: C104