Re: Re: A85: SBC HL, DE
[Prev][Next][Index][Thread]
Re: Re: A85: SBC HL, DE
In a message dated 9/1/98 5:45:07 AM, you wrote:
>The way the carry flag works with subtraction is the same as with
>addition, sbc hl,de is hl-de-carry.
>If carry is set then de+carry>hl (because to subtracted carry also.)
>But it is always set afterwards.
If this is the case, then how might I subtract de from hl without the use of
the carry flag? What I need to do effectively is:
LD HL, value1
LD DE, value2
HL=HL-DE ;point of conflict
JR C, valu2toobig ;<--I need the carry flag to be altered if DE was greater
than HL
;HL was greater than DE. Subtraction successful. HL is now the difference.
What commands can I use to do this?
-Josh Morris
DorkReMi@aol.com
Follow-Ups: