Re: A86: c flag


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

Re: A86: c flag



> _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

actually u would change the nz and the c around because it would go to
less even if it was greater also


References: