A83: Re: op commands


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

A83: Re: op commands




Well, since you said such nice things :)...

> Well...after like 3 years of blandly staring at ASM tutorials, I think I
> have found the light!  I would like to thank James Matthews for his
> wonderfull, WONDERFULL Asm guru guide!  That thing is soooooo awesome!
>
> <SNIP>
>
> What does CA SET/CA NOT SET mean?  The reason I ask is I need to do a loop
> with these Op codes and I get the wrong result if i have:

CA is the carry flag, therefore:

call _cpop1op2
jr    c,op1_is_less_than_op2
jr    nc,op1_is_greater_than_op2
jr    z,op1_equals_op2

You are not subtracting -- since OP1 and OP2 remain intact...all though I suppose
somewhere in the RAM it does do that, yeah.

Later,

James.



Follow-Ups: References: