Just starting to study assembly. The following code runs but I'm also getting a notice 'Segmentation fault'. I thought it might have to do with the number of bytes but that doesn't seem to be the issue.
#HelloWorld.s my second assembly program
.ascii "Hello World\n"
#load all the arguments for write()
movl $4, %eax
movl $1, %ebx
movl $HelloWorldString, %ecx
movl $12, %edx