#361 Non-destructive and for ifx (hc08)

closed
Erik Petrich
hc08 port (9)
5
2012-06-05
2012-05-13
No

And that is only used for a following ifx should use the bit and brset instructions where doing so provides and advantage.

Philipp

Discussion

  • Erik Petrich
    Erik Petrich
    2012-05-15

    • assigned_to: nobody --> epetrich
     
  • Erik Petrich
    Erik Petrich
    2012-05-15

    The brset/brclr half of this feature request has been implemented in #7701.

     
  • I still see the old

    lda _galois_lfsr_reg_1_2
    and #0x01
    beq 00103$

    generated for the testcase I tried #7701 on:

    unsigned char galois_lfsr(void)
    {
    static unsigned char reg = 1;
    reg = ((reg & 1) ? (reg >> 1)^0xe1 : (reg >> 1));
    return(reg);
    }

     
  • Erik Petrich
    Erik Petrich
    2012-05-15

    brset/brclr only support direct addressing mode, not extended. It works when reg has the __data qualifier. (but I also found a bug in my implementation that I fixed in #7708)

     
  • Erik Petrich
    Erik Petrich
    2012-06-05

    I believe this has been fully implemented, so I'm closing it.

     
  • Erik Petrich
    Erik Petrich
    2012-06-05

    • status: open --> closed