I am doing Narue's Introduction to Assembly, and when I run my program, nothing happens.

This is my code:

[section .data]
	hello: db 'Hello, world!', 10, 0

[section .text]
	global _main
	extern _printf
_main:
	push  hello
	call  _printf
	add   esp, 4
	mov   eax, 0
	ret

This is what happened in my command window:

C:\Documents and Settings\tom\Desktop\Assembly>nasm -f win32 First.asm -o First.obj
C:\Documents and Settings\tom\Desktop\Assembly>gcc First.obj -o prog.exe
C:\Documents and Settings\tom\Desktop\Assembly>prog.exe
C:\Documents and Settings\tom\Desktop\Assembly>

Any help would be appreciated :)

Can someone help me?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.