fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. unsigned short set_value, dev=4, page=0, reg=2;
  5. set_value = 0x1000 | 0x0400 | dev << 5 | 0x16 ;
  6. printf("%04x\n", set_value);
  7. set_value |= 0x8000;
  8. printf("%04x\n", set_value);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
1496
9496