![]() |
Routines |
| Prev: 60847 | Up: Map | Next: 61024 |
|
Used by the routine at JumpTable.
Jump-table target JumpTable_TokenHelper. Returns BC=index or 0000.
|
||||
| MatchTokenInBasicList | 60910 | LD A,2 | Write 2 to *ParserState_MatchLength. | |
| 60912 | LD (23460),A | |||
| 60915 | DEC A | Write 1 to *ParserState_WordIndex. | ||
| 60916 | LD (23461),A | |||
| 60919 | LD A,(23468) | Jump to MatchTokenInBasicList_ClearDirty if *ParserState_TokenDelimiter is ENTER. | ||
| 60922 | CP 13 | |||
| 60924 | JR Z,MatchTokenInBasicList_ClearDirty | |||
| 60926 | CP 34 | Jump to MatchTokenInBasicList_ClearDirty if *ParserState_TokenDelimiter is a quote. | ||
| 60928 | JR Z,MatchTokenInBasicList_ClearDirty | |||
| 60930 | LD HL,(23463) | Stash *InputBuffer_TokenStart on the stack. | ||
| 60933 | PUSH HL | |||
| 60934 | LD HL,(23465) | Copy *InputBuffer_NextToken to *InputBuffer_TokenStart. | ||
| 60937 | LD (23463),HL | |||
| 60940 | CALL SearchVocabulary_Prepositions | Call SearchVocabulary_Prepositions. | ||
| 60943 | LD A,1 | Write 1 to *ParserState_WordIndex. | ||
| 60945 | LD (23461),A | |||
| 60948 | POP HL | Restore *InputBuffer_TokenStart from the stack. | ||
| 60949 | LD (23463),HL | |||
| 60952 | LD A,C | Jump to MatchTokenInBasicList_ClearDirty if C holds a preposition hit. | ||
| 60953 | AND A | |||
| 60954 | JR NZ,MatchTokenInBasicList_ClearDirty | |||
| 60956 | LD A,1 | Set *InputLineState_Dirty. | ||
| 60958 | LD (23549),A | |||
| 60961 | JR MatchTokenInBasicList_Scan | Jump to MatchTokenInBasicList_Scan. | ||
|
Clear the dirty flag and scan.
|
||||
| MatchTokenInBasicList_ClearDirty | 60963 | SUB A | Write 0 to *InputLineState_Dirty. | |
| 60964 | LD (23549),A | |||
| 60967 | JR BasicHelper_Scan | Jump to BasicHelper_Scan. | ||
|
Compare the next BASIC-list word.
|
||||
| MatchTokenInBasicList_Scan | 60969 | LD HL,(23639) | Point HL at the next BASIC-list word. | |
| 60972 | LD DE,8 | |||
| 60975 | ADD HL,DE | |||
| 60976 | LD DE,(23463) | Copy *InputBuffer_TokenStart to DE. | ||
| 60980 | PUSH HL | Stash HL on the stack. | ||
| 60981 | CALL CompareTokenToWord | Call CompareTokenToWord. | ||
| 60984 | POP HL | Restore HL from the stack. | ||
| 60985 | JR C,MatchTokenInBasicList_AdvanceEntry | Jump to MatchTokenInBasicList_AdvanceEntry if it missed. | ||
| MatchTokenInBasicList_NextWord | 60987 | INC HL | Skip to the next space-separated word in this entry. | |
| 60988 | LD A,(HL) | |||
| 60989 | CP 34 | |||
| 60991 | JR Z,MatchTokenInBasicList_AdvanceEntry | |||
| 60993 | CP 32 | |||
| 60995 | JR NZ,MatchTokenInBasicList_NextWord | |||
| 60997 | INC HL | Advance HL. | ||
| 60998 | LD DE,(23465) | Copy *InputBuffer_NextToken to DE. | ||
| 61002 | CALL CompareTokenToWord | Call CompareTokenToWord. | ||
| 61005 | JR NC,MatchTokenInBasicList_Hit | Jump to MatchTokenInBasicList_Hit if it matched. | ||
|
This entry point is used by the routine at BasicHelper.
|
||||
| MatchTokenInBasicList_AdvanceEntry | 61007 | CALL StepBasicListEntry | Call StepBasicListEntry. | |
| 61010 | CP B | Jump to MatchTokenInBasicList_Scan if there are more entries. | ||
| 61011 | JR C,MatchTokenInBasicList_Scan | |||
|
This entry point is used by the routines at BasicHelper and SeedPrimaryWorkBuffer.
|
||||
| MatchTokenInBasicList_Miss | 61013 | LD BC,0 | BC=0000 on a miss. | |
| 61016 | RET | Return. | ||
|
This entry point is used by the routines at BasicHelper and SeedPrimaryWorkBuffer.
A BASIC-list word matched.
|
||||
| MatchTokenInBasicList_Hit | 61017 | LD A,(23461) | Copy *ParserState_WordIndex into BC. | |
| 61020 | LD C,A | |||
| 61021 | LD B,0 | |||
| 61023 | RET | Return. | ||
| Prev: 60847 | Up: Map | Next: 61024 |