Skip to content

Commit 4417f87

Browse files
committed
Update AddRom.cmd
- Minor improvements
1 parent 1c10f73 commit 4417f87

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

Source/Images/AddRom.cmd

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,37 @@
22
setlocal
33

44
set PATH=..\..\Tools\cpmtools;%PATH%
5-
set ROMLOC=..\..\Binary
5+
set BINLOC=..\..\Binary
6+
set DISKIMG=hd1k_combo.img
67

78
if "%1"=="" goto :usage
89

9-
if not exist %ROMLOC%\%1.rom goto :nofile
10+
if not exist %BINLOC%\%DISKIMG% goto :noimage
11+
12+
if not exist %BINLOC%\%1.rom goto :nofile
1013

1114
echo.
1215

13-
cpmrm.exe -f wbw_hd1k_0 %ROMLOC%/hd1k_combo.img 0:rom.img
14-
cpmcp.exe -f wbw_hd1k_0 %ROMLOC%/hd1k_combo.img %ROMLOC%/%1.rom 0:rom.img
16+
cpmrm.exe -f wbw_hd1k_0 %BINLOC%/%DISKIMG% 0:rom.img
17+
cpmcp.exe -f wbw_hd1k_0 %BINLOC%/%DISKIMG% %BINLOC%/%1.rom 0:rom.img
1518

1619
if errorlevel 1 goto :err
1720

18-
::cpmls.exe -f wbw_hd1k_0 %ROMLOC%/hd1k_combo.img 0:rom.img
21+
::cpmls.exe -f wbw_hd1k_0 %BINLOC%/%DISKIMG% 0:rom.img
1922

20-
echo %1.rom has been added to hd1k_combo.img in user area 0
23+
echo %1.rom has been added to %DISKIMG% as ROM.IMG in user area 0
24+
echo.
25+
goto :eof
26+
27+
:noimage
28+
echo.
29+
echo %BINLOC%\%DISKIMG% file not found!!!
2130
echo.
2231
goto :eof
2332

2433
:nofile
2534
echo.
26-
echo %ROMLOC%\%1.rom file not found!!!
35+
echo %BINLOC%\%1.rom file not found!!!
2736
echo.
2837
goto :eof
2938

@@ -32,7 +41,7 @@ echo.
3241
echo Usage:
3342
echo AddRom romname
3443
echo.
35-
echo romname is the root filename of an existing ROM image in the %ROMLOC% directory
44+
echo romname is the root filename of an existing ROM image in the %BINLOC% directory
3645
echo.
3746
echo Example:
3847
echo AddRom RCZ80_std

0 commit comments

Comments
 (0)