mirror of
https://github.com/irmen/prog8.git
synced 2024-07-29 10:29:37 +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 -> {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user