Re: A85: Complement the Z flag?


[Prev][Next][Index][Thread]

Re: A85: Complement the Z flag?



>You can't do xor l,%01000000. There is only one parameter for xor, and
>that is the value or register xor'ed with the acc, and the result is
>stored in the acc. Or did you mean
>this?
 You right.
>
>He is using the zero flag as an error flag on the return from a routine.
>Let's say that
>at one place in his routine, the zero flag would be RESET if there were
>an error. How does he fix this? He needs to do a
>
>czf
>ret z

You can do a RET NZ ! RET,JP,CALL and JR all supports both NZ and Z
(according to Programming the Z80 by Rodney Zaks). Thats why i can not see
when you need a czf.



Follow-Ups: