add a toy bootloader in real mode of x86
This commit is contained in:
9
related_info/lab1/toybootloader/Makefile
Normal file
9
related_info/lab1/toybootloader/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
all:toy
|
||||
toy.o: toy.S
|
||||
as -o toy.o toy.S
|
||||
toy: toy.o
|
||||
ld --oformat binary -N -e start -Ttext 0x7c00 -o toy toy.o
|
||||
run: toy
|
||||
qemu-system-i386 -fda toy
|
||||
clean:
|
||||
rm toy.o toy
|
||||
Reference in New Issue
Block a user