[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [PATCH] FIX: Add a cpu cycle for the ICALL-instruction
From: |
Stan Behrens |
Subject: |
[Simulavr-devel] [PATCH] FIX: Add a cpu cycle for the ICALL-instruction only if executed on a non-XMega MCU. |
Date: |
Fri, 30 Dec 2011 10:43:15 +0100 |
---
src/decoder.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/decoder.cpp b/src/decoder.cpp
index f350c26..eb12f30 100644
--- a/src/decoder.cpp
+++ b/src/decoder.cpp
@@ -716,7 +716,7 @@ int avr_op_ICALL::operator()() {
core->DebugOnJump();
core->PC = new_pc - 1;
- return core->PC_size + core->flagXMega ? 0 : 1;
+ return core->PC_size + (core->flagXMega ? 0 : 1);
}
avr_op_IJMP::avr_op_IJMP(word opcode, AvrDevice *c):
--
1.7.5.4