Thursday, January 13, 2022

Simple program using Array in Assembly language

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
  end main

No comments:

Post a Comment