For code like
if(foo & 0x40)
sdcc generates code that loads foo into the accumulator and ands it with 0x40.
It would be more efficient to use the bit instruction to do the test since it saves the moving of foo into a.
Log in to post a comment.