diff --git a/.gitignore b/.gitignore index 045c54d..ce571f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.bin *.img +*.sector img.d/ \ No newline at end of file diff --git a/Makefile b/Makefile index 1b481dc..5adfe4f 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,16 @@ -disk.img: boot.bin kernel.bin +disk.img: boot.sector kernel.bin hello.bin dd if=/dev/zero of=disk.img count=43 bs=100k - dd if=boot.bin of=disk.img conv=notrunc + dd if=boot.sector of=disk.img conv=notrunc mount disk.img img.d - cp kernel.bin img.d + cp *.bin img.d/ umount img.d chmod 777 disk.img -boot.bin: boot.asm +boot.sector: boot.asm nasm boot.asm -o $@ kernel.bin: kernel.asm nasm kernel.asm -o $@ + +hello.bin: hello.asm + nasm hello.asm -o $@ \ No newline at end of file