mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-22 08:32:29 +00:00
6502: Don't optimize away things like a[f()]^=0
This commit is contained in:
parent
a2eb6fe353
commit
87c5d698bc
@ -1210,7 +1210,7 @@ object BuiltIns {
|
||||
| (ORA, Some(NumericConstant(0, _)))
|
||||
| (AND, Some(NumericConstant(0xff, _)))
|
||||
| (AND, Some(NumericConstant(-1, _))) =>
|
||||
Nil
|
||||
MosExpressionCompiler.compile(ctx, v, None, NoBranching)
|
||||
case _ =>
|
||||
if (simplicity(env, v) > simplicity(env, param)) {
|
||||
val loadRhs = MosExpressionCompiler.compile(ctx, param, Some(b -> RegisterVariable(MosRegister.A, b)), NoBranching)
|
||||
|
Loading…
x
Reference in New Issue
Block a user