diff options
Diffstat (limited to 'addressing.h')
-rw-r--r-- | addressing.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addressing.h b/addressing.h index 1bfc61e..87b2079 100644 --- a/addressing.h +++ b/addressing.h @@ -47,6 +47,8 @@ AddData fAddress(Addressing addr, short x) { case eImplied: case eIndirectAbsolute: case eRelative: + case eImmediate: + case eAccumulator: break; case eAbsolute: @@ -130,10 +132,10 @@ AddData fAddress(Addressing addr, short x) { ret.cycles = 5; break; } } - + //case &fASL: case &fDEC: case &fINC: case &fLSR: case &fROL: case &fROR: - else if (current_instruction == &fASL || current_instruction == &fDEC || current_instruction == &fINC - || current_instruction == &fLSR || current_instruction == &fROL || current_instruction == &fROR ){ + else if( current_instruction == &fASL || current_instruction == &fDEC || current_instruction == &fINC + || current_instruction == &fLSR || current_instruction == &fROL || current_instruction == &fROR ){ switch(addr){ case eAccumulator: ret.cycles = 2; break; |