File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 22setlocal
33
44set PATH = ..\..\Tools\cpmtools;%PATH%
5- set ROMLOC = ..\..\Binary
5+ set BINLOC = ..\..\Binary
6+ set DISKIMG = hd1k_combo.img
67
78if " %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
1114echo .
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
1619if 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!!!
2130echo .
2231goto :eof
2332
2433:nofile
2534echo .
26- echo %ROMLOC % \%1 .rom file not found!!!
35+ echo %BINLOC % \%1 .rom file not found!!!
2736echo .
2837goto :eof
2938
3241echo Usage:
3342echo AddRom romname
3443echo .
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
3645echo .
3746echo Example:
3847echo AddRom RCZ80_std
You can’t perform that action at this time.
0 commit comments