colorful rat Ratfactor.com > Dave's Repos

pftgu_nasm

NASM ports of exercises from "Programming from the Ground Up"
git clone http://ratfactor.com/repos/pftgu_nasm/pftgu_nasm.git

pftgu_nasm/go.sh

Download raw file: go.sh

1 #!/bin/sh 2 3 set -e # exit this script upon error 4 5 mkdir -p bin_out 6 7 # -g adds debugging info 8 nasm -f elf32 -g -o $1.o $1.asm 9 ld -m elf_i386 $1.o -o bin_out/$1 10 rm $1.o 11 12 set +e # do not exit on error 13 14 ./bin_out/$1 15 echo "Exited with code: $?"