Added program to enter load kernel32.bin, enter Protected Mode, and then execute kernel32.bin

This commit is contained in:
2021-08-31 21:35:16 +01:00
parent 79fa2e4e60
commit 07ef9774c2
2 changed files with 99 additions and 5 deletions
+8 -5
View File
@@ -1,4 +1,4 @@
disk.img: boot.sector kernel.bin hello.bin print.bin hello.txt
disk.img: boot.sector kernel.bin hello.bin print.bin hello.txt boot32.bin
dd if=/dev/zero of=disk.img count=43 bs=100k
dd if=boot.sector of=disk.img conv=notrunc
mount disk.img img.d
@@ -8,13 +8,16 @@ disk.img: boot.sector kernel.bin hello.bin print.bin hello.txt
chmod 777 disk.img
boot.sector: boot.asm
nasm boot.asm -o $@
nasm $< -o $@
kernel.bin: kernel.asm
nasm kernel.asm -o $@
nasm $< -o $@
hello.bin: hello.asm
nasm hello.asm -o $@
nasm $< -o $@
print.bin: print.asm
nasm print.asm -o $@
nasm $< -o $@
boot32.bin: boot32.asm
nasm $< -o $@