fork download
  1. global _start
  2.  
  3. section .data
  4. mes1 db 'OVERFLOW', 0x0a
  5. len1 equ $-mes1
  6. mes2 db 'OK',0x0a
  7. len2 equ $-mes2
  8.  
  9. section .text
  10. _start:
  11. mov al,0x80
  12. neg al ; -128 -> X overflow
  13. jno skip
  14.  
  15. mov ecx, mes1
  16. mov edx, len1
  17. jmp disp
  18.  
  19. skip:
  20. mov ecx, mes2
  21. mov edx, len2
  22.  
  23. disp:
  24. mov eax, 4
  25. mov ebx, 1
  26. int 0x80
  27.  
  28. exit:
  29. mov eax, 0x01
  30. xor ebx, ebx ; exit(0)
  31. int 0x80
  32.  
Success #stdin #stdout 0s 100KB
stdin
Standard input is empty
stdout
OVERFLOW