oops, removed a bit too much when getting rid of the noshortcircuit code

This commit is contained in:
Irmen de Jong 2024-01-18 22:00:57 +01:00
parent 43027a4728
commit b3d98be862
2 changed files with 7 additions and 2 deletions

View File

@ -803,6 +803,7 @@ internal class AugmentableAssignmentAsmGen(private val program: PtProgram,
and $name
sta $name
$shortcutLabel:""")
return
}
"or" -> {
// short-circuit LEFT or RIGHT --> if LEFT then LEFT else RIGHT
@ -812,8 +813,14 @@ $shortcutLabel:""")
ora $name
sta $name
$shortcutLabel:""")
return
}
}
// normal evaluation
asmgen.assignExpressionToRegister(value, RegisterOrPair.A, dt in SignedDatatypes)
inplacemodificationRegisterAwithVariableWithSwappedOperands(operator, name, dt in SignedDatatypes)
asmgen.out(" sta $name")
}
private fun inplacemodificationByteVariableWithVariable(name: String, dt: DataType, operator: String, otherName: String) {

View File

@ -1,8 +1,6 @@
TODO
====
imageviewer: bmp palette is off (autumn.bmp)
...