Skip to content

Commit

Permalink
Merge pull request #22 from marhel/trap#n-cycles
Browse files Browse the repository at this point in the history
Undo instruction cycles in trap#n exception
  • Loading branch information
kstenerud committed Apr 28, 2016
2 parents c8faafc + 2b8ef21 commit 769ea6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m68kcpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1743,8 +1743,8 @@ INLINE void m68ki_exception_trapN(uint vector)
m68ki_stack_frame_0000(REG_PC, sr, vector);
m68ki_jump_vector(vector);

/* Use up some clock cycles */
USE_CYCLES(CYC_EXCEPTION[vector]);
/* Use up some clock cycles and undo the instruction's cycles */
USE_CYCLES(CYC_EXCEPTION[vector] - CYC_INSTRUCTION[REG_IR]);
}

/* Exception for trace mode */
Expand Down

0 comments on commit 769ea6b

Please sign in to comment.