; Организация ввода-вывода в консольном режиме

	    .586
	    .MODEL  flat, stdcall
	     OPTION CASEMAP:NONE

Include kernel32.inc
Include masm32.inc

IncludeLib kernel32.lib
IncludeLib masm32.lib

		.CONST

		.DATA
Msg1	 DB	  "Please Type Something: ",0AH,0DH,0
Msg2	 DB   "Press Enter to Exit",0AH,0DH,0
sdk      BYTE  "Hello!",0

	    .DATA?
inbuf	 DB   100 DUP (?)

		.CODE
Start:
		 XOR    EAX,EAX
		 Invoke StdOut,ADDR Msg1
		 Invoke StdIn,ADDR inbuf,LengthOf inbuf	
		 Invoke StdOut,ADDR inbuf
		 Invoke StdOut,ADDR Msg2
		 Invoke StdIn,ADDR inbuf, LengthOf inbuf		
		
		 Invoke ExitProcess,0
		 End    Start