Update start script

pull/13/head
E. Almqvist 4 years ago
parent 54c7144a92
commit e6f439748c
  1. 2
      src/bootloader.asm
  2. 13
      start.sh

@ -51,5 +51,5 @@ times 510-($-$$) db 0
db 0x55, 0xaa ; magic BIOS numbers
; Bloat bytes to test reading
times 128 dw 0xe, 0xf
times 256 dw 0xe
times 256 dw 0xa

@ -1,2 +1,13 @@
#!/usr/bin/bash
qemu-system-x86_64 bin/bootloader.bin
bootloader=bin/bootloader.bin
start_bootloader() {
qemu-system-x86_64 $bootloader
}
if test -f "$PWD/$bootloader" then
start_bootloader
else
/usr/bin/bash $PWD/compile.sh && start_bootloader
fi

Loading…
Cancel
Save