mirror of
https://github.com/irmen/prog8.git
synced 2026-04-21 17:16:33 +00:00
more split array fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user