1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

Add accumulator addressing mode handling.

This commit is contained in:
Radosław Kujawa 2017-01-18 11:12:37 +01:00
parent 23802b176f
commit e36a9c34fb
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -15,7 +15,8 @@ typedef enum {
ABSOLUTEX,
ABSOLUTEY,
IABSOLUTE,
IABSOLUTEX
IABSOLUTEX,
ACCUMULATOR
} addressing_t;
struct instrdef {