Skip to content

Commit 8f7df55

Browse files
committed
initial commit
0 parents  commit 8f7df55

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

asm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
file=${1?
4+
pls give file name as an argument!
5+
6+
example:
7+
asm file_name
8+
}
9+
10+
nasm -f elf64 -o $file.o $file.asm
11+
12+
ld $file.o -o $file
13+
14+
rm $file.o
15+
16+
./$file

install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
!#/usr/bin/env bash
2+
3+
echo "installing dependencies..."
4+
5+
apt-get install nasm ld
6+
7+
cp asm /usr/bin/asm
8+
9+
cd /usr/bin/asm
10+
11+
ln -s /usr/bin/asm /usr/bin/asm
12+
13+
chmod +x asm
14+
15+

uninstall.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
!#/usr/bin/env bash
2+
3+
cd ..
4+
5+
rm -r "Assembly Compiler"
6+
7+
cd /usr/bin
8+
9+
rm asm
10+
11+
echo "uninstlled succesfully!"

0 commit comments

Comments
 (0)