Prev: 61084 Up: Map Next: 61159
61113: Seed Primary Work Buffer
Used by the routine at JumpTable.
Jump-table target JumpTable_SeedPrimaryBuffer (USR JumpTable_SeedPrimaryBuffer). BASIC uses this for INVENTORY / LOOK object lists (see JumpTable).
SeedPrimaryWorkBuffer 61113 LD HL,64000 Point ParserState_WorkPointer at PrimaryWorkBuffer with 45 entries.
61116 LD (23458),HL
61119 LD A,45
This entry point is used by the routine at SeedSecondaryWorkBuffer.
Remember the entry limit and clear the word index.
SeedWorkBuffer_Common 61121 LD (23547),A Write A to *InputLineState_Length.
61124 SUB A Write 0 to *ParserState_WordIndex.
61125 LD (23461),A
This entry point is used by the routine at JumpTable.
Step to the next work-buffer entry.
StepWorkBuffer 61128 LD A,(23461) Increment *ParserState_WordIndex into C.
61131 INC A
61132 LD (23461),A
61135 LD C,A
61136 LD HL,(23458) Step *ParserState_WorkPointer.
61139 INC HL
61140 LD (23458),HL
61143 LD A,(23549) Jump to MatchTokenInBasicList_Hit if this entry matches.
61146 CP (HL)
61147 JP Z,MatchTokenInBasicList_Hit
61150 LD A,(23547) Jump to StepWorkBuffer if there are more entries.
61153 CP C
61154 JR NZ,StepWorkBuffer
61156 JP MatchTokenInBasicList_Miss Jump to MatchTokenInBasicList_Miss.
Prev: 61084 Up: Map Next: 61159