-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19ac905
commit 42d4401
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
@echo off | ||
title Choacury compiler for WINDOWS | ||
title Choacury Compiler WINDOWS version | ||
rem Start making stuff | ||
echo Compiling file(s)... | ||
nasm -f bin src/boot/boot.asm -o boot.bin | ||
nasm -f bin src/kernel/kernel.asm -o kernasm.bin | ||
copy /b boot.bin + kernasm.bin Choacury.flp | ||
rem Add some code for when the rest of the code is ready ;-) | ||
wsl nasm -f elf32 src/kernel/krnentry.asm -o krnent.o | ||
wsl gcc -m32 -c src/kernel/kernel.c -o krnc.o | ||
wsl gcc -m32 -c src/drivers/ports.c -o drivport.o | ||
wsl gcc -m32 -c src/drivers/idt.c -o drividt.o | ||
wsl gcc -m32 -c src/drivers/utils.c -o driv_utils.o | ||
wsl gcc -m32 -c src/drivers/vga.c -o driv_vga.o | ||
wsl ld -m elf_i386 -T src/linker.ld --allow-multiple-definition -o kernel krnent.o krnc.o drivport.o drividt.o driv_utils.o driv_vga.o | ||
echo Booting into QEMU | ||
qemu-system-x86_64 -fda Choacury.flp | ||
qemu-system-x86_64 -kernel kernel |