From: cuz Date: Sat, 6 Apr 2002 15:06:03 +0000 (+0000) Subject: Add info about the boolxx functions X-Git-Tag: V2.12.0~2400 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a4e24623bcaccc0fcc3836ab66dbaa62544e34f;p=cc65 Add info about the boolxx functions git-svn-id: svn://svn.cc65.org/cc65/trunk@1216 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeent.c b/src/cc65/codeent.c index 00a93a947..2a7b45956 100644 --- a/src/cc65/codeent.c +++ b/src/cc65/codeent.c @@ -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;