Re: A83: Boolean operators


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

Re: A83: Boolean operators




This probably isn't the best way, but I needed to do the same thing the
other day, and I used this

;see if number in a > Const

sub Const    ;Subtract Const from a
jp m,IsGreater ;jump if negitive flag is set

If you need the value again, you can always just add Const again and
you have it back.

Hope this helps
Jeremy

On Tue, 5 Sep 2000, Frank Schoep wrote:

> OK, I might be going for The Worst Question Ever Asked on ASM83 (tm), but I need to know the following:
> 
> how can you check if a number is larger than another (I only need to know how to do this with 8 bit numbers.)? Is there a way to load the 1st number in the accumulator and cp/and/or/xor/rr/slr/sla/rl it with another number to do this?
> 
> Please let me know...
> 
> Frank
> 




References: