Fixed compiler warnings
git-svn-id: svn://svn.cc65.org/cc65/trunk@3006 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -33,7 +33,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <ctype.h>
|
/* common */
|
||||||
|
#include "chartype.h"
|
||||||
|
|
||||||
/* cc65 */
|
/* cc65 */
|
||||||
#include "codeent.h"
|
#include "codeent.h"
|
||||||
@@ -393,7 +394,7 @@ unsigned OptAdd4 (CodeSeg* S)
|
|||||||
/* Check for the sequence */
|
/* Check for the sequence */
|
||||||
if (E->OPC == OP65_JSR &&
|
if (E->OPC == OP65_JSR &&
|
||||||
strncmp (E->Arg, "incax", 5) == 0 &&
|
strncmp (E->Arg, "incax", 5) == 0 &&
|
||||||
isdigit (E->Arg[5]) &&
|
IsDigit (E->Arg[5]) &&
|
||||||
E->Arg[6] == '\0' &&
|
E->Arg[6] == '\0' &&
|
||||||
!RegXUsed (S, I+1)) {
|
!RegXUsed (S, I+1)) {
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
|
||||||
|
/* common */
|
||||||
|
#include "chartype.h"
|
||||||
|
|
||||||
/* cc65 */
|
/* cc65 */
|
||||||
#include "codeent.h"
|
#include "codeent.h"
|
||||||
@@ -334,12 +336,12 @@ static int IsRegVar (StackOpData* D)
|
|||||||
P->OPC == OP65_LDX &&
|
P->OPC == OP65_LDX &&
|
||||||
P->AM == AM65_ZP &&
|
P->AM == AM65_ZP &&
|
||||||
strncmp (P->Arg, "regbank+", 7) == 0 &&
|
strncmp (P->Arg, "regbank+", 7) == 0 &&
|
||||||
isdigit (P->Arg[8]) &&
|
IsDigit (P->Arg[8]) &&
|
||||||
(P = CS_GetEntry (D->Code, D->PushIndex-2)) != 0 &&
|
(P = CS_GetEntry (D->Code, D->PushIndex-2)) != 0 &&
|
||||||
P->OPC == OP65_LDA &&
|
P->OPC == OP65_LDA &&
|
||||||
P->AM == AM65_ZP &&
|
P->AM == AM65_ZP &&
|
||||||
strncmp (P->Arg, "regbank+", 7) == 0 &&
|
strncmp (P->Arg, "regbank+", 7) == 0 &&
|
||||||
isdigit (P->Arg[8])) {
|
IsDigit (P->Arg[8])) {
|
||||||
/* Ok, it loads the register variable */
|
/* Ok, it loads the register variable */
|
||||||
D->ZPHi = D->PrevEntry->Arg;
|
D->ZPHi = D->PrevEntry->Arg;
|
||||||
D->ZPLo = P->Arg;
|
D->ZPLo = P->Arg;
|
||||||
|
|||||||
Reference in New Issue
Block a user