mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
Merge pull request #247 from felipesanches/fix_AVR8_EIJMP_instruction
fix the implementation of the AVR8 EIJMP instruction
This commit is contained in:
commit
92775ea014
@ -3541,7 +3541,7 @@ void avr8_device::execute_run()
|
|||||||
opcycles = 2;
|
opcycles = 2;
|
||||||
break;
|
break;
|
||||||
case 0x0010: // EIJMP
|
case 0x0010: // EIJMP
|
||||||
m_pc = ZREG + m_r[AVR8_REGIDX_EIND] - 1;
|
m_pc = (m_r[AVR8_REGIDX_EIND] << 16 | ZREG) - 1;
|
||||||
opcycles = 2;
|
opcycles = 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user