mirror of
https://github.com/cc65/cc65.git
synced 2024-08-27 11:29:12 +00:00
Add info about the boolxx functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1216 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c6fe12ef6b
commit
4a4e24623b
@ -710,7 +710,7 @@ void CE_GenRegInfo (CodeEntry* E, RegContents* InputRegs)
|
|||||||
if (Chg & REG_SREG_HI) {
|
if (Chg & REG_SREG_HI) {
|
||||||
Out->SRegHi = -1;
|
Out->SRegHi = -1;
|
||||||
}
|
}
|
||||||
/* Quick hack for some known functions: */
|
/* ## FIXME: Quick hack for some known functions: */
|
||||||
if (strcmp (E->Arg, "tosandax") == 0) {
|
if (strcmp (E->Arg, "tosandax") == 0) {
|
||||||
if (In->RegA == 0) {
|
if (In->RegA == 0) {
|
||||||
Out->RegA = 0;
|
Out->RegA = 0;
|
||||||
@ -725,6 +725,8 @@ void CE_GenRegInfo (CodeEntry* E, RegContents* InputRegs)
|
|||||||
if (In->RegX == 0xFF) {
|
if (In->RegX == 0xFF) {
|
||||||
Out->RegX = 0xFF;
|
Out->RegX = 0xFF;
|
||||||
}
|
}
|
||||||
|
} else if (FindBoolCmpCond (E->Arg) != CMP_INV) {
|
||||||
|
Out->RegX = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user