Friday, November 26, 2021

Write a program that prints sum of first 4 even numbers.

Include irvine32.inc

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

;chapter3 example

.386

.data

.stack 4096

ExitProcess proto,dwExitCode:dword

.code

main proc

mov eax,2

add eax,4

add eax,6

add eax,8

call writeint

  invoke ExitProcess,0


  main endp

  end main 

No comments:

Post a Comment