Re: A82: Re: Re: Re: Clearing the z flag
[Prev][Next][Index][Thread]
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|
\----------------------------/
----- Original Message -----
From: "Jeremy Wazny" <j.wazny@ugrad.unimelb.edu.au>
To: <assembly-82@lists.ticalc.org>
Sent: Sunday, January 23, 2000 10:46 AM
Subject: Re: A82: Re: Re: Re: Clearing the z flag
>
> ... unless a=0, right?
>
> On Sun, 23 Jan 2000, Dines Justesen wrote:
>
> >
> > Using xor a will set the zero flag, use or a to clear it (one byte)
> >
> > 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: Sunday, January 23, 2000 4:29 AM
> > Subject: A82: Re: Re: Clearing the z flag
> >
> >
> > >
> > > I thought that would set it, because a is zero afterward. Is this not
the
> > case?
> > >
> > > ----- Original Message -----
> > > From: "Harper Maddox" <gte172i@prism.gatech.edu>
> > > To: <assembly-82@lists.ticalc.org>
> > > Sent: Saturday, January 22, 2000 19:22
> > > Subject: A82: Re: Clearing the z flag
> > >
> > > xor a
> > >
> > >
> >
> >
>
>
Follow-Ups:
References: