2017-04-08 07:22:21 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
echo Copying fresh ROM...
|
2015-03-13 23:07:03 +00:00
|
|
|
copy /Y m12fresh.gba m12.gba
|
2017-04-08 07:22:21 +01:00
|
|
|
|
2018-11-27 03:22:25 +00:00
|
|
|
:: Compile text files
|
|
|
|
echo Compiling text files...
|
|
|
|
pushd ScriptTool\ScriptTool\bin\Debug
|
|
|
|
ScriptTool.exe -compile -main -misc "..\..\..\..\working" "..\..\..\..\eb.smc" "..\..\..\..\m12fresh.gba"
|
|
|
|
popd
|
|
|
|
|
2017-04-17 00:04:22 +01:00
|
|
|
:: Assemble includes
|
|
|
|
echo Assembling includes...
|
|
|
|
pushd working
|
|
|
|
..\armips.exe m12-includes.asm -sym includes-symbols.sym
|
|
|
|
popd
|
|
|
|
|
2017-04-08 07:22:21 +01:00
|
|
|
:: Compile all C and ASM code
|
|
|
|
echo Compiling and assembling...
|
|
|
|
pushd compiled
|
|
|
|
Amalgamator\Amalgamator\bin\Debug\Amalgamator.exe -r m12.gba -c 0x8100000 -d "../" -i vwf.c ext.c
|
|
|
|
popd
|
2017-04-11 06:16:34 +01:00
|
|
|
if errorlevel 1 (pause && goto :eof)
|
2017-04-08 07:22:21 +01:00
|
|
|
|
2017-04-17 00:04:22 +01:00
|
|
|
SymbolTableBuilder\SymbolTableBuilder\bin\Debug\symbols.exe m12.sym armips-symbols.sym working/includes-symbols.sym
|
2017-04-08 07:22:21 +01:00
|
|
|
|
|
|
|
echo Success!
|