Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .bss
- side_a resd 4
- side_b resd 4
- side_c resd 4
- vol resd 4
- tmp1 resd 4
- tmp2 resd 4
- tmp3 resd 4
- section .text
- global CMAIN
- CMAIN:
- GET_DEC 4, eax
- mov dword[side_a], eax
- GET_DEC 4, eax
- mov dword[side_b], eax
- GET_DEC 4, eax
- mov dword[side_c], eax
- GET_DEC 4, eax
- mov dword[vol], eax
- mov eax, dword[side_a]
- mul dword[side_b]
- mov dword[tmp1], edx
- mul dword[side_c]
- mov dword[tmp2], eax
- mov dword[tmp3], edx
- mov eax, dword[tmp1]
- mul dword[side_c]
- mov edx, eax
- mov eax, dword[tmp2]
- add edx, dword[tmp3]
- div dword[vol]
- PRINT_DEC 4, eax
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement