feat: add do_bit_ops()
This commit is contained in:
parent
1895f37d81
commit
1b21c9f773
11
bit-ops.c
11
bit-ops.c
@ -1,6 +1,17 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void do_bit_ops() {
|
||||
unsigned char PTAD = 0x10;
|
||||
printf("PTAD = %#010x\n", PTAD);
|
||||
PTAD |= 0x01;
|
||||
printf("PTAD |= 0x01\t %#010x\n", PTAD);
|
||||
PTAD &= 0xfe;
|
||||
printf("PTAD &= 0xfe\t %#010x\n", PTAD);
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
printf("*** bit-ops pls ***\n");
|
||||
do_bit_ops();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user