fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int Valor = 0;
  5.  
  6. __asm__("mov $0x05, %%eax\n"
  7. "mov $0x03, %%ebx\n"
  8. "add %%eax, %%ebx\n"
  9. "mov %%ebx, %0": "=r" (Valor));
  10. printf("%d\n", Valor);
  11. return 0;
  12. }
Success #stdin #stdout 0s 4444KB
stdin
Standard input is empty
stdout
8