-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
42 lines (36 loc) · 1.01 KB
/
Copy pathbuild.bat
File metadata and controls
42 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
REM ============================================================
REM TinyBootloader v2.0 - Build-Skript
REM ============================================================
REM Voraussetzung: NASM (Netwide Assembler) im PATH
REM Download: https://www.nasm.us/pub/nasm/releasebuilds/
REM ============================================================
echo.
echo TinyBootloader v2.0
echo =====================
echo.
REM Pruefen ob NASM existiert
where nasm >nul 2>&1
if %errorlevel% neq 0 (
echo [FEHLER] NASM nicht gefunden!
echo Bitte installiere NASM: https://www.nasm.us/
echo.
pause
exit /b 1
)
echo [1/2] Assembliere bootloader.asm...
nasm -f bin -o tinyboot.img bootloader.asm
if %errorlevel% neq 0 (
echo [FEHLER] Assembly fehlgeschlagen!
pause
exit /b 1
)
echo [2/2] Berechne Image-Groesse...
for %%I in (tinyboot.img) do set IMG_SIZE=%%~zI
echo -> tinyboot.img (%IMG_SIZE% Bytes / %IMG_SIZE:~0,-1% KB)
echo.
echo [OK] Build erfolgreich!
echo.
echo Starte mit: run.bat
echo.
pause