From 2386657c7dedfea8ddd4ea4c0bb5c9e59a14c1b6 Mon Sep 17 00:00:00 2001 From: bsekisser Date: Tue, 2 Jul 2013 13:02:15 -0400 Subject: [PATCH] sim_core.c: extended data type to 32 bits for eicall/eijmp instruction. modified: simavr/sim/sim_core.c --- simavr/sim/sim_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/sim_core.c b/simavr/sim/sim_core.c index 6db0b87..03d46ff 100644 --- a/simavr/sim/sim_core.c +++ b/simavr/sim/sim_core.c @@ -846,7 +846,7 @@ avr_flashaddr_t avr_run_one(avr_t * avr) int p = opcode & 0x100; if (e && !avr->eind) _avr_invalid_opcode(avr); - uint16_t z = avr->data[R_ZL] | (avr->data[R_ZH] << 8); + uint32_t z = avr->data[R_ZL] | (avr->data[R_ZH] << 8); if (e) z |= avr->data[avr->eind] << 16; STATE("%si%s Z[%04x]\n", e?"e":"", p?"call":"jmp", z << 1); -- 2.39.5