; 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     SDWORD  -10
B     SDWORD  23

      .DATA?
D     SDWORD  ?
inbuf DB    ?

      .CODE
Start:
      mov   EAX,A
      add   EAX,B
      mov   D,EAX	
      mov   AX,word ptr A
      add   AX,word ptr B
      mov   word ptr D,AX	
      
      lea   EBX,A
      mov   EAX,0[EBX]
	
      Invoke StdOut,ADDR MsgExit  ; вызов процедуры вывода
	  Invoke StdIn,ADDR inbuf,LengthOf inbuf
	  
      Invoke ExitProcess,0
      End    Start

