/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/sample/floppybuilder/code/floppybuilderscript.txt
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/sample/floppybuilder/code/floppybuilderscript.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1343 - (show annotations)
Thu Jan 7 18:57:50 2016 UTC (4 years, 1 month ago) by dbug
File MIME type: text/plain
File size: 3029 byte(s)
Simplified version of the FloppyBuilder sample code with a new api.
1 ;
2 ; Here is the current documentation for the description script.
3 ; - This file describes what goes on the floppy itself, list of files, boot sectors, locations, ...
4 ; - The result is stored in a description file which along with the loader code allows the user to load data.
5 ;
6 ; Syntax:
7 ; - Anything at the right of a ; is ignored (commented out)
8 ; - {FileIndex} is replaced at generation time by the current internal file index, practical for defines generation
9 ;
10 ; Things to do:
11 ; - Be able to define the format of the floppy we want in this file (number of tracks, sectors, sizes)
12 ; - Suppress the need for a source floppy to clone from
13 ; - Have a 0/1 parameter for the multiple calls to the tool, with only the last one needing the files
14 ; - Support for tap files (auto-detect loading area)
15 ; - Support for file compression in the tool
16 ; - Possibility to do partial loads, saves, depacking in realtime
17 ;
18 ;LoadDiskTemplate default.dsk
19 DefineDisk 2 42 17 ; 2 sides, 42 tracks, 17 sectors
20
21 OutputLayoutFile floppy_description.h
22 OutputFloppyFile ..\build\FloppyBuilderSample.dsk
23
24 ;AddDefine LOADER_SHOW_DEBUGINFO 1
25 ;AddDefine ENABLE_TIMING_DEBUGGING 1
26
27 ;
28 ; This defines the bootsectors to use for the various operating systems
29 ; - Jasmin loads the sector 1 of track zero in $400 and then runs it.
30 ; - Microdisc loads the sector 2 of track zero, the address is different on Atmos and Telestrat
31 ; - The system requires a third sector containing valid data
32 ;
33 ; Since we do not yet have a valid Jasmin reading code, all this bootsector will do is to
34 ; write a message saying that this floppy needs to be booted on a Microdisc compatible system.
35 ;
36 SetPosition 0 1
37 WriteSector ..\build\files\sector_1-jasmin.o ; Sector 1
38 WriteSector ..\build\files\sector_2-microdisc.o ; Sector 2
39 WriteSector ..\build\files\sector_3.o ; Sector 3
40
41 ;
42 ; Now here is the loader code, that one is Microdisc only
43 ;
44 SetPosition 0 4
45 AddFile ..\build\files\loader.o $fd00 ; Sector 4
46
47 ;
48 ; From now on we compress data (The loader should not be compressed)
49 ;
50 SetCompressionMode FilePack ; So far only two modes: 'None' and 'FilePack'
51
52 ;
53 ; Then the files used in the demo
54 ;
55 AddDefine LOADER_PROGRAM_FIRST {FileIndex}
56 AddFile ..\build\files\FirstProgram.o $c000 ; The "First program" picture
57
58 AddDefine LOADER_PROGRAM_SECOND {FileIndex}
59 AddFile ..\build\files\SecondProgram.o $c000 ; The "Second program" picture
60
61 ;
62 ; The fonts
63 ;
64 AddDefine LOADER_FONT_6x8 {FileIndex}
65 AddFile ..\build\files\Font6x8.hir $9900 ; 9900=STD, 9D00=ALT
66
67 ;
68 ; Some reserved sectors
69 ;
70 ReserveSectors 6 ; 5 sectors
71
72 ;
73 ; The pictures
74 ;
75 AddDefine LOADER_PICTURE_FIRSTPROGRAM {FileIndex}
76 AddFile ..\build\files\FirstProgram.hir $a000
77 AddDefine LOADER_PICTURE_FIRSTPROGRAM_SIZE {FileSize}
78
79 AddDefine LOADER_PICTURE_SECONDPROGRAM {FileIndex}
80 AddFile ..\build\files\SecondProgram.hir $a000
81 AddDefine LOADER_PICTURE_SECONDPROGRAM_SIZE {FileSize}
82
83

  ViewVC Help
Powered by ViewVC 1.1.26