Thanks for your report. This bug is fixed in rev9066. With the attached a.asm, the command "sdasstm8 -l a.asm" generated the attached a.lst, which is correct.
I searched around a bit looking for any STM8 instructions that might be
possibly similarly effected as BSET/BRES & BTJT/BTJF were.
It was a quick look, but I didn't find anything. Hopefully that's the end
of it!
Just curious, any idea what that those 'TODOs' in the associated case
statements are all about?
Thanks for your report. This bug is fixed in rev9066. With the attached
a.asm, the command "sdasstm8 -l a.asm" generated the attached a.lst, which
is correct.
Generally speaking, there are many TODOs in both the assembler and the compiler, and I have not checked all of them (actually most of them are not written by me). But I hope they can be cleared by me and other developers. And you are welcome to post patch tickets towards that and other improvements.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know about the TODOs in the assembler. But the ones in the compiler are just optimization opportunities that I noticed while writing the code generator, but did not consider them worth implementing at the time. The ones that did turn up in real-world code a few times have already been fixed. The remaining ones are mostly opportunities to just save another byte / cycle or two in some corner cases.
Philipp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your report. This bug is fixed in rev9066. With the attached a.asm, the command "sdasstm8 -l a.asm" generated the attached a.lst, which is correct.
Thanks Ben,
I searched around a bit looking for any STM8 instructions that might be
possibly similarly effected as BSET/BRES & BTJT/BTJF were.
It was a quick look, but I didn't find anything. Hopefully that's the end
of it!
Just curious, any idea what that those 'TODOs' in the associated case
statements are all about?
Jerry
On Tue, Sep 2, 2014 at 8:52 PM, Ben Shi benshi@users.sf.net wrote:
Related
Bugs:
#2293Generally speaking, there are many TODOs in both the assembler and the compiler, and I have not checked all of them (actually most of them are not written by me). But I hope they can be cleared by me and other developers. And you are welcome to post patch tickets towards that and other improvements.
I don't know about the TODOs in the assembler. But the ones in the compiler are just optimization opportunities that I noticed while writing the code generator, but did not consider them worth implementing at the time. The ones that did turn up in real-world code a few times have already been fixed. The remaining ones are mostly opportunities to just save another byte / cycle or two in some corner cases.
Philipp