From 9a267d74e4b29a1a3882dc3b77f4ebf7f6af9158 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 18 Jan 2021 17:28:50 +0100 Subject: Added README. --- Makefile | 12 ++++++++++++ README.md | 9 +++++++++ boot.asm | 0 makefile | 12 ------------ 4 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 Makefile create mode 100644 README.md mode change 100755 => 100644 boot.asm delete mode 100755 makefile 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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..d875c83 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +## How to build on GNU/Linux: + +You need to install following packages: + +- nasm (for NASM assembler) +- xorriso (for mkisofs) +- qemu (for qemu-system-x86_64) + +On some distributions `mkisofs` is available as `genisoimage` or `xorriso -as mkisofs`, change your Makefile accordingly. diff --git a/boot.asm b/boot.asm old mode 100755 new mode 100644 diff --git a/makefile b/makefile deleted file mode 100755 index f181ac6..0000000 --- a/makefile +++ /dev/null @@ -1,12 +0,0 @@ -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 -- cgit v1.2.3