![]() |
Routines |
| Prev: C3C0 | Up: Map | Next: C3FA |
|
Used by the routine at GameLoop.
Check each typed token against the noun list and resolve its phrase.
|
||||
| Parser_MatchVocabulary | C3DC | LD HL,$BB36 | Start at the token buffer. | |
| C3DF | LD B,$0A | |||
| Parser_MatchVocabulary_Loop | C3E1 | LD A,(HL) | Return if the end-of-list marker was pressed. | |
| C3E2 | CP $FF | |||
| C3E4 | RET Z | |||
| C3E5 | EXX | Jump to Parser_MatchVocabulary_Next if the search did not find a match. | ||
| C3E6 | LD HL,($BAEE) | |||
| C3E9 | LD BC,($BAFA) | |||
| C3ED | CPIR | |||
| C3EF | JR NZ,Parser_MatchVocabulary_Next | |||
| C3F1 | CALL Parser_ResolvePhrase | Call Parser_ResolvePhrase to resolve the phrase and complain if it is not understood, and return if the comparison failed. | ||
| C3F4 | RET C | |||
| Parser_MatchVocabulary_Next | C3F5 | EXX | Repeat from Parser_MatchVocabulary_Loop for the remaining tokens. | |
| C3F6 | INC HL | |||
| C3F7 | DJNZ Parser_MatchVocabulary_Loop | |||
| C3F9 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: C3C0 | Up: Map | Next: C3FA |