From: cuz Date: Fri, 22 Nov 2002 23:44:36 +0000 (+0000) Subject: New harmless function X-Git-Tag: V2.12.0~2042 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=86fb1f760a4941246076379ede008502bbd34bdc;p=cc65 New harmless function git-svn-id: svn://svn.cc65.org/cc65/trunk@1595 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptstop.c b/src/cc65/coptstop.c index 557f4d357..c202b60e9 100644 --- a/src/cc65/coptstop.c +++ b/src/cc65/coptstop.c @@ -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", };