
subsystem console
entry start

STD_OUTPUT_HANDLE equ 0fffffff5H

section "text" code

start:

	push	dword 0
	mov	esi, esp

	push	dword STD_OUTPUT_HANDLE
	call	dword [GetStdHandle]

	push	dword 0
	push	esi
	push	dword 15
	push	dword Hello
	push	eax
	call	dword [WriteFile]

	push	dword 0
	call	dword [ExitProcess]

section "data" data

Hello:	db	"Hello, world!", 13, 10

section "idata" imports

	from	"KERNEL32.DLL"
	import	ExitProcess
	import	GetStdHandle
	import	WriteFile
