Advertisement
filashkov

Untitled

Feb 18th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %include "io.inc"
  2.  
  3. section .data
  4.     a dd 0
  5.     b dd 0
  6.     c dd 0
  7.     v dd 0
  8. ; a * b * c / v
  9. section .text
  10. global CMAIN
  11. CMAIN:
  12.     GET_DEC 4, a
  13.     GET_DEC 4, b
  14.     GET_DEC 4, c
  15.     mov eax, [a]
  16.     ;PRINT_DEC 4, eax
  17.     ;NEWLINE
  18.     mov ebx, [b]
  19.     mul ebx
  20.     PRINT_DEC 4, edx
  21.     PRINT_CHAR ' '
  22.     PRINT_DEC 4, eax
  23.    
  24.     xor eax, eax
  25.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement