Prev: 60810 Up: Map Next: 60910
60847: Advance Input Pointer
Used by the routines at JumpTable and ScanInputSpaces.
Jump-table target JumpTable_AdvanceInputPointer.
AdvanceInputPointer 60847 LD HL,(23463) Fetch *InputBuffer_TokenStart.
60850 LD A,(HL)
60851 CP 13 Return if this token is ENTER.
60853 RET Z
Move on to the next token.
60854 LD HL,(23465) Copy *InputBuffer_NextToken to *InputBuffer_TokenStart.
60857 LD (23463),HL
60860 LD A,(HL) Write *HL to *ParserState_TokenChar.
60861 LD (23467),A
60864 CP 13 Return if that token is ENTER.
60866 RET Z
Walk to the delimiter that ends this token.
AdvanceInputPointer_Scan 60867 INC HL Jump to AdvanceInputPointer_Store if this character is ENTER.
60868 LD A,(HL)
60869 CP 13
60871 JR Z,AdvanceInputPointer_Store
60873 CP 34 Jump to AdvanceInputPointer_Store on a quote.
60875 JR Z,AdvanceInputPointer_Store
60877 CP 32 Keep scanning until a space.
60879 JR NZ,AdvanceInputPointer_Scan
AdvanceInputPointer_SkipSpaces 60881 INC HL Skip any run of spaces.
60882 LD A,(HL)
60883 CP 32
60885 JR Z,AdvanceInputPointer_SkipSpaces
AdvanceInputPointer_Store 60887 LD (23468),A Write the delimiter to *ParserState_TokenDelimiter.
60890 LD (23465),HL Write HL to *InputBuffer_NextToken.
60893 LD A,3 Write 3 to *ParserState_MatchLength.
60895 LD (23460),A
Skip a leading "THE".
60898 LD HL,(23463) Copy *InputBuffer_TokenStart to HL.
60901 LD DE,64420 DE=Token_THE.
60904 CALL CompareTokenToWord Call CompareTokenToWord.
60907 JR NC,AdvanceInputPointer Jump to AdvanceInputPointer if "THE" was skipped.
60909 RET Return.
Prev: 60810 Up: Map Next: 60910