mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-12 19:29:51 +00:00
Fix putword optimization
This commit is contained in:
parent
e9e52d11a7
commit
260cfd50c4
@ -53,6 +53,9 @@ object LocalVariableReadOptimization extends AssemblyOptimization[AssemblyLine]
|
|||||||
|
|
||||||
def optimizeImpl(code: List[(AssemblyLine, CpuStatus)], variables: Set[String], map: Map[String, Int]): (Boolean, List[AssemblyLine]) = code match {
|
def optimizeImpl(code: List[(AssemblyLine, CpuStatus)], variables: Set[String], map: Map[String, Int]): (Boolean, List[AssemblyLine]) = code match {
|
||||||
|
|
||||||
|
case (x@AssemblyLine0(JSR, Absolute, MemoryAddressConstant(th)), _) :: xs if th.name.startsWith(".") =>
|
||||||
|
x :: optimizeImpl(xs, variables, Map())
|
||||||
|
|
||||||
case (AssemblyLine(op@(
|
case (AssemblyLine(op@(
|
||||||
LDA | LDX | LDY | LDZ |
|
LDA | LDX | LDY | LDZ |
|
||||||
ADC | ORA | EOR | AND | SBC |
|
ADC | ORA | EOR | AND | SBC |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user