Chris0nllyn
Well-Known Member
I've got an 8 bit input ("A") and an 8 bit output ("B"). I'm trying to set B's upper nibble to A's lower nibble and B's lower nibble to 6.
Obviously 6 is just 0x6, but I'm having trouble getting A's lower nibble to line up with B's upper nibble.
code:
#include "RIMS.h"
int main() {
while(1) {
B=A|0x6;
}
return 0;
}
Obviously 6 is just 0x6, but I'm having trouble getting A's lower nibble to line up with B's upper nibble.
code:
#include "RIMS.h"
int main() {
while(1) {
B=A|0x6;
}
return 0;
}