Re: A83: More questions


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

Re: A83: More questions





In a message dated 04/05/99 5:03:21 PM, bomber912@hotmail.com writes:

>Hi
>
>jp c,label
>jp nc,label2
>
>What does the carry operator mean exactly
>I know about z, nz, p, n and oyher but carry ..?
>
>Is there a way to convert an integer to a floating point.?
>
>thanks
>homonerdicus

The carry flag allows for you to check greater or less than when doing a 
compare.

cp b

this would affect the carry flag like this:

if a > b : C=0
if a < b : C=1
if a = b : C=0

and then when doing "jp c,label", it will jump to that label if the carry 
flag is set (c=1), and doing "jp nc,label2" will goto label2 if the carry 
flag is not set (c=0).

hope that helps you, but I dont know what you mean by the second question, 
sorry...

--Jason K.