Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern ExitProcess
- %include "io.inc"
- section .data
- x dd 1
- y dd 2
- z dd 1
- section .text use32
- ..start:
- mov eax, [x]
- add eax, [y]
- push eax
- mov eax, [x]
- imul dword [y]
- mov ebx, eax
- pop eax
- sub eax, ebx
- mov ebx, [z]
- xor edx, edx
- idiv ebx
- push eax
- call outi
- push dword 0
- call ExitProcess
Advertisement
Add Comment
Please, Sign In to add comment