-
Notifications
You must be signed in to change notification settings - Fork 4
/
quickrom.bat
32 lines (32 loc) · 985 Bytes
/
quickrom.bat
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
@echo off
rem build with Wine: wine cmd /c build.bat
setlocal enabledelayedexpansion enableextensions
cd /d %~dp0
mkdir out
set MDSDATA=%1
echo Found files: %MDSDATA%
if not exist %MDSDATA% goto nofile
echo Found files: %MDSDATA%
echo Make mdsseq.bin and mdspcm.bin ...
tools\mdslink.exe -o "out/mdsseq.bin" "out/mdspcm.bin" -i "out/mdsseq.inc" -h "out/mdsseq.h" %MDSDATA% > out\error.txt
if %ERRORLEVEL% neq 0 goto error
echo Make mdssub.bin ...
tools\sjasmplus.exe src\mdssub.z80 --raw=out\mdssub.bin --lst=out\mdssub.lst >out\error.txt
if %ERRORLEVEL% neq 0 goto error
echo Make mdssub.slz ...
tools\salvador.exe out\mdssub.bin out\mdssub.zx0
if %ERRORLEVEL% neq 0 goto error
echo Make %~n1.bin ...
tools\asm68k.exe /k /p /o ae- src\main.68k, %~dpn1.bin >out\error.txt, , out\main.lst
if %ERRORLEVEL% neq 0 goto error
echo All done!
goto eof
:error
type out\error.txt
pause
goto eof
:nofile
echo Usage: quickrom [path_to_MDS].
echo You can drag and drop to generate a rom
pause
:eof