This variation only uses four words, which is pretty much how you might code it in assembler;
You could load portb into the temp variable, rotate it four times left, and check the value is b11110000, and it wouldn't matter what was happening on the high bits of portb.
Bookmarks