From: Emanuele Altomare Date: Mon, 13 Jan 2020 17:12:48 +0000 (+0100) Subject: Fix a bug in the bitmask inside _avr_is_instruction_32_bits() function in sim_core... X-Git-Tag: v1.7~26^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=4784ea558d45e607d1e603f7b9b10549de1612f3;p=sx%2Fsimavr.git Fix a bug in the bitmask inside _avr_is_instruction_32_bits() function in sim_core.c file. --- 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