From 4784ea558d45e607d1e603f7b9b10549de1612f3 Mon Sep 17 00:00:00 2001 From: Emanuele Altomare Date: Mon, 13 Jan 2020 18:12:48 +0100 Subject: [PATCH] Fix a bug in the bitmask inside _avr_is_instruction_32_bits() function in sim_core.c file. --- 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 8ba14a8..73d7e5c 100644 --- a/simavr/sim/sim_core.c +++ b/simavr/sim/sim_core.c @@ -590,7 +590,7 @@ _avr_flags_znv0s (struct avr_t * avr, uint8_t res) static inline int _avr_is_instruction_32_bits(avr_t * avr, avr_flashaddr_t pc) { - uint16_t o = _avr_flash_read16le(avr, pc) & 0xfc0f; + uint16_t o = _avr_flash_read16le(avr, pc) & 0xfe0f; return o == 0x9200 || // STS ! Store Direct to Data Space o == 0x9000 || // LDS Load Direct from Data Space o == 0x940c || // JMP Long Jump -- 2.39.5