mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-22 08:32:29 +00:00
Z80: Analyze flow through RES and SET correctly
This commit is contained in:
parent
86ce1d42f3
commit
f045f7f4c2
@ -726,9 +726,9 @@ case class ZLine(opcode: ZOpcode.Value, registers: ZRegisters, parameter: Consta
|
||||
case _ => false
|
||||
}
|
||||
case op if ZOpcodeClasses.RES_or_SET(op) => registers match {
|
||||
case OneRegister(MEM_HL) => r == H || r == L
|
||||
case OneRegister(MEM_IX_D) => r == IXH || r == IXL
|
||||
case OneRegister(MEM_IY_D) => r == IYH || r == IYL
|
||||
case OneRegister(MEM_HL) => false
|
||||
case OneRegister(MEM_IX_D) => false
|
||||
case OneRegister(MEM_IY_D) => false
|
||||
case OneRegister(s) => r == s
|
||||
case OneRegisterOffset(s, _) => r == s
|
||||
case _ => false
|
||||
|
Loading…
x
Reference in New Issue
Block a user