mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-25 03:34:51 +00:00
added missing addressing modes
This commit is contained in:
parent
7028e1dfd2
commit
2f308ee163
@ -143,8 +143,19 @@ uint8_t Disassembler::instructionToMnemonic(uint16_t addr, uint8_t *p, char *out
|
||||
case A_ABY:
|
||||
case A_ABX:
|
||||
case A_ABI://indirect
|
||||
case A_ABXI:
|
||||
case A_ZIND:
|
||||
target = (*(p+2) << 8) | (*(p+1)); // FIXME: is this correct?
|
||||
break;
|
||||
case A_ZER:
|
||||
case A_INX:
|
||||
case A_INY:
|
||||
case A_ZEX:
|
||||
case A_ZEY:
|
||||
case A_ZPREL:
|
||||
case A_IMM:
|
||||
target = *(int8_t *)(p+1);
|
||||
break;
|
||||
default:
|
||||
target = 0;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user