Friday, November 26, 2021

simple program declare array and check the size an d length of array

Include irvine32.inc

;AddTwo.asm-adds two 32-bit integer.

;chapter3 example

.386

.stack 4096

ExitProcess proto,dwExitCode:dword

.data

myArray DWORD 30 DUP(5 DUP(0))

.code

main proc

mov eax,lengthof myArray

mov ebx,sizeof myArray

  invoke ExitProcess,0

  main endp 

No comments:

Post a Comment