For the life of me I can not figure out why this will not print to screen. Doesn't crash or seg fault, just exits. Yes I am new, and looking for a tutor as a matter of fact, if anyone could be so kind as to help out it would be grealty appreciated.
; Hello World in nasm
;
; Intel Linux bt 2.6.39.4 #1 SMP x86_64 GNU/Linux
; NASM version 2.07
; ld 2.20.1-system.20100303
;
; Compile to 32bit with debugging symbols:
; nasm -g -f elf32 -F dwarf string-w.asm
; ld -g -melf_i386 -o string-w string-w.o
; file string-w.asm
[section .data]
msg db "Hello World",0xa,0x0
len equ $ - msg
[section .bss]
[section .text]
global _start
_start:
push dword len
push dword msg
push dword 1 ; Stdout
mov eax,0x4 ; write
int 0x80
ret
add esp,12
push dword 0
mov eax, 0x1 ; exit
int 0x80
Again, any help is greatly appreciated and if anyone is looking for a student, I'm ready to volunteer.