Skip to content
Snippets Groups Projects
assemble.sh 208 B
#!/bin/bash

# assemble and link
for filename in ./output/*.s; do
    /u/cs444/bin/nasm -O1 -f elf -g -F dwarf $filename
done
ld -melf_i386 -o main output/*.o

# run main
./main

# echo the exit code
echo $?