Prev: 60910 Up: Map Next: 61084
61024: BASIC Helper
Used by the routine at JumpTable.
Jump-table target JumpTable_BasicHelper.
BasicHelper 61024 LD HL,(23456) Copy *ParserState to *NSPPC.
61027 LD (23639),HL
61030 LD A,(23549) Jump to MatchTokenInBasicList_AdvanceEntry if *InputLineState_Dirty is set.
61033 AND A
61034 JR NZ,MatchTokenInBasicList_AdvanceEntry
61036 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 61038 LD HL,(23639) Point HL at the next BASIC-list word.
61041 LD DE,8
61044 ADD HL,DE
61045 PUSH HL Stash HL on the stack.
61046 LD DE,(23463) Copy *InputBuffer_TokenStart to DE.
61050 CALL CompareTokenToWord Call CompareTokenToWord.
61053 POP HL Restore HL from the stack.
61054 JR NC,MatchTokenInBasicList_Hit Jump to MatchTokenInBasicList_Hit if it matched.
BasicHelper_NextWord 61056 INC HL Skip to the next space-separated word in this entry.
61057 LD A,(HL)
61058 CP 34
61060 JR Z,BasicHelper_AdvanceEntry
61062 CP 32
61064 JR NZ,BasicHelper_NextWord
61066 INC HL Advance HL.
61067 LD DE,(23463) Copy *InputBuffer_TokenStart to DE.
61071 CALL CompareTokenToWord Call CompareTokenToWord.
61074 JR NC,MatchTokenInBasicList_Hit Jump to MatchTokenInBasicList_Hit if it matched.
BasicHelper_AdvanceEntry 61076 CALL StepBasicListEntry Call StepBasicListEntry.
61079 CP B Jump to BasicHelper_Scan if there are more entries.
61080 JR C,BasicHelper_Scan
61082 JR MatchTokenInBasicList_Miss Jump to MatchTokenInBasicList_Miss.
Prev: 60910 Up: Map Next: 61084