luxos/SysBoot/stage1/make.bat

23 lines
478 B
Batchfile

@echo off
set nasm_path=C:\nasm
set djgpp_path=C:\DJGPP\bin
goto build
:error
@echo.
@echo There have been build errors. Building halted.
@pause
exit
:build
@echo Compiling stage 1...
del bootload.bin
%nasm_path%\nasm.exe -f bin bootload.asm -o bootload.bin
:check
if not exist bootload.bin goto error
:copy
@echo Writing stage 1 to floppy boot sector...
debug bootload.bin <..\..\scripts\stage1d >nul