I have problem with compiling my programs in Linux(Slackware) with NASM
nasm -o hello hello.S
i dont know does i doing something wrong or does context of writing a assembly code are different for different processors and processors words???
here are my code : the result of code are Segmetation fault
section .text
global main
main:
xor eax,eax
xor ebx,ebx
xor ecx,ecx
xor edx,edx
jmp short string
code:
pop ecx
mov bl,1
mov dl,13
mov al,4
int 0x80
dec bl
mov al,1
int 0x80
string:
call code
db 'Hello, world!'