Added programs to properly test inter-segment file read and write
This commit is contained in:
@@ -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 $@
|
||||
Reference in New Issue
Block a user