aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-01-18 17:28:50 +0100
committerMateja <mail@matejamaric.com>2021-01-18 17:28:50 +0100
commit9a267d74e4b29a1a3882dc3b77f4ebf7f6af9158 (patch)
tree0a22ba7bbf0d171619e87a04f42cd0090f6bc300 /Makefile
parent442a09d1d6d356c2990f9c1573aa2840297f92da (diff)
downloadbootloader-master.tar.gz
bootloader-master.zip
Added README.HEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f181ac6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+boot.bin: boot.asm
+ nasm -f bin boot.asm -o boot.bin
+all: boot.bin
+ truncate boot.bin -s 1200k
+ mkisofs -o boot.iso -b boot.bin ./
+ dd if=boot.bin of=boot.flp bs=512 count=2880
+clean:
+ rm boot.bin
+ rm boot.iso
+ rm boot.flp
+run: boot.bin
+ qemu-system-x86_64 boot.bin