> > Z flag but left the other part of the expression alone. It's a great C Z80
> > emulator, and I can't see there being much else to squeeze out of it without
> > going to ASM
>
> Actually I think I just typed in what came into my head - I'm sure some of
> the flag calculations must be horribly inefficient. Then again, there is
> no easy way to generate them unless you want to rely on the host cpu having
> similar flags which you can just copy.
>
> imc
Well, I have used another Z80 CPU emulator in my SAA1099 player.
It is not 100%, but it uses very efficient algo's for computing flags.
And it is platform independent. This may help.
(it uses some really large tables and read flag values from these tables.
it uses tables of at least 256 entries for each one state of the result,
and the tables give fast solution for sign/zero/carry/overflow flags.
i think nothing could be better than this.)
----------------------------------------------------------------
Aley [eili] Keprt - student, programmer (multimedia soft. etc.)
phone: +420-68-538 70 35
e-mail: [EMAIL PROTECTED] *** http://get.to/aley
----------------------------------------------------------------