Prev: A679 Up: Map Next: A6BB
A684: Continue At The Next Token
Reads the next word from the text pointer at A59D and uses that address as the record pointer, then returns zero. The time-of-day entries from ContinueAtTheNextToken_SixInTheMorning return when the period matches, and otherwise skip one token from ContinueAtTheNextToken_0.
Control code 1A in the table at JumpTable_ControlCharacters.
Used by the routine at DispatchTextControlHandler.
Output
IX Address of the next word
ContinueAtTheNextToken A684 CALL FetchNextTextToken Call FetchNextTextToken to fetch the next word.
A687 PUSH DE Use that word as the record pointer.
A688 POP IX
A68A XOR A Clear A.
A68B RET Return.
Returns when the time period is 6 AM. Any other period skips a token from ContinueAtTheNextToken_0.
ContinueAtTheNextToken_SixInTheMorning A68C CALL GetTimePeriod Return when the time period is 6 AM (05).
A68F CP $05
A691 RET Z
A692 JR ContinueAtTheNextToken_0 Jump to ContinueAtTheNextToken_0 for any other period.
Returns when the time period is morning or midday. Any other period skips a token.
ContinueAtTheNextToken_Morning A694 CALL GetTimePeriod Return when the time period is morning or midday (04).
A697 CP $04
A699 RET Z
A69A JR ContinueAtTheNextToken_0 Jump to ContinueAtTheNextToken_0 for any other period.
Returns when the time period is afternoon. Any other period skips a token.
ContinueAtTheNextToken_Afternoon A69C CALL GetTimePeriod Return when the time period is afternoon (03).
A69F CP $03
A6A1 RET Z
A6A2 JR ContinueAtTheNextToken_0 Jump to ContinueAtTheNextToken_0 for any other period.
Returns when the time period is 7 PM. Any other period skips a token.
ContinueAtTheNextToken_SevenInTheEvening A6A4 CALL GetTimePeriod Return when the time period is 7 PM (02).
A6A7 CP $02
A6A9 RET Z
A6AA JR ContinueAtTheNextToken_0 Jump to ContinueAtTheNextToken_0 for any other period.
Returns when the time period is late at night. Any other period falls through into ContinueAtTheNextToken_0.
ContinueAtTheNextToken_LateAtNight A6AC CALL GetTimePeriod Return when the time period is late at night (01).
A6AF CP $01
A6B1 RET Z
Skips one text token and returns zero.
ContinueAtTheNextToken_0 A6B2 INC IX Step on one byte and call SkipTextTokenBasedOnType to skip the token.
A6B4 CALL SkipTextTokenBasedOnType
A6B7 DEC IX Step back one byte.
A6B9 XOR A Clear A.
A6BA RET Return.
Prev: A679 Up: Map Next: A6BB