From 4a4e24623bcaccc0fcc3836ab66dbaa62544e34f Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 6 Apr 2002 15:06:03 +0000 Subject: [PATCH] Add info about the boolxx functions git-svn-id: svn://svn.cc65.org/cc65/trunk@1216 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/codeent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5