Prev: EDEE Up: Map Next: EE9C
EE60: BASIC Helper
Used by the routine at JumpTable.
Jump-table target JumpTable_BasicHelper: reload NSPPC from ParserState and continue the BASIC-list match.
BasicHelper EE60 LD HL,($5BA0) Reload NSPPC from ParserState; jump to MatchTokenInBasicList_AdvanceEntry if dirty.
EE63 LD ($5C57),HL
EE66 LD A,($5BFD)
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.
BasicHelper_Scan EE6E LD HL,($5C57) Compare the next BASIC-list word to the token at InputBuffer_TokenStart.
EE71 LD DE,$0008
EE74 ADD HL,DE
EE75 PUSH HL
EE76 LD DE,($5BA7)
EE7A CALL CompareTokenToWord
EE7D POP HL
EE7E JR NC,MatchTokenInBasicList_Hit Jump to MatchTokenInBasicList_Hit if 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 Compare that word to the token at InputBuffer_TokenStart.
EE8B LD DE,($5BA7)
EE8F CALL CompareTokenToWord
EE92 JR NC,MatchTokenInBasicList_Hit
BasicHelper_AdvanceEntry EE94 CALL StepBasicListEntry Step to the next entry or report a miss.
EE97 CP B
EE98 JR C,BasicHelper_Scan
EE9A JR MatchTokenInBasicList_Miss
Prev: EDEE Up: Map Next: EE9C