[A83] Re: 83 help [comparing a 16 bit number] [83/83+]?
[Prev][Next][Index][Thread]
[A83] Re: 83 help [comparing a 16 bit number] [83/83+]?
Well, what I did to compare a 16 bit number, was to split the number in
HH(MSB) and LL(LSB),
I then checked HH first, and when it was correct with the wanted MSB, I
checked LL, else quit.
If the LSB was correct, do it, else don't
(in my program, i also use greater/less than, by making use of jp p, label
(plus/positive flag) and jp m,other_label (minus/negative flag) quite useful
if you need greater/less than)
Good luck with it.
--Peter Martijn
Dustin Davis wrote:
> i am very greatful for your help, and everyone elses help. I have two more
> questions. ionLargeSprite puts the sprite ok, but its all scrambled. If i
> make a giant block it will put the sprite on the screen just fine. But if i
> make a picture then it is all scrambled. I set everything correct but still
> it messed it up. And My next question is how do I compare a 16 bit number?
> like my game has numbers that go past 255 and up to 527 and i have to
> compare numbers over 255. I tried cp 300 but as i guessed, it didnt work.
> Any idea?
>
> Dustin Davis
> Lead Software Developer
> Vision Works Studios
References: