here is the code
from the book programing from the ground up .
When executing the .o file that is compiled and linked .
I get an Error of Segmentaltion Fault and when i use echo $? i get the returned value as 139 .
movl $1, %eax # this is the linux kernel command
# number (system call) for exiting
# a program
movl $0, %ebx # this is the status number we will
# return to the operating system.
# Change this around and it will
# return different things to
# echo $?
int $0x80 # this wakes up the kernel to run
# the exit command
if someone could let me know why us it giving a segmentation fault plus i am using a Unix sun solaris Express and the book is intended for Linux . hope that isnt one of problem dosnt seem so to me anyways .