mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
- Post-processing of disk-hosted ROMs such as FZ80 and ZRC has been modified to handle custom user configurations. - Standardized all distribution ROM names to end in _std.
27 lines
1.0 KiB
Batchfile
27 lines
1.0 KiB
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set TOOLS=../../Tools
|
|
|
|
set PATH=%TOOLS%\srecord;%PATH%
|
|
|
|
for %%f in (..\..\Binary\RCZ180_z1rcc_*.rom) do call :build %%~nf
|
|
|
|
goto :eof
|
|
|
|
:build
|
|
echo.
|
|
echo Creating %1 disk image...
|
|
echo.
|
|
|
|
srec_cat -generate 0x0 0x100000 --constant 0x00 -o temp.dat -binary
|
|
srec_cat temp.dat -binary -exclude 0x0 0x200 z1rcc_cfldr.bin -binary -o temp.dat -binary
|
|
srec_cat temp.dat -binary -exclude 0x1B8 0x200 z1rcc_ptbl.bin -binary -offset 0x1B8 -o temp.dat -binary
|
|
srec_cat temp.dat -binary -exclude 0x1F000 0x20000 z1rcc_mon.bin -binary -offset 0x1F000 -o temp.dat -binary
|
|
srec_cat temp.dat -binary -exclude 0x24000 0xA4000 ..\..\Binary\%1.rom -binary -offset 0x24000 -o temp.dat -binary
|
|
move temp.dat ..\..\Binary\%1_hd1k_prefix.dat
|
|
|
|
copy /b ..\..\Binary\%1_hd1k_prefix.dat + ..\..\Binary\hd1k_cpm22.img + ..\..\Binary\hd1k_zsdos.img + ..\..\Binary\hd1k_nzcom.img + ..\..\Binary\hd1k_cpm3.img + ..\..\Binary\hd1k_zpm3.img + ..\..\Binary\hd1k_ws4.img ..\..\Binary\%1_hd1k_combo.img || exit /b
|
|
|
|
goto :eof
|