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

Contents of /public/oric/demos/SlideShowDemo/osdk_build.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1015 - (show annotations)
Thu Dec 12 20:53:08 2013 UTC (5 years, 11 months ago) by dbug
File MIME type: text/plain
File size: 1921 byte(s)
Archived the latest version of the loader code.
It's still pretty much work in progress, but it would suck that my hard drive dies :p
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\SlideShow.dsk
17
18 :: Create the folders we need
19 md build
20 pushd build
21 md files
22 popd
23
24 :: Build the slide show parts of the demo
25 pushd code
26 call osdk_build.bat
27
28 :: Then this retarded code is called twice in a loop:
29 :: The reason is, that we are including 'loader.cod' inside the loader, but the content is valid only after makedisk created the layout.
30 :: In order to create the layout, makedisk needs to know the files, and their size.
31 :: 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'
32 :: Our (ugly) solution is to assemble the whole thing until it gets stable.
33 :: A possibility is to have makedisk return a crc of the floppy it generated, if the crc is the same twice in a row, then the data is stable...
34
35 set FLOPPYPASS=-
36
37 :Loop
38 echo %FLOPPYPASS%
39 :: Call XA to rebuild the loa
40 ECHO.
41 ECHO Assembling bootsectors
42 %osdk%\bin\xa -DASSEMBLER=XA sector_1-jasmin.asm -o ..\build\files\sector_1-jasmin.o
43 %osdk%\bin\xa -DASSEMBLER=XA sector_2-microdisc.asm -o ..\build\files\sector_2-microdisc.o
44 %osdk%\bin\xa -DASSEMBLER=XA sector_3.asm -o ..\build\files\sector_3.o
45
46 ECHO.
47 ECHO Assembling loader
48 %osdk%\bin\xa -DASSEMBLER=XA loader.asm -o ..\build\files\loader.o
49
50 :: Call Makedisk once to create loader.cod
51 %osdk%\bin\makedisk floppybuilderscript.txt default.dsk
52
53 if "%FLOPPYPASS%"=="--" goto EndLoop
54 set FLOPPYPASS=%FLOPPYPASS%-
55 goto Loop
56
57
58 :EndLoop
59
60
61 :: Call Makedisk another time to build the final disk
62 ECHO.
63 ECHO Building final floppy
64 %osdk%\bin\makedisk floppybuilderscript.txt default.dsk
65 popd
66
67
68 :end
69 pause

  ViewVC Help
Powered by ViewVC 1.1.26