Prev: EE9C Up: Map Next: EEE7
EEB9: Seed Primary Work Buffer
Used by the routine at JumpTable.
Jump-table target JumpTable_SeedPrimaryBuffer (USR JumpTable_SeedPrimaryBuffer): point ParserState_WorkPointer at PrimaryWorkBuffer and scan up to 2D entries. BASIC uses this for INVENTORY / LOOK object lists (see JumpTable).
SeedPrimaryWorkBuffer EEB9 LD HL,$FA00 Point ParserState_WorkPointer at PrimaryWorkBuffer with 2D entries.
EEBC LD ($5BA2),HL
EEBF LD A,$2D
This entry point is used by the routine at SeedSecondaryWorkBuffer.
SeedWorkBuffer_Common EEC1 LD ($5BFB),A Remember the entry limit and clear the index.
EEC4 SUB A
EEC5 LD ($5BA5),A
This entry point is used by the routine at JumpTable.
Jump-table target JumpTable_StepWorkBuffer: step ParserState_WorkPointer and compare *HL to InputLineState_Dirty.
StepWorkBuffer EEC8 LD A,($5BA5) Step the work-buffer pointer and compare to InputLineState_Dirty.
EECB INC A
EECC LD ($5BA5),A
EECF LD C,A
EED0 LD HL,($5BA2)
EED3 INC HL
EED4 LD ($5BA2),HL
EED7 LD A,($5BFD) Jump to MatchTokenInBasicList_Hit if this entry matches.
EEDA CP (HL)
EEDB JP Z,MatchTokenInBasicList_Hit
EEDE LD A,($5BFB) Keep scanning, or fall through to a miss.
EEE1 CP C
EEE2 JR NZ,StepWorkBuffer
EEE4 JP MatchTokenInBasicList_Miss
Prev: EE9C Up: Map Next: EEE7