On 04.06.20 14:20, Sergey Belyashov wrote:
Z80 has the same flags as GBZ80, but also it has p/v (parity or signed
overflow) and S (sign) flags. And order is different:
GBZ80: Z N H C 0 0 0 0
Z80: S Z 5 H 3 P/V N C

Since there are plans to move rules to "peeph.rul", I decided to handle flags S, P and V on ZGB80 but always return true for them.
I guess that’s the best way to ensure rules work for all targets.

--
Freundliche Grüße / Yours sincerely
Sebastian Riedel


_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to