Skip to content

Commit

Permalink
Create compile-asm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kphongagsorn authored Jan 7, 2018
1 parent e03d2c7 commit 95450ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assignment4/compile-asm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

echo '[+] Assembling with Nasm ... '
nasm -f elf32 -o $1.o $1.asm

echo '[+] Linking ...'
ld -o $1 $1.o

echo '[+] Done!'

0 comments on commit 95450ae

Please sign in to comment.