First commit
This commit is contained in:
commit
62e1d36c38
23 files changed
+2501
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/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"
|
||||
Reference in new issue
Block a user