/* Print the operand */
switch (E->AM) {
- case AM_IMP:
case AM65_IMP:
/* implicit */
break;
Chars += fprintf (F, "%*sa", 9-Chars, "");
break;
- case AM_IMM:
case AM65_IMM:
/* immidiate */
Chars += fprintf (F, "%*s#%s", 9-Chars, "", E->Arg);
break;
- case AM_ABS:
case AM65_ZP:
case AM65_ABS:
/* zeropage and absolute */
/* */
/* */
/* */
-/* (C) 2001-2003 Ullrich von Bassewitz */
+/* (C) 2001-2004 Ullrich von Bassewitz */
/* Römerstraße 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* Opcode description table */
-const OPCDesc OPCTable[OPCODE_COUNT] = {
+const OPCDesc OPCTable[OP65_COUNT] = {
/* 65XX opcodes */
{ OP65_ADC, /* opcode */
Mnemo[I] = '\0';
/* Search for the mnemonic in the table and return the result */
- return bsearch (Mnemo, OPCTable+OP65_FIRST, OP65_COUNT,
+ return bsearch (Mnemo, OPCTable, OP65_COUNT,
sizeof (OPCTable[0]), FindCmp );
}
/* */
/* */
/* */
-/* (C) 2001-2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
+/* (C) 2001-2004 Ullrich von Bassewitz */
+/* Römerstraße 52 */
+/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* */
/* */
-/* Definitions for the possible opcodes */
+/* 65XX opcodes */
typedef enum {
-
- /* 65XX opcodes */
OP65_ADC,
OP65_AND,
OP65_ASL,
OP65_TYA,
/* Number of opcodes available */
- OPCODE_COUNT,
-
- /* Several other opcode information constants */
- OP65_FIRST = OP65_ADC,
- OP65_LAST = OP65_TYA,
- OP65_COUNT = OP65_LAST - OP65_FIRST + 1
+ OP65_COUNT
} opc_t;
-/* Addressing modes */
+/* 65XX addressing modes */
typedef enum {
-
- /* Addressing modes of the virtual stack machine */
- AM_IMP,
- AM_IMM,
- AM_STACK,
- AM_ABS,
-
- /* 65XX addressing modes */
AM65_IMP, /* implicit */
AM65_ACC, /* accumulator */
AM65_IMM, /* immidiate */
} OPCDesc;
/* Opcode description table */
-extern const OPCDesc OPCTable[OPCODE_COUNT];
+extern const OPCDesc OPCTable[OP65_COUNT];