Re: A86: c flag


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

Re: A86: c flag



Ahmed El-Helw wrote:
> 
> Here is a routine to do it:
> 
> _setxxop1                          equ            4613h
> _setxxop2                                equ            4617h
> _CPOP1OP2                          equ            41FBh
> 
>         ld      a,(var1)
>         call    _setxxop1                       ;Store into Op1
>         ld      a,(var2)
>         call    _setxxop2                       ;Store into Op2
>         call    _CPOP1OP2                       ;Compare Op1/Op2
>         jp      z,equal
>         jp      nz,less
>         jp      c,greater
> 
>                                         -Ahmed

hmm nm i got it on my own while my server was down :P i used the regular
way of doing it like:

 ld a,$xx
 ld b,$xx
 cp b
 jr c,bbigger
abigger:
 .
 .
 .
bbigger:
.
.
.


References: