more split array fixes

This commit is contained in:
Irmen de Jong
2024-12-15 21:27:19 +01:00
parent 1e85f7812f
commit 8644a4ae91
10 changed files with 68 additions and 29 deletions
+1 -4
View File
@@ -136,10 +136,7 @@ class SymbolTableMaker(private val program: PtProgram, private val options: Comp
is PtAddressOf -> {
if(it.isFromArrayElement)
TODO("address-of array element $it in initial array value")
if(it.identifier.type.isSplitWordArray)
StArrayElement(null, it.identifier.name + "_lsb", null) // the _lsb split array comes first in memory
else
StArrayElement(null, it.identifier.name, null)
StArrayElement(null, it.identifier.name, null)
}
is PtNumber -> StArrayElement(it.number, null, null)
is PtBool -> StArrayElement(null, null, it.value)