Re: LZ: A bit of a quandry I'm in...


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

Re: LZ: A bit of a quandry I'm in...



On Mon, 07 Jul 1997 22:22:07 -0400 Ryan Myers <rmyers@inetarena.com>
writes:
>Anyone out there have a good idea on how to implement
>a less-than/greater-than test in assembly?  I've
>racked my brains for nearly two days now without
>any ideas.
>
>BTW, the application requires that one of the two-byte
>registers (DE,BC,HL, or maybe a shadow register?) be
>preserved.  Thanx.

Use ROM_CALL CP_HL_DE, it will compare HL and DE, return the normal CP
flags, and not alter the contents of either HL or DE (to my knowledge,
check ZSFNLIB.TXT).

Jim Reardon
jim.reardon@juno.com
Viva La Mexico
http://pages.prodigy.net/eviljim/
We all come into the world the same way - naked, screaming, covered in
blood.  But if you live your life right, that kind of thing doesn't have
to end there.


References: