Added programs to properly test inter-segment file read and write

This commit is contained in:
2021-08-30 08:11:11 +01:00
parent 703a23dfab
commit a33c25d744
3 changed files with 47 additions and 2 deletions
+6 -2
View File
@@ -1,8 +1,9 @@
disk.img: boot.sector kernel.bin hello.bin
disk.img: boot.sector kernel.bin hello.bin print.bin hello.txt
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
cp *.bin img.d/
cp hello.txt img.d/
umount img.d
chmod 777 disk.img
@@ -13,4 +14,7 @@ kernel.bin: kernel.asm
nasm kernel.asm -o $@
hello.bin: hello.asm
nasm hello.asm -o $@
nasm hello.asm -o $@
print.bin: print.asm
nasm print.asm -o $@