manjaba
August 7th, 2011, 03:50 PM
Not sure why I'm getting the Segmentation fault statement on this program which runs ok:
#HelloWorld.s my second assembly program
.data
HelloWorldString: #label
.ascii"Hello World\n"
.text
.globl _start
_start:
#load all the arguments for write()
movl $4, %eax
movl $1, %ebx
movl $HelloWorldString, %ecx
movl $12, %edx
int $0x80
Thanks
#HelloWorld.s my second assembly program
.data
HelloWorldString: #label
.ascii"Hello World\n"
.text
.globl _start
_start:
#load all the arguments for write()
movl $4, %eax
movl $1, %ebx
movl $HelloWorldString, %ecx
movl $12, %edx
int $0x80
Thanks