1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-25 19:29:49 +00:00

Fixed PHD/PHB-related optimizations

This commit is contained in:
Karol Stasiak 2018-03-03 15:06:49 +01:00
parent 2024c33ef2
commit ccb6e35a29

View File

@ -250,8 +250,8 @@ object AlwaysGoodOptimizations {
operationPairBuilder3(PHX, Anything, PLX, Not(ChangesX) & Not(ConcernsStack)),
operationPairBuilder3(PHY, Anything, PLY, Not(ChangesY) & Not(ConcernsStack)),
operationPairBuilder3(PHZ, Anything, PLZ, Not(ChangesIZ) & Not(ConcernsStack)),
operationPairBuilder3(PHD, Anything, PHD, Not(ChangesDirectPageRegister)),
operationPairBuilder3(PHB, Anything, PHB, Not(ChangesDataBankRegister)),
operationPairBuilder3(PHD, Anything, PLD, Not(ChangesDirectPageRegister)),
operationPairBuilder3(PHB, Anything, PLB, Not(ChangesDataBankRegister)),
operationPairBuilder3(INX, DoesntMatterWhatItDoesWith(State.N, State.Z), DEX, Not(ConcernsX) & Not(ReadsNOrZ)),
operationPairBuilder3(DEX, DoesntMatterWhatItDoesWith(State.N, State.Z), INX, Not(ConcernsX) & Not(ReadsNOrZ)),
operationPairBuilder3(INY, DoesntMatterWhatItDoesWith(State.N, State.Z), DEY, Not(ConcernsX) & Not(ReadsNOrZ)),