![]() |
Routines |
| Prev: EDEE | Up: Map | Next: EE9C |
|
Used by the routine at JumpTable.
Jump-table target JumpTable_BasicHelper.
|
||||
| BasicHelper | EE60 | LD HL,($5BA0) | Copy *ParserState to *NSPPC. | |
| EE63 | LD ($5C57),HL | |||
| EE66 | LD A,($5BFD) | Jump to MatchTokenInBasicList_AdvanceEntry if *InputLineState_Dirty is set. | ||
| EE69 | AND A | |||
| EE6A | JR NZ,MatchTokenInBasicList_AdvanceEntry | |||
| EE6C | JR BasicHelper_AdvanceEntry | Jump to BasicHelper_AdvanceEntry. | ||
|
This entry point is used by the routine at MatchTokenInBasicList.
Compare the next BASIC-list word.
|
||||
| BasicHelper_Scan | EE6E | LD HL,($5C57) | Point HL at the next BASIC-list word. | |
| EE71 | LD DE,$0008 | |||
| EE74 | ADD HL,DE | |||
| EE75 | PUSH HL | Stash HL on the stack. | ||
| EE76 | LD DE,($5BA7) | Copy *InputBuffer_TokenStart to DE. | ||
| EE7A | CALL CompareTokenToWord | Call CompareTokenToWord. | ||
| EE7D | POP HL | Restore HL from the stack. | ||
| EE7E | JR NC,MatchTokenInBasicList_Hit | Jump to MatchTokenInBasicList_Hit if it matched. | ||
| BasicHelper_NextWord | EE80 | INC HL | Skip to the next space-separated word in this entry. | |
| EE81 | LD A,(HL) | |||
| EE82 | CP $22 | |||
| EE84 | JR Z,BasicHelper_AdvanceEntry | |||
| EE86 | CP $20 | |||
| EE88 | JR NZ,BasicHelper_NextWord | |||
| EE8A | INC HL | Advance HL. | ||
| EE8B | LD DE,($5BA7) | Copy *InputBuffer_TokenStart to DE. | ||
| EE8F | CALL CompareTokenToWord | Call CompareTokenToWord. | ||
| EE92 | JR NC,MatchTokenInBasicList_Hit | Jump to MatchTokenInBasicList_Hit if it matched. | ||
| BasicHelper_AdvanceEntry | EE94 | CALL StepBasicListEntry | Call StepBasicListEntry. | |
| EE97 | CP B | Jump to BasicHelper_Scan if there are more entries. | ||
| EE98 | JR C,BasicHelper_Scan | |||
| EE9A | JR MatchTokenInBasicList_Miss | Jump to MatchTokenInBasicList_Miss. | ||
| Prev: EDEE | Up: Map | Next: EE9C |