RE: LZ: Programming Question, New Email
[Prev][Next][Index][Thread]
RE: LZ: Programming Question, New Email
On Tuesday, July 08, 1997 8:29 PM, Michael[SMTP:mikep@anet-dfw.com] wrote:
> i don't think your way is correct. i think it would be:
>
> sub b
> neg
> inc a
>
> i think that is right. you have to do the 2's complement of the
> number, not just flip all the bits.
Hmmm... says right here (in "Programming the Z80") that NEG does two's complement... I could be mistaken, though...
Sam
--
Sam Davies <sdavies@mail.trilogy.net>