mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +00:00
fixed invalid value push for memreads with expression
This commit is contained in:
parent
59ae3c3fcd
commit
4278f64682
@ -1202,7 +1202,7 @@ internal class ExpressionsAsmGen(private val program: Program, private val asmge
|
|||||||
else -> {
|
else -> {
|
||||||
asmgen.assignExpressionToVariable(expr.addressExpression, asmgen.asmVariableName("P8ZP_SCRATCH_W2"), DataType.UWORD, null)
|
asmgen.assignExpressionToVariable(expr.addressExpression, asmgen.asmVariableName("P8ZP_SCRATCH_W2"), DataType.UWORD, null)
|
||||||
if(pushResultOnEstack) {
|
if(pushResultOnEstack) {
|
||||||
asmgen.out(" dex | ldy #0 | lda (P8ZP_SCRATCH_W2),y | sta P8ESTACK_LO,x")
|
asmgen.out(" dex | ldy #0 | lda (P8ZP_SCRATCH_W2),y | sta P8ESTACK_LO+1,x")
|
||||||
} else {
|
} else {
|
||||||
asmgen.out(" ldy #0 | lda (P8ZP_SCRATCH_W2),y")
|
asmgen.out(" ldy #0 | lda (P8ZP_SCRATCH_W2),y")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user