mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
New harmless function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1595 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
5d720cb6e3
commit
86fb1f760a
@ -209,7 +209,7 @@ static void CheckDirectOp (StackOpData* D)
|
||||
D->Flags |= OP_DIRECT;
|
||||
} else if (E->AM == AM65_ZP_INDY &&
|
||||
RegValIsKnown (E->RI->In.RegY) &&
|
||||
(E->Use & REG_SP) != 0) {
|
||||
(E->Use & REG_SP) != 0) {
|
||||
/* Load from stack with known offset is also ok */
|
||||
D->Flags |= (OP_DIRECT | OP_ONSTACK);
|
||||
}
|
||||
@ -482,7 +482,7 @@ static unsigned Opt_tosorax (StackOpData* D)
|
||||
AddOpLow (D, OP65_ORA);
|
||||
|
||||
/* High byte */
|
||||
if (RegValIsKnown (D->PushEntry->RI->In.RegX) &&
|
||||
if (RegValIsKnown (D->PushEntry->RI->In.RegX) &&
|
||||
RegValIsKnown (D->OpEntry->RI->In.RegX)) {
|
||||
/* Both values known, precalculate the result */
|
||||
const char* Arg = MakeHexArg (D->PushEntry->RI->In.RegX | D->OpEntry->RI->In.RegX);
|
||||
@ -522,7 +522,7 @@ static unsigned Opt_tosxorax (StackOpData* D)
|
||||
AddOpLow (D, OP65_EOR);
|
||||
|
||||
/* High byte */
|
||||
if (RegValIsKnown (D->PushEntry->RI->In.RegX) &&
|
||||
if (RegValIsKnown (D->PushEntry->RI->In.RegX) &&
|
||||
RegValIsKnown (D->OpEntry->RI->In.RegX)) {
|
||||
/* Both values known, precalculate the result */
|
||||
const char* Arg = MakeHexArg (D->PushEntry->RI->In.RegX ^ D->OpEntry->RI->In.RegX);
|
||||
@ -607,6 +607,7 @@ static int HarmlessCall (const char* Name)
|
||||
*/
|
||||
{
|
||||
static const char* Tab[] = {
|
||||
"ldaxidx",
|
||||
"ldaxysp",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user