On 06/06/2015 13:00, sdcc-user-requ...@lists.sourceforge.net wrote: > Hi Philipp, > > you were quicker:) Simon, you probably have a chance to work around it with > peephole rules requiring no compiler modification at all. > > > Idea is to use the JB bit,rel instruction to access the bit, peephole rule > for that could look similar to: > > > replace { > mov c,%1 > } by { > ; Peephole 1000.a mov c,%1 workaround fix > ; push acc > jb %1, . + x ; adapt relative jump > clrb c > sjmp . + y ; adapt relative jump > setb c > ; pop acc > } > > > Greetings, > Frieder
HI, Thanks for replying so fast and for the pointers with the peephole optimization rules, this appears to do exactly what I need. The same bug also exists in silicon on the CSR101x pio controller core, but currently its only use as31 so people are told to steer clear of those instructions. Simon ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user