2017-10-21 23:40:19 +00:00
|
|
|
mcopy symbol.macros
|
|
|
|
****************************************************************
|
|
|
|
*
|
|
|
|
* ClearTable - set the symbol table to zeros
|
|
|
|
*
|
|
|
|
* Inputs:
|
|
|
|
* table - symbol table address
|
|
|
|
*
|
|
|
|
****************************************************************
|
|
|
|
*
|
2017-06-19 03:07:32 +00:00
|
|
|
ClearTable private cc
|
2022-12-14 03:05:55 +00:00
|
|
|
hashSize2 equ 1753 # hash buckets * 2 - 1
|
|
|
|
sizeofBuckets equ 4*(hashSize2+1) sizeof(symbolTable.buckets)
|
2017-10-21 23:40:19 +00:00
|
|
|
|
|
|
|
subroutine (4:table),0
|
|
|
|
|
2022-12-14 03:05:55 +00:00
|
|
|
ldy #sizeofBuckets-2
|
2017-10-21 23:40:19 +00:00
|
|
|
lda #0
|
|
|
|
lb1 sta [table],Y
|
|
|
|
dey
|
|
|
|
dey
|
|
|
|
bpl lb1
|
|
|
|
|
|
|
|
return
|
|
|
|
end
|
2022-12-03 03:55:57 +00:00
|
|
|
|
|
|
|
****************************************************************
|
|
|
|
*
|
|
|
|
* SaveBF - save a value to a bit-field
|
|
|
|
*
|
|
|
|
* Inputs:
|
|
|
|
* addr - address to copy to
|
|
|
|
* bitdisp - displacement past the address
|
|
|
|
* bitsize - number of bits
|
|
|
|
* val - value to copy
|
|
|
|
*
|
|
|
|
****************************************************************
|
|
|
|
*
|
|
|
|
SaveBF private cc
|
|
|
|
jml ~SaveBF call ~SaveBF in ORCALib
|
|
|
|
end
|