gameboy/compile.bat

49 lines
752 B
Batchfile

@ECHO off
:begin
ECHO.
ECHO Compiling main.asm
ECHO rgbasm -o main.o main.asm
C:\Users\jonatan.SAMSYN\Documents\gb\tools\compiler\rgbasm -o main.o main.asm
IF %ERRORLEVEL% NEQ 0 (
ECHO.
ECHO Error linking, exiting
GOTO eof
)
ECHO.
ECHO Linking main.o
ECHO rgblink -d -o test.gb -m test.map -n test.sym main.o
C:\Users\jonatan.SAMSYN\Documents\gb\tools\compiler\rgblink -o test.gb -m test.map -n test.sym main.o
IF %ERRORLEVEL% NEQ 0 (
ECHO.
ECHO Error linking, exiting
GOTO eof
)
ECHO.
ECHO Touching up
ECHO rgbfix -v -p 0 test.gb
@C:\Users\jonatan.SAMSYN\Documents\gb\tools\compiler\rgbfix -v -p 0 test.gb
IF %ERRORLEVEL% NEQ 0 (
ECHO.
ECHO Error linking, exiting
GOTO eof
)
ECHO.
ECHO DONE
:eof
ECHO.
PAUSE
GOTO begin