include irvine32.inc
.386
.stack 4096
Exitprocess proto,dwExitcode:dword
.data
str1 byte "how are you",0
str2 byte "i am fine",0
.code
main proc
call msgprint1
call msgprint2
invoke Exitprocess,0
main endp
;this is the msgprint1 function
msgprint1 proc
mov edx,offset str1
call WriteString
call crlf
ret
msgprint1 endp
;this is the msgprint2 function
msgprint2 proc
mov edx,offset str2
call WriteString
ret
msgprint2 endp
end main
No comments:
Post a Comment