bugfix byte array assignment

This commit is contained in:
Irmen de Jong 2020-08-24 00:48:19 +02:00
parent 2640015fb1
commit a5d97b326e

View File

@ -614,7 +614,7 @@ internal class AssignmentAsmGen(private val program: Program, private val asmgen
}
index is IdentifierReference -> {
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 -> {
asmgen.translateExpression(index)