Add a warning for an address expression that is usually the result of a typo

and almost never used in this form.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2158 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-05-13 19:10:32 +00:00
parent 43f59de557
commit be00adb757
4 changed files with 38 additions and 14 deletions

View File

@@ -95,19 +95,19 @@
/* Description for one instruction */
typedef struct InsDesc_ InsDesc;
struct InsDesc_ {
char Mnemonic [4];
typedef struct InsDesc InsDesc;
struct InsDesc {
char Mnemonic [4];
unsigned long AddrMode; /* Valid adressing modes */
unsigned char BaseCode; /* Base opcode */
unsigned char ExtCode; /* Number of ext code table */
unsigned char BaseCode; /* Base opcode */
unsigned char ExtCode; /* Number of ext code table */
void (*Emit) (const InsDesc*);/* Handler function */
};
/* An instruction table */
typedef struct InsTable_ InsTable;
struct InsTable_ {
unsigned Count; /* Number of intstructions */
typedef struct InsTable InsTable;
struct InsTable {
unsigned Count; /* Number of intstructions */
InsDesc Ins[1]; /* Varying length */
};
@@ -125,7 +125,7 @@ extern unsigned char ExtBytes [AMI_COUNT];
/*****************************************************************************/
/* Code */
/* Code */
/*****************************************************************************/