/[projet1]/public/oric/demos/30years/osdk_build.bat
Defence Force logotype

Contents of /public/oric/demos/30years/osdk_build.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1120 - (show annotations)
Sat Mar 29 20:13:28 2014 UTC (5 years, 8 months ago) by dbug
File MIME type: text/plain
File size: 2628 byte(s)
Born In 1983 v1.1
- Added the nfo file
- Modified the code to use the new floppy builder
- Fixed a minor bug in the rasters in the intro
1 ::@ECHO OFF
2 setlocal
3
4 ::
5 :: Initial check.
6 :: Verify if the SDK is correctly configurated
7 ::
8 IF "%OSDK%"=="" GOTO ErCfg
9
10 ::
11 :: Set the build paremeters
12 ::
13 CALL osdk_config.bat
14
15 :: Delete the floppy, just to be sure
16 del build\BORN1983.dsk
17
18 :: Create the folders we need
19 md build
20 pushd build
21 md files
22 popd
23
24 ::
25 :: Build the intro/demo first.
26 :: The loading of parts is done in the loader itself so we have no internal dependencies there.
27 ::
28 ECHO.
29 ECHO Assembling intro program
30 pushd part_hires_picture
31 call osdk_build.bat
32 popd
33
34 ECHO.
35 ECHO Assembling motherboard intro
36 pushd part_motherboard_scroller
37 call osdk_build.bat
38 popd
39
40
41 :: Build the loader
42 pushd disk_system
43
44 :: Then this retarded code is called twice in a loop:
45 :: The reason is, that we are including 'loader.cod' inside the loader, but the content is valid only after FloppyBuilder created the layout.
46 :: In order to create the layout, FloppyBuilder needs to know the files, and their size.
47 :: In order to know their size, it needs to find them, which means they have to exist, which means they have to be assembled, which is not doable without a valid 'loader.cod'
48 :: Our (ugly) solution is to assemble the whole thing until it gets stable.
49 :: A possibility is to have FloppyBuilder return a crc of the floppy it generated, if the crc is the same twice in a row, then the data is stable...
50
51 :: Call FloppyBuilder once to create loader.cod
52 %osdk%\bin\FloppyBuilder init floppybuilderscript.txt
53 popd
54
55 set FLOPPYPASS=-
56
57 :Loop
58 echo %FLOPPYPASS%
59
60
61 pushd disk_system
62 :: Call XA to rebuild the loa
63 ECHO.
64 ECHO Assembling bootsectors
65 %osdk%\bin\xa -DASSEMBLER=XA sector_1-jasmin.asm -o ..\build\files\sector_1-jasmin.o
66 IF ERRORLEVEL 1 GOTO Error
67 %osdk%\bin\xa -DASSEMBLER=XA sector_2-microdisc.asm -o ..\build\files\sector_2-microdisc.o
68 IF ERRORLEVEL 1 GOTO Error
69 %osdk%\bin\xa -DASSEMBLER=XA sector_3.asm -o ..\build\files\sector_3.o
70 IF ERRORLEVEL 1 GOTO Error
71
72 ECHO.
73 ECHO Assembling loader
74 %osdk%\bin\xa -DASSEMBLER=XA loader.asm -o ..\build\files\loader.o
75 IF ERRORLEVEL 1 GOTO Error
76 popd
77
78 ::SET OSDKDISK=
79
80 :: Call FloppyBuilder once to create loader.cod
81 pushd disk_system
82 %osdk%\bin\FloppyBuilder build floppybuilderscript.txt
83 popd
84
85 if "%FLOPPYPASS%"=="--" goto EndLoop
86 set FLOPPYPASS=%FLOPPYPASS%-
87 goto Loop
88
89
90 :EndLoop
91
92
93 :: Call FloppyBuilder another time to build the final disk
94 ECHO.
95 ECHO Building final floppy
96 pushd disk_system
97 %osdk%\bin\FloppyBuilder build floppybuilderscript.txt
98 popd
99 goto End
100
101 :Error
102 ECHO.
103 ECHO An Error has happened. Build stopped
104
105 :End
106 pause

  ViewVC Help
Powered by ViewVC 1.1.26