mirror of
https://github.com/KarolS/millfork.git
synced 2024-09-10 11:54:30 +00:00
Z80: Correctly analyze flow through LDIR and LDDR
This commit is contained in:
parent
c846a19eef
commit
a8f6bc4c0e
@ -604,6 +604,7 @@ case class ZLine(opcode: ZOpcode.Value, registers: ZRegisters, parameter: Consta
|
||||
case _ => false
|
||||
}
|
||||
case EX_DE_HL => r == D || r == E || r == H || r == L
|
||||
case LDIR | LDDR => r == D || r == E || r == H || r == L || r == B || r == C
|
||||
case JP | JR | RET | RETI | RETN |
|
||||
POP |
|
||||
DISCARD_A | DISCARD_BC | DISCARD_DE | DISCARD_IX | DISCARD_IY | DISCARD_HL | DISCARD_F => false
|
||||
@ -744,6 +745,7 @@ case class ZLine(opcode: ZOpcode.Value, registers: ZRegisters, parameter: Consta
|
||||
case _ => false
|
||||
}
|
||||
case EX_DE_HL => r == D || r == E || r == H || r == L
|
||||
case LDIR | LDDR => r == D || r == E || r == H || r == L || r == B || r == C
|
||||
case JP | JR | RET | RETI | RETN |
|
||||
PUSH |
|
||||
DISCARD_A | DISCARD_BC | DISCARD_DE | DISCARD_IX | DISCARD_IY | DISCARD_HL | DISCARD_F => false
|
||||
|
Loading…
Reference in New Issue
Block a user