; Template for console application
         .586
         .MODEL  flat, stdcall
         OPTION CASEMAP:NONE

Include kernel32.inc
Include masm32.inc

IncludeLib kernel32.lib
IncludeLib masm32.lib

         .CONST
MsgExit  DB    "Press Enter to Exit",0AH,0DH,0

         .DATA
A	     SWORD 	4,6,-1,7,5

         .DATA?
S        SWORD  ?
inbuf    DB     100 DUP (?)
 
         .CODE
Start:
	     mov	AX,0
	     lea	EBX,A
	     mov	ECX,5
cycle:   add	AX,0[EBX]
	     add	EBX,2
	     loop	cycle
	     
         XOR    EAX,EAX
         Invoke StdOut,ADDR MsgExit
         Invoke StdIn,ADDR inbuf,LengthOf inbuf		
	
         Invoke ExitProcess,0
         End    Start

