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:
parent
23802b176f
commit
e36a9c34fb
@ -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;
|
||||
|
@ -15,7 +15,8 @@ typedef enum {
|
||||
ABSOLUTEX,
|
||||
ABSOLUTEY,
|
||||
IABSOLUTE,
|
||||
IABSOLUTEX
|
||||
IABSOLUTEX,
|
||||
ACCUMULATOR
|
||||
} addressing_t;
|
||||
|
||||
struct instrdef {
|
||||
|
Loading…
Reference in New Issue
Block a user