Official Name: MoveToNextSym
BCALL Address: 4A53
Finds the next entry in the symbol table.
- HL: points to type byte of current symbol table entry
- HL: points to type byte of next symbol table entry
- AF, DE
This routine can be used to traverse both the program/list and the regular symbol tables. It does not do bound checking, so you must check if HL equals the value at pTemp yourself to see if you've reached the end of the table. The example below browses the entire symbol table.
ld hl, symTable SymLoop: ;Do something with symbol table entry B_CALL MoveToNextSym ld de,(pTemp) B_CALL CpHLDE jr nz,SymLoop