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.
17 lines
486 B
17 lines
486 B
#!/usr/bin/bash
|
|
|
|
if [ "$1" == "build" ] || [ "$1" == "run" ]; then
|
|
nasm -fbin bootloader.nasm -o bootloader.bin
|
|
nasm -fbin kernel.nasm -o kernel.bin
|
|
cat bootloader.bin kernel.bin > SingOS.img
|
|
|
|
if [ $1 == "run" ]; then
|
|
#qemu-system-x86_64 -drive format=raw,file=SingOS.img
|
|
#qemu-system-x86_64 -hda SingOS.img
|
|
qemu-system-x86_64 -drive index=0,if=floppy,format=raw,file=SingOS.img
|
|
else
|
|
bash -c "echo;echo;echo 'Press [ENTER] to exit'; read line"
|
|
fi
|
|
fi
|
|
|
|
echo "Done"
|