gameboy/compile.bat

50 lines
749 B
Batchfile
Raw Normal View History

2019-06-14 08:36:52 +00:00
@ECHO off
2019-06-18 09:08:14 +00:00
:begin
2019-06-14 08:36:52 +00:00
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
2019-06-18 09:08:14 +00:00
ECHO rgblink -o test.gb -m test.map -n test.sym main.o
2019-06-14 08:36:52 +00:00
2019-06-18 09:08:14 +00:00
C:\Users\jonatan.SAMSYN\Documents\gb\tools\compiler\rgblink -o test.gb -m test.map -n test.sym main.o
2019-06-14 08:36:52 +00:00
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
2019-06-18 09:08:14 +00:00
GOTO begin