Menu ▾ ▴

#2293 STM8 assembler produces wrong opcode for BTJT/BTJF

closed-fixed
Ben Shi
BTJT_BTJF (1)
STM8
2
2014-09-03
2014-09-02
JerryW
No

Bug in stm8mch for 'btjt' & 'btjf'.
Very similar to ticket #2290

1 Attachments

Related

Bugs: #2293

Discussion

  • Ben Shi

    Ben Shi - 2014-09-03
    • status: open --> closed-fixed
    • assigned_to: Ben Shi
     
  • Ben Shi

    Ben Shi - 2014-09-03

    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.

     
    • JerryW

      JerryW - 2014-09-03

      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:

      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.


      Status: closed-fixed

      Labels: BTJT_BTJF
      Created: Tue Sep 02, 2014 06:26 PM UTC by JerryW
      Last Updated: Wed Sep 03, 2014 01:41 AM UTC
      Owner: Ben Shi

      Bug in stm8mch for 'btjt' & 'btjf'.
      Very similar to ticket #2290


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/sdcc/bugs/2293/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #2293

  • Ben Shi

    Ben Shi - 2014-09-03

    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.

     
  • Philipp Klaus Krause

    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

     

Log in to post a comment.