mirror of
https://github.com/irmen/prog8.git
synced 2024-10-19 07:23:56 +00:00
bugfix byte array assignment
This commit is contained in:
parent
2640015fb1
commit
a5d97b326e
@ -614,7 +614,7 @@ internal class AssignmentAsmGen(private val program: Program, private val asmgen
|
|||||||
}
|
}
|
||||||
index is IdentifierReference -> {
|
index is IdentifierReference -> {
|
||||||
asmgen.loadScaledArrayIndexIntoRegister(target.array, DataType.UBYTE, CpuRegister.Y)
|
asmgen.loadScaledArrayIndexIntoRegister(target.array, DataType.UBYTE, CpuRegister.Y)
|
||||||
asmgen.out(" lda #<${byte.toHex()} | sta ${target.asmVarname},y | lda #>${byte.toHex()} | sta ${target.asmVarname}+1,y")
|
asmgen.out(" lda #<${byte.toHex()} | sta ${target.asmVarname},y")
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
asmgen.translateExpression(index)
|
asmgen.translateExpression(index)
|
||||||
|
Loading…
Reference in New Issue
Block a user