Re: A82: Re: Re: Re: Clearing the z flag


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

Re: A82: Re: Re: Re: Clearing the z flag




Ld a,r will update the z flag, so unless you read 0 from the r register the
zero flag should be cleared.

Dines
/----------------------------\
| Dines Justsen              |
| dines@aub.dk               |
| www.student.dtu.dk/~c958362|
\----------------------------/

----- Original Message -----
From: "Kouri" <Kouri@ucdavis.edu>
To: <assembly-82@lists.ticalc.org>
Sent: Monday, January 24, 2000 12:10 PM
Subject: Re: A82: Re: Re: Re: Clearing the z flag


>
> How does ld a,r use the z flag?
>
> ----- Original Message -----
> From: "Dines Justesen" <dines@aub.dk>
> To: <assembly-82@lists.ticalc.org>
> Sent: Sunday, January 23, 2000 02:37
> Subject: Re: A82: Re: Re: Re: Clearing the z flag
>
>
>
> Yep if a=0 it wont work.
>
> If a<>0
>   or a
> If a=0
>   neg a / cpl a
>
> If you do not know the value of a
>  or $ff
>
> Dines
>
> BTW ld a,r does use the z flag, so that is another possiblity :-)
> /----------------------------\
> | Dines Justsen              |
> | dines@aub.dk               |
> | www.student.dtu.dk/~c958362|
> \----------------------------/
> <snip>
>
>



Follow-Ups: References: