-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
21 lines (14 loc) · 978 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
set PATH=C:\mingw-w64\i686-7.2.0-win32-dwarf-rt_v5-rev1\mingw32\bin
del /q out\*.*
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\entry.o entry.c
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\common.o common.c
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\screen.o screen.c
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\memsetup.o memsetup.c
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\hw.o hw.c
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\test.o test.c
gcc.exe -ffreestanding -c -fomit-frame-pointer -masm=intel -o out\main.o main.c
ld.exe -s -Ttext 0xA000 --file-alignment 1 --section-alignment 1 -o out\memtest.bin out\entry.o out\common.o out\screen.o out\memsetup.o out\hw.o out\test.o out\main.o
objcopy.exe out\memtest.bin -O binary
copy /b startup.bin + out\memtest.bin out\memtest
pause