call c 32bit code

This commit is contained in:
2022-02-27 20:03:19 +01:00
parent e77248f8e9
commit a0e745b6b5
4 changed files with 93 additions and 4 deletions

View File

@ -1,6 +1,7 @@
all:
as -o boot.o boot.s
ld -o boot.bin --oformat binary -e init boot.o
gcc -nostdinc -nostdlib -ffreestanding -c main.c -o theObjectCode.o
ld -o boot.bin -Ttext 0x0 --oformat binary -e init boot.o theObjectCode.o
run:
qemu-system-x86_64 boot.bin