summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author David Haywood <mamehaze@users.noreply.github.com>2015-07-06 17:15:53 +0100
committer David Haywood <mamehaze@users.noreply.github.com>2015-07-06 17:15:53 +0100
commit92775ea0143935a39c8d357e48881320118e0775 (patch)
tree5e28e91bead97d0d873b57ff3239105e9a6f1d93
parentd4ff9f2d3c2c74e74e2eecd1720d818fcce13d45 (diff)
parentee29c230f5dc45367e274302743787478882a8e7 (diff)
Merge pull request #247 from felipesanches/fix_AVR8_EIJMP_instruction
fix the implementation of the AVR8 EIJMP instruction
-rw-r--r--src/emu/cpu/avr8/avr8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/cpu/avr8/avr8.c b/src/emu/cpu/avr8/avr8.c
index 3cdca21c85a..8c70e93ecfd 100644
--- a/src/emu/cpu/avr8/avr8.c
+++ b/src/emu/cpu/avr8/avr8.c
@@ -3541,7 +3541,7 @@ void avr8_device::execute_run()
opcycles = 2;
break;
case 0x0010: // EIJMP
- m_pc = ZREG + m_r[AVR8_REGIDX_EIND] - 1;
+ m_pc = (m_r[AVR8_REGIDX_EIND] << 16 | ZREG) - 1;
opcycles = 2;
break;
default: