[A83] Re: check if positive
[Prev][Next][Index][Thread]
[A83] Re: check if positive
To answer the original question, to check if A is positive:
or a
jp p,Positive
;negative
Positive:
;positive
You could also do this, which is slightly more efficient:
cp $80
jr c,Positive
;negative
Positive:
;positive
To check if A is larger than (or equal to) B:
cp b
jr nc,Larger
;smaller
Larger:
;larger
-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Ronald Teune
Sent: Thursday, May 31, 2001 7:56 AM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: check if positive
>OK Xavier I understood al of what you said. but how can you define a string
>(db. " Hi there",0) in one byte, or is that one byte just a pointer?
>And that " space to let in a program" I understood neither.
>
>Thanks in advanxce
>p.s. " does anybody know how you can check if a variable is bigger than an
>other variable",0
I don't know, but you can write a small C program and comepile it with z88dk
and look at the z80 code.
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>
References: