mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
More quick hack for CE_GenRegInfo.
This commit is contained in:
parent
0bfa13722b
commit
79be6dec16
@ -1781,6 +1781,13 @@ void CE_GenRegInfo (CodeEntry* E, RegContents* InputRegs)
|
||||
if (RegValIsKnown (In->RegX)) {
|
||||
Out->RegX = (In->RegX ^ 0xFF);
|
||||
}
|
||||
} else if (strncmp (E->Arg, "asrax", 5) == 0 ||
|
||||
strncmp (E->Arg, "shrax", 5) == 0) {
|
||||
if (RegValIsKnown (In->RegX)) {
|
||||
if (In->RegX == 0x00 || In->RegX == 0xFF) {
|
||||
Out->RegX = In->RegX;
|
||||
}
|
||||
}
|
||||
} else if (strcmp (E->Arg, "tosandax") == 0) {
|
||||
if (RegValIsKnown (In->RegA) && In->RegA == 0) {
|
||||
Out->RegA = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user