/[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 1024 - (show annotations)
Sun Dec 15 09:42:42 2013 UTC (5 years, 9 months ago) by dbug
File MIME type: text/plain
File size: 1936 byte(s)
Generic clean-up of the loader code, moved the vectors at the end of the file so they get auto-magically setup when the loader is installed in memory.
Fixed a bug in the bootsector which did not actually know the actual length of the loader.
First transition effect (simple top/bottom copy), makes the whole thing feel smoother.
New LoaderAPI command: _SetLoadAddress, can be used to override the location of where files get loaded.
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
27 :: Then this retarded code is called twice in a loop:
28 :: The reason is, that we are including 'loader.cod' inside the loader, but the content is valid only after makedisk created the layout.
29 :: In order to create the layout, makedisk needs to know the files, and their size.
30 :: 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'
31 :: Our (ugly) solution is to assemble the whole thing until it gets stable.
32 :: 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...
33
34 set FLOPPYPASS=-
35
36 :Loop
37 echo %FLOPPYPASS%
38 :: Call XA to rebuild the loa
39 ECHO.
40 ECHO Assembling bootsectors
41 %osdk%\bin\xa -DASSEMBLER=XA sector_1-jasmin.asm -o ..\build\files\sector_1-jasmin.o
42 %osdk%\bin\xa -DASSEMBLER=XA sector_2-microdisc.asm -o ..\build\files\sector_2-microdisc.o
43 %osdk%\bin\xa -DASSEMBLER=XA sector_3.asm -o ..\build\files\sector_3.o
44
45 ECHO.
46 ECHO Assembling loader
47 %osdk%\bin\xa -DASSEMBLER=XA loader.asm -o ..\build\files\loader.o
48
49 ECHO.
50 ECHO Assembling main program
51 call osdk_build.bat
52
53 :: Call Makedisk once to create loader.cod
54 %osdk%\bin\makedisk floppybuilderscript.txt
55
56 if "%FLOPPYPASS%"=="--" goto EndLoop
57 set FLOPPYPASS=%FLOPPYPASS%-
58 goto Loop
59
60
61 :EndLoop
62
63
64 :: Call Makedisk another time to build the final disk
65 ECHO.
66 ECHO Building final floppy
67 %osdk%\bin\makedisk floppybuilderscript.txt
68 popd
69
70
71 :end
72 pause

  ViewVC Help
Powered by ViewVC 1.1.26