fix pointer-to-pointer assignment

This commit is contained in:
Irmen de Jong 2021-01-23 18:50:46 +01:00
parent 4a81406262
commit 195cd7597d

View File

@ -1878,8 +1878,7 @@ internal class AssignmentAsmGen(private val program: Program, private val asmgen
asmgen.out(" sta ${target.asmVarname}")
}
TargetStorageKind.MEMORY -> {
val sourceName = asmgen.asmVariableName(identifier)
asmgen.out(" lda $sourceName")
asmgen.loadByteFromPointerIntoA(identifier)
storeRegisterAInMemoryAddress(target.memory!!)
}
TargetStorageKind.ARRAY -> {