Andrew Warren email (remove spam text)
Peter Baines <MITVMA.MIT.EDU> wrote: PICLIST
> does anybody have some code to subtract one 16 bit number from
> another NOT using 2s compliment so that it returns an ABS result
> with a flag (AKA register) to say if it is negative.
This routine computes DEST = DEST - SOURCE. After it executes, the
Carry flag is valid (i.e., Carry = 0 if the result is negative,
Carry = 1 if the result is zero or positive). Note that the Zero
flag is NOT necessarily valid after execution.
=== Andrew Warren - ix.netcom.comfastfwd
=== Fast Forward Engineering - Vista, California
In reply to: <email@example.com>
See also: www.piclist.com/techref/index.htm?key=dumb+question
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the