Optimized version of the Synthor software.
It's technically functionally identical, but instead of using DATA statements to generate the binary payload the binary data is directly loaded from disk.
Doing so reduces the size of the program significantly, and reduces the startup time by almost two minutes (down to 5 seconds when loading from disk
@@ -0,0 +1,48 @@ | ||
1 | +@ECHO OFF | |
2 | + | |
3 | + | |
4 | +:: | |
5 | +:: Initial check. | |
6 | +:: Verify if the SDK is correctly configurated | |
7 | +:: | |
8 | +IF "%OSDK%"=="" GOTO ErCfg | |
9 | + | |
10 | + | |
11 | +:: | |
12 | +:: Set the build paremeters | |
13 | +:: | |
14 | +CALL osdk_config.bat | |
15 | + | |
16 | +:: | |
17 | +:: Launch the compilation of files | |
18 | +:: | |
19 | +CALL %OSDK%\bin\make.bat %OSDKFILE% | |
20 | + | |
21 | +CALL %OSDK%\bin\header -a0 -h1 data1.bin build\data1.tap $A000 | |
22 | +CALL %OSDK%\bin\header -a0 -h1 data2.bin build\data2.tap $6B00 | |
23 | + | |
24 | +::pause | |
25 | + | |
26 | +::ECHO ON | |
27 | +ECHO Building DSK file | |
28 | +pushd build | |
29 | +%OSDK%\bin\tap2dsk -iCLS:SYNTHOR2 %OSDKNAME%.TAP data1.tap data2.tap %OSDKNAME%.dsk | |
30 | +%OSDK%\bin\old2mfm %OSDKNAME%.dsk | |
31 | +popd | |
32 | + | |
33 | +GOTO End | |
34 | + | |
35 | + | |
36 | +:: | |
37 | +:: Outputs an error message | |
38 | +:: | |
39 | +:ErCfg | |
40 | +ECHO == ERROR == | |
41 | +ECHO The Oric SDK was not configured properly | |
42 | +ECHO You should have a OSDK environment variable setted to the location of the SDK | |
43 | +IF "%OSDKBRIEF%"=="" PAUSE | |
44 | +GOTO End | |
45 | + | |
46 | + | |
47 | +:End | |
48 | +pause |
@@ -0,0 +1,15 @@ | ||
1 | +@ECHO OFF | |
2 | + | |
3 | +:: | |
4 | +:: Set the build paremeters | |
5 | +:: | |
6 | +SET OSDKNAME=Synthor2 | |
7 | +SET OSDKTAPNAME=Synthor2 | |
8 | + | |
9 | +SET OSDKFILE=Synthor2 | |
10 | +::SET OSDKFILE=sor | |
11 | +SET OSDKDISK=Synthor2 | |
12 | + | |
13 | +SET OSDKINIST="CLS:SYNTHOR2" | |
14 | + | |
15 | + |
@@ -0,0 +1,31 @@ | ||
1 | +@ECHO OFF | |
2 | + | |
3 | +:: | |
4 | +:: Initial check. | |
5 | +:: Verify if the SDK is correctly configurated, | |
6 | +:: | |
7 | +IF "%OSDK%"=="" GOTO ErCfg | |
8 | + | |
9 | +:: | |
10 | +:: Set the build paremeters | |
11 | +:: | |
12 | +CALL osdk_config.bat | |
13 | + | |
14 | +:: | |
15 | +:: Run the emulator using the common batch | |
16 | +:: | |
17 | +CALL %OSDK%\bin\execute.bat | |
18 | +GOTO End | |
19 | + | |
20 | +:: | |
21 | +:: Outputs an error message about configuration | |
22 | +:: | |
23 | +:ErCfg | |
24 | +ECHO == ERROR == | |
25 | +ECHO The Oric SDK was not configured properly | |
26 | +ECHO You should have a OSDK environment variable setted to the location of the SDK | |
27 | +ECHO =========== | |
28 | +IF "%OSDKBRIEF%"=="" PAUSE | |
29 | +GOTO End | |
30 | + | |
31 | +:End |