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

I think the order can be ignored for this.
But that reminds me, that rules which abuse the flag register for pushing numbers to the stack are quite port dependant.

On 04.06.20 14:19, Philipp Klaus Krause wrote:
> If you want to try later: AFAIK for Z80, Z180 and eZ80 the relevant
> documents are still available on the Zilog website.

I found those summaries http://www.z80.info/z80-op.txt / http://www.z80.info/z80sflag.htm
With that I can try to add support for Z80, too.
Maybe partial support first when I implement it for gbz80 and full support later with the next patch.
And maybe I’ll call them s,z,hc,p/v,n,cy like in that list.

--
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