In listing file (.lst) output from the sdasstm8 assembler, the number of
cycles reported for a DECW instruction appears to be wrong. It reports
it as taking two cycles:
000022 5A [ 2] 121 decw x
00004A 90 5A [ 2] 189 decw y
000069 5A [ 2] 231 decw x
000080 90 5A [ 2] 271 decw y
0000A9 5A [ 2] 341 decw x
0000B7 5A [ 2] 357 decw x
0000DC 5A [ 2] 430 decw x
The PM0044 STM8 Programming Manual document says (pg. 100) that this
instruction takes 1 cycle. ucSim also runs DECW in a single cycle, which
agrees with the docs.
Which is correct?
Regards,
Basil Hussain
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user