mirror of
https://github.com/irmen/prog8.git
synced 2025-01-14 01:29:55 +00:00
fix pointer-to-pointer assignment
This commit is contained in:
parent
4a81406262
commit
195cd7597d
@ -1878,8 +1878,7 @@ internal class AssignmentAsmGen(private val program: Program, private val asmgen
|
|||||||
asmgen.out(" sta ${target.asmVarname}")
|
asmgen.out(" sta ${target.asmVarname}")
|
||||||
}
|
}
|
||||||
TargetStorageKind.MEMORY -> {
|
TargetStorageKind.MEMORY -> {
|
||||||
val sourceName = asmgen.asmVariableName(identifier)
|
asmgen.loadByteFromPointerIntoA(identifier)
|
||||||
asmgen.out(" lda $sourceName")
|
|
||||||
storeRegisterAInMemoryAddress(target.memory!!)
|
storeRegisterAInMemoryAddress(target.memory!!)
|
||||||
}
|
}
|
||||||
TargetStorageKind.ARRAY -> {
|
TargetStorageKind.ARRAY -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user