mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-24 15:29:23 +00:00
8080: Fix comparisons
This commit is contained in:
parent
eb6b7d7769
commit
db1ce07ed6
@ -282,9 +282,9 @@ object Z80Comparisons {
|
|||||||
case (NotEqual, BranchIfFalse(label)) =>
|
case (NotEqual, BranchIfFalse(label)) =>
|
||||||
ZLine.jump(innerLabel, IfFlagClear(ZFlag.Z)) -> ZLine.jump(label, IfFlagSet(ZFlag.Z))
|
ZLine.jump(innerLabel, IfFlagClear(ZFlag.Z)) -> ZLine.jump(label, IfFlagSet(ZFlag.Z))
|
||||||
case (Equal, BranchIfFalse(label)) =>
|
case (Equal, BranchIfFalse(label)) =>
|
||||||
ZLine.jump(innerLabel, IfFlagSet(ZFlag.Z)) -> ZLine.jump(label, IfFlagClear(ZFlag.Z))
|
ZLine.jump(label, IfFlagClear(ZFlag.Z)) -> ZLine.jump(label, IfFlagClear(ZFlag.Z))
|
||||||
case (NotEqual, BranchIfTrue(label)) =>
|
case (NotEqual, BranchIfTrue(label)) =>
|
||||||
ZLine.jump(innerLabel, IfFlagSet(ZFlag.Z)) -> ZLine.jump(label, IfFlagClear(ZFlag.Z))
|
ZLine.jump(label, IfFlagClear(ZFlag.Z)) -> ZLine.jump(label, IfFlagClear(ZFlag.Z))
|
||||||
case (_, NoBranching) => ZLine.implied(ZOpcode.NOP) -> ZLine.implied(ZOpcode.NOP)
|
case (_, NoBranching) => ZLine.implied(ZOpcode.NOP) -> ZLine.implied(ZOpcode.NOP)
|
||||||
case _ => throw new IllegalArgumentException
|
case _ => throw new IllegalArgumentException
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user