fork(1) download
  1. global _start
  2.  
  3. section .data
  4. buffer dw 0h
  5.  
  6. section .text
  7.  
  8. mov edi, 0
  9. mov ebx, 765
  10. mov eax, -122691
  11. cdq
  12.  
  13. sub ebx, eax
  14. sbb edi, edx
  15. jne cont
  16. jb failure
  17. cmp ebx, 3
  18. jae cont
  19. failure:
  20. mov eax, 'FAIL'
  21. mov ecx, buffer
  22. mov [ecx], eax
  23. mov edx, 4
  24. call write
  25. cont:
  26.  
  27. exit:
  28. mov eax, 01h ; exit()
  29. xor ebx, ebx ; errno
  30. int 80h
  31.  
  32.  
  33. write:
  34. mov eax, 04h ; write()
  35. mov ebx, 01h ; stdout
  36. int 80h
  37. ret
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
FAIL