Nasm Hello World

Source URL: N/A

Language: whatever

Created on: 2021-02-17 12:41:25

; This code is for Microsoft Windows
; It does not work well in other OS

global _main
extern [email protected]
extern [email protected]

section code use32 class=code
_main:
	push	dword 0 ; UINT uType = MB_OK
	push	dword title ; LPCSTR lpCaption
	push	dword banner ; LPCSTR lpText
	push	dword 0 ; HWND hWnd = NULL
	call	[email protected]

	push	dword 0 ; UINT uExitCode
	call	[email protected]

section data use32 class=data
	banner:	db 'Hello, world!', 0
	title:	db 'Hello', 0
Nasm Hello World
content_copy