fork download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. unsigned int val = 0;
  7. unsigned int i = 0xFFFFFEFF;
  8.  
  9. __asm__("pushf\n\t"
  10. "push %0\n\t"
  11. "popf\n\t"
  12. "pushf\n\t"
  13. "pop %0\n\t"
  14. "popf"
  15. : "=r"(val)
  16. : "r"(i)
  17. : "%0");
  18.  
  19. printf("0x%08X\n", val);
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
0x00244ED7