You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
520 B
19 lines
520 B
#!/usr/bin/bash |
|
|
|
AsmFile=bootloader.nasm |
|
# AsmFile=write_self.nasm |
|
|
|
BuildSteps=( |
|
"nasm ${AsmFile} -f bin -o boot.bin" |
|
"dd bs=512 count=2880 if=/dev/zero of=./Floppy.img" |
|
"dd conv=notrunc if=./boot.bin of=./Floppy.img" |
|
# "gcc -O0 -o ./VGA/grdemo.o ./VGA/grdemo.c" |
|
# "objcopy -O binary ./VGA/grdemo.o ./grdemo.bin" |
|
"qemu-system-x86_64 -vga cirrus -drive format=raw,file=Floppy.img" |
|
# "bochs" |
|
) |
|
|
|
for cmd in "${BuildSteps[@]}"; do |
|
echo -e "\033[1;34m${cmd}\033[0m" |
|
if ! eval $cmd ; then read line ; break; fi |
|
done
|
|
|