Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
856f45c228 | 7 years ago |
|
2f6d427fd3 | 7 years ago |
|
d55e31b08c | 7 years ago |
|
91bc53bb87 | 7 years ago |
|
4b8a758262 | 7 years ago |
6 changed files with 107 additions and 73 deletions
@ -1,17 +1,12 @@
|
||||
#!/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 |
||||
defines="-d DEBUG_32_GRAPHICS" |
||||
if nasm -fbin $defines bootloader.nasm -o bootloader.bin \ |
||||
&& nasm -fbin $defines kernel.nasm -o kernel.bin |
||||
then |
||||
cat bootloader.bin kernel.bin > SingOS.img |
||||
qemu-system-x86_64 -soundhw pcspk -m 2M -drive index=0,format=raw,file=SingOS.img |
||||
else |
||||
echo "*** THERE WERE ERRORS ***" |
||||
read |
||||
fi |
Loading…
Reference in new issue