mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
fix output of word arrays containing addressofs
This commit is contained in:
parent
f08906dba1
commit
b54a9b9831
@ -370,9 +370,11 @@ internal class AsmGen2(val program: Program,
|
||||
"$"+number.toString(16).padStart(2, '0')
|
||||
}
|
||||
decl.datatype== DataType.ARRAY_UW -> array.map {
|
||||
val number = (it as NumericLiteralValue).number.toInt()
|
||||
// TODO word array with address-references
|
||||
"$"+number.toString(16).padStart(4, '0')
|
||||
if(it is NumericLiteralValue) {
|
||||
"$" + it.number.toInt().toString(16).padStart(4, '0')
|
||||
} else {
|
||||
(it as AddressOf).identifier.nameInSource.joinToString(".")
|
||||
}
|
||||
}
|
||||
else -> throw AssemblyError("invalid arraysize type")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user