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:
|
case IMPLIED:
|
||||||
printf("%s", i->def.mnemonic);
|
printf("%s", i->def.mnemonic);
|
||||||
break;
|
break;
|
||||||
|
case ACCUMULATOR:
|
||||||
|
printf("%s A", i->def.mnemonic);
|
||||||
|
break;
|
||||||
case IMMEDIATE:
|
case IMMEDIATE:
|
||||||
printf("%s #%X", i->def.mnemonic, i->op1);
|
printf("%s #%X", i->def.mnemonic, i->op1);
|
||||||
break;
|
break;
|
||||||
|
@ -15,7 +15,8 @@ typedef enum {
|
|||||||
ABSOLUTEX,
|
ABSOLUTEX,
|
||||||
ABSOLUTEY,
|
ABSOLUTEY,
|
||||||
IABSOLUTE,
|
IABSOLUTE,
|
||||||
IABSOLUTEX
|
IABSOLUTEX,
|
||||||
|
ACCUMULATOR
|
||||||
} addressing_t;
|
} addressing_t;
|
||||||
|
|
||||||
struct instrdef {
|
struct instrdef {
|
||||||
|
Loading…
Reference in New Issue
Block a user