From 56ad0ca3649361feeb01fb6acbbae6429829917e Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 12 Jan 2021 15:12:38 +0100 Subject: [PATCH] Super simple bootloader --- .gitignore | 2 ++ bootloader.asm | 4 ++++ compile.sh | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 .gitignore create mode 100644 bootloader.asm create mode 100755 compile.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac4d450 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin/ +*.bin diff --git a/bootloader.asm b/bootloader.asm new file mode 100644 index 0000000..d452c43 --- /dev/null +++ b/bootloader.asm @@ -0,0 +1,4 @@ +jmp $ + +times 510-($-$$) db 0 +db 0x55, 0xaa diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..b08422f --- /dev/null +++ b/compile.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +nasm -f bin bootloader.asm -o bootloader.bin