Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input prompt2, string, 40 ; repeat for second number
- atod string
- mov Width, eax
- input prompt3, string, 40 ; repeat for third number
- atod string
- mov Hight, eax
- mov eax, Length ; first number to EAX
- mul eax, Width ; add second number
- mul eax, Hight ; add second number
- dtoa res, eax ; convert to ASCII characters
- output resultLbl, res ; output label and sum
- mov eax, 0 ; exit with return code 0
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement