Menu

FF18_3.8 '<>' change

2013-05-12
2013-05-12
  • Pete Zawasky

    Pete Zawasky - 2013-05-12

    Mikael,
    Here is what I added to the 'not equal' word to have a 'well-formed' flag.

    Pete
    AG7C

    ;*********
    ; <> x1 x2 -- flag return true if not equal
    dw L_WITHIN
    L_NOTEQUAL:
    db NFA|2,"<>"
    NOTEQUAL:
    ; ppz
    ; goto XOR
    ;
    ; for well-formed flag
    rcall MINUS
    movf Sminus, W, A
    iorwf Srw, W, A
    bnz test_true ; x1 not equal to x2
    bra test_false ; x1 equal to x2

    ;*********

     
  • Mikael Nordman

    Mikael Nordman - 2013-05-12

    Hi Pete,
    The XOR implementation was an optimization.
    Since the a well formed flash is desirable, I will change <>.
    BR Mike

     

Log in to post a comment.