Saturday, December 4, 2021

simple program for global labels in assembly language

include irvine32.inc

.386

.stack 4096

Exitprocess proto,dwExitcode:dword

.data

str1 byte "enter first number:",0

.code

main proc

l1:: // this is method of use globle lables

call sumof

invoke Exitprocess,0

main endp

call sumof

;this is the sumof function

sumof proc

mov edx,offset str1

call WriteString

jmp l1

ret

sumof endp


end main 

No comments:

Post a Comment