Commit 4784ea558d45e607d1e603f7b9b10549de1612f3
authorEmanuele Altomare <altomare.emanuele@gmail.com>
Mon, 13 Jan 2020 17:12:48 +0000 (18:12 +0100)
committerEmanuele Altomare <altomare.emanuele@gmail.com>
Mon, 13 Jan 2020 17:12:48 +0000 (18:12 +0100)
simavr/sim/sim_core.c

index 8ba14a8ca9465282c683b269adb07c6d961a4b07..73d7e5c0840997128ecf8e2cbce5ab427376211f 100644 (file)
@@ -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