#!/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 index=0,format=raw,file=SingOS.img
|
|
# else
|
|
# bash -c "echo;echo;echo 'Press [ENTER] to exit'; read line"
|
|
# fi
|
|
# fi
|
|
|
|
# echo "Done"
|
|
|
|
sh build.sh
|