fork download
  1. section .data
  2. result db '16', 10
  3. resultLen equ $ - result
  4.  
  5. section .text
  6. global _start
  7.  
  8. _start:
  9. ; Обчислення: (6 - 2) * (3 + 1)
  10. mov ax, 6
  11. sub ax, 2
  12. mov bx, 3
  13. add bx, 1
  14. imul ax, bx
  15.  
  16. ; Вивід '16\n'
  17. mov eax, 4
  18. mov ebx, 1
  19. mov ecx, result
  20. mov edx, resultLen
  21. int 0x80
  22.  
  23. ; Завершення
  24. mov eax, 1
  25. xor ebx, ebx
  26. int 0x80
  27.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
16