bblsort2.s
contents ::
  bblsortc.c
  bblsortm.c
  bblsort2.s

.data                                   # section declaration

msg:
        .string "I am major dad!\n"       # our dear string
        len = . - msg                   # length of our dear string

.text                                   # section declaration

                       
.global bubblesort   
                       

bubblesort:

# write our string to stdout

        movl    $len,%edx       # third argument: message length
        movl    $msg,%ecx       # second argument: pointer to message to write
        movl    $1,%ebx         # first argument: file handle (stdout)
        movl    $4,%eax         # system call number (sys_write)
        int     $0x80           # call kernel
         ret                           # for the sake of creating a working program :         )
# and exit

        movl    $0,%ebx         # first argument: exit code
        movl    $1,%eax         # system call number (sys_exit)
        int     $0x80           # call kernel

James Little