Merge pull request #247 from felipesanches/fix_AVR8_EIJMP_instruction

fix the implementation of the AVR8 EIJMP instruction
This commit is contained in:
David Haywood 2015-07-06 17:15:53 +01:00
commit 92775ea014

View File

@ -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: