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 2
2
setlocal
3
3
4
4
set PATH = ..\..\Tools\cpmtools;%PATH%
5
- set ROMLOC = ..\..\Binary
5
+ set BINLOC = ..\..\Binary
6
+ set DISKIMG = hd1k_combo.img
6
7
7
8
if " %1 " == " " goto :usage
8
9
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
10
13
11
14
echo .
12
15
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
15
18
16
19
if errorlevel 1 goto :err
17
20
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
19
22
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!!!
21
30
echo .
22
31
goto :eof
23
32
24
33
:nofile
25
34
echo .
26
- echo %ROMLOC % \%1 .rom file not found!!!
35
+ echo %BINLOC % \%1 .rom file not found!!!
27
36
echo .
28
37
goto :eof
29
38
32
41
echo Usage:
33
42
echo AddRom romname
34
43
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
36
45
echo .
37
46
echo Example:
38
47
echo AddRom RCZ80_std
You can’t perform that action at this time.
0 commit comments