CSC231 nasmld script
--D. Thiebaut 09:18, 7 November 2012 (EST)
#! /bin/bash
set -e # exit on error
filename=$(basename "$1")
extension="${filename##*.}"
filename="${filename%.*}"
nasm -f elf -F stabs $filename.asm
ld -o $filename -melf_i386 $filename.o