![]() |
Routines |
| Prev: 50112 | Up: Map | Next: 50170 |
|
Used by the routine at GameLoop.
Check each typed token against the noun list and resolve its phrase.
|
||||
| Parser_MatchVocabulary | 50140 | LD HL,47926 | Start at the token buffer. | |
| 50143 | LD B,10 | |||
| Parser_MatchVocabulary_Loop | 50145 | LD A,(HL) | Return if the end-of-list marker was pressed. | |
| 50146 | CP 255 | |||
| 50148 | RET Z | |||
| 50149 | EXX | Jump to Parser_MatchVocabulary_Next if the search did not find a match. | ||
| 50150 | LD HL,(47854) | |||
| 50153 | LD BC,(47866) | |||
| 50157 | CPIR | |||
| 50159 | JR NZ,Parser_MatchVocabulary_Next | |||
| 50161 | CALL Parser_ResolvePhrase | Call Parser_ResolvePhrase to resolve the phrase and complain if it is not understood, and return if the comparison failed. | ||
| 50164 | RET C | |||
| Parser_MatchVocabulary_Next | 50165 | EXX | Repeat from Parser_MatchVocabulary_Loop for the remaining tokens. | |
| 50166 | INC HL | |||
| 50167 | DJNZ Parser_MatchVocabulary_Loop | |||
| 50169 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 50112 | Up: Map | Next: 50170 |