I think I found where the number of cycles for DECW is defined in sdasstm8.
In stm8mch.c, there is a table named 'stm8pg'. Looking up the opcode value for DECW X, 0x5A, in the table gives 2. I'm not sure how the opcode for DECW Y, 0x905A, is mapped to this table. Perhaps the later 'pg90' table? 0x5A in that also gives a value of 2.
Are these the correct locations? Regards, Basil Hussain _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user