Re: A83: Calculating this formula...


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

Re: A83: Calculating this formula...




In accordance with the prophecy, ComAsYuAre@aol.com uttered:

> 
> In a message dated 5/8/00 1:09:56 PM Eastern Daylight Time,
> lairfight@softhome.net writes:
> 
> > In accordance with the prophecy, David Phillips uttered:
> >  
> >  > The difference is that with "sla" the carry flag will be set to what
> >  > bit 7 was, whereas with "add" it will be set if the result overflowed.
> >  
> >  which is the same, really.
> 
> Well, if a=128 and you do add a,a, it will set the zero flag as well as the
> carry flag, while sla a will only set the carry flag.
 
sla affects the zero flag too. Sorry. =)

Linus
----------------------------------------------------------------------------
                  DR. SEUSS:
                   Did the chicken cross the road?
                   Did he cross it with a toad?
                   Yes! The chicken crossed the road,
                   But why it crossed, I've not been told!
----------------------------------------------------------------------------
lairfight@softhome.net, visit http://linusworld.cjb.net (PGP key available).




References: