diff --git a/src/instruction.c b/src/instruction.c index 420cce2..0c54676 100644 --- a/src/instruction.c +++ b/src/instruction.c @@ -56,6 +56,9 @@ instruction_print(instruction_t *i) case IMPLIED: printf("%s", i->def.mnemonic); break; + case ACCUMULATOR: + printf("%s A", i->def.mnemonic); + break; case IMMEDIATE: printf("%s #%X", i->def.mnemonic, i->op1); break; diff --git a/src/instruction.h b/src/instruction.h index 819f106..fabbced 100644 --- a/src/instruction.h +++ b/src/instruction.h @@ -15,7 +15,8 @@ typedef enum { ABSOLUTEX, ABSOLUTEY, IABSOLUTE, - IABSOLUTEX + IABSOLUTEX, + ACCUMULATOR } addressing_t; struct instrdef {