Re: A86: cphlde


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

Re: A86: cphlde





On Mon, 04 May 1998 01:05:16 -0400 Dux Gregis <assets@eden.rutgers.edu>
writes:
>
>It uses sbc.  I think, but I really have no idea, that the carry flag
>reflects whether or not the carry was subtracted.

push hl		;save hl
or a		;clear a and carry
sbc hl,de	;subtract (compare)
pop hl		;restore hl
ret

c,nz if hl<de
nc,z if hl=de
nc,nz if hl>de

i think that's right.

-josh

_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]


References: