]> git.sur5r.net Git - cc65/commitdiff
Add info about the boolxx functions
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 6 Apr 2002 15:06:03 +0000 (15:06 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 6 Apr 2002 15:06:03 +0000 (15:06 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1216 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/codeent.c

index 00a93a947a6146c437b97bec709de7e31f138621..2a7b45956d7665f783f118dd17a88451c3e6c088 100644 (file)
@@ -710,7 +710,7 @@ void CE_GenRegInfo (CodeEntry* E, RegContents* InputRegs)
            if (Chg & REG_SREG_HI) {
                Out->SRegHi = -1;
            }
-           /* Quick hack for some known functions: */
+                   /* ## FIXME: Quick hack for some known functions: */
            if (strcmp (E->Arg, "tosandax") == 0) {
                if (In->RegA == 0) {
                    Out->RegA = 0;
@@ -725,6 +725,8 @@ void CE_GenRegInfo (CodeEntry* E, RegContents* InputRegs)
                if (In->RegX == 0xFF) {
                     Out->RegX = 0xFF;
                 }
+            } else if (FindBoolCmpCond (E->Arg) != CMP_INV) {
+                Out->RegX = 0;
             }
            break;