/[projet1]/public/oric/demos/Zerofx/code/floppy_description.h
Defence Force logotype

Contents of /public/oric/demos/Zerofx/code/floppy_description.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1382 - (show annotations)
Sun Oct 2 11:51:11 2016 UTC (3 years, 7 months ago) by dbug
File MIME type: text/plain
File size: 4772 byte(s)
Updated the ZeroFx code to use the new version of the FloppyBuilder.
Required changes were:

Description Script:
- Adding a 'FormatVersion 0.20' to the description file
- Adding defines for the location of the sector buffer and zero page locations
- Replacing AddFile by WriteLoader for the loader file
- Moving all the AddDefine AFTER the AddFile they are related to
- Removing the load address from all the AddFiles (because in all cases the loading code knows it)
- Adding some AddDefines to export useful information directly into the header files instead of wasting room in a binary table

Files:
- Removed the disk_info.h (all the relevant data is present in the boot sectors and loaders, a bit redundant, but less fragile)

Api:
- The exported table is still available, but it is now in loader_api.s
- LoadFile is now "LoadFileAt" and requires a loading address (which can be added in the description script and exported, just use AddDefine MY_EXPORTEDLOADINGADRESS_WHATEVER 0xA000)
- LoadFile and SetFileAddress are gone

1 //
2 // Floppy layout generated by FloppyBuilder 1.0
3 //
4
5 #ifdef ASSEMBLER
6 //
7 // Information for the Assembler
8 //
9 #ifdef LOADER
10 FileStartSector .byt 134,139,142,144,134,139,145,135,138,144,139,145,141,145,129,132,138,144
11 FileStartTrack .byt 0,2,2,2,3,3,3,4,5,5,6,6,7,7,8,8,8,8
12 FileSizeLow .byt <36176,<760,<576,<6000,<2080,<8000,<8000,<8000,<5680,<5680,<5680,<10000,<2140,<450,<792,<5680,<8000,<6750
13 FileSizeHigh .byt >36176,>760,>576,>6000,>2080,>8000,>8000,>8000,>5680,>5680,>5680,>10000,>2140,>450,>792,>5680,>8000,>6750
14 #undef LOADER
15 #endif // LOADER
16 #undef ASSEMBLER
17 #else
18 //
19 // Information for the Compiler
20 //
21 #endif
22
23 //
24 // Summary for this floppy building session:
25 //
26 #define FLOPPY_SIDE_NUMBER 2 // Number of sides
27 #define FLOPPY_TRACK_NUMBER 42 // Number of tracks
28 #define FLOPPY_SECTOR_PER_TRACK 17 // Number of sectors per track
29
30 #define FLOPPY_LOADER_TRACK 0 // Track where the loader is stored
31 #define FLOPPY_LOADER_SECTOR 4 // Sector where the loader is stored
32 #define FLOPPY_LOADER_ADDRESS 65024 // Address where the loader is loaded on boot ($fe00)
33
34 //
35 // List of files written to the floppy
36 //
37 // Entry #0 '..\build\files\slideshow.o'
38 // - Starts on track 0 sector 6 and is 39 sectors long (9859 compressed bytes: 27% of 36176 bytes).
39 // Entry #1 '..\build\files\Font6x8_ArtDeco.hir'
40 // - Starts on track 2 sector 11 and is 3 sectors long (560 compressed bytes: 73% of 760 bytes).
41 // Entry #2 '..\build\files\Font6x6.hir'
42 // - Starts on track 2 sector 14 and is 2 sectors long (447 compressed bytes: 77% of 576 bytes).
43 // Entry #3 '..\build\files\logos_3x120x100.hir'
44 // - Starts on track 2 sector 16 and is 7 sectors long (1598 compressed bytes: 26% of 6000 bytes).
45 // Entry #4 '..\build\files\kindergarden_240.hir'
46 // - Starts on track 3 sector 6 and is 5 sectors long (1080 compressed bytes: 51% of 2080 bytes).
47 // Entry #5 '..\build\files\logo_defenceforce.hir'
48 // - Starts on track 3 sector 11 and is 6 sectors long (1413 compressed bytes: 17% of 8000 bytes).
49 // Entry #6 '..\build\files\demo_credits-fra-out.hir'
50 // - Starts on track 3 sector 17 and is 7 sectors long (1775 compressed bytes: 22% of 8000 bytes).
51 // Entry #7 '..\build\files\cake_no_flames.hir'
52 // - Starts on track 4 sector 7 and is 20 sectors long (5087 compressed bytes: 63% of 8000 bytes).
53 // Entry #8 '..\build\files\party_outside.hir'
54 // - Starts on track 5 sector 10 and is 6 sectors long (1307 compressed bytes: 23% of 5680 bytes).
55 // Entry #9 '..\build\files\badestamp.hir'
56 // - Starts on track 5 sector 16 and is 12 sectors long (2834 compressed bytes: 49% of 5680 bytes).
57 // Entry #10 '..\build\files\big_screen.hir'
58 // - Starts on track 6 sector 11 and is 6 sectors long (1503 compressed bytes: 26% of 5680 bytes).
59 // Entry #11 '..\build\files\small_size_screens.hir'
60 // - Starts on track 6 sector 17 and is 13 sectors long (3288 compressed bytes: 32% of 10000 bytes).
61 // Entry #12 '..\build\files\screens_60x50.hir'
62 // - Starts on track 7 sector 13 and is 4 sectors long (954 compressed bytes: 44% of 2140 bytes).
63 // Entry #13 '..\build\files\flame_anim_strip.hir'
64 // - Starts on track 7 sector 17 and is 1 sectors long (162 compressed bytes: 36% of 450 bytes).
65 // Entry #14 '..\build\files\bonfire_anim_strip.hir'
66 // - Starts on track 8 sector 1 and is 3 sectors long (692 compressed bytes: 87% of 792 bytes).
67 // Entry #15 '..\build\files\the_real_party.hir'
68 // - Starts on track 8 sector 4 and is 6 sectors long (1332 compressed bytes: 23% of 5680 bytes).
69 // Entry #16 '..\build\files\logo_zerofx.hir'
70 // - Starts on track 8 sector 10 and is 6 sectors long (1504 compressed bytes: 18% of 8000 bytes).
71 // Entry #17 '..\build\files\DecadeReset.ym'
72 // - Starts on track 8 sector 16 and is 16 sectors long (3912 compressed bytes: 57% of 6750 bytes).
73 //
74 // 167 sectors used, out of 1428. (11% of the total disk size used)
75 //
76 #define RANDOM_DEFINE_TO_EXPORT 12345
77 #define LOADER_SECTOR_BUFFER $200
78 #define LOADER_BASE_ZERO_PAGE $F2
79 #define LOADER_GAME_PROGRAM 0
80 #define LOADER_GAME_PROGRAM_ADDRESS $400
81 #define LOADER_GAME_PROGRAM_TRACK 0
82 #define LOADER_GAME_PROGRAM_SECTOR 134
83 #define LOADER_GAME_PROGRAM_SIZE 36176
84 #define LOADER_GAME_PROGRAM_SIZE_COMPRESSED 9859
85 #define LOADER_FONT_6x8_ARTDECO 1
86 #define LOADER_FONT_6x6 2
87 #define LOADER_TRIANGLE_LOGOS 3
88 #define LOADER_KINDERGARDEN_LOGO 4
89 #define LOADER_DEFENCEFORCE_LOGO 5
90 #define LOADER_CREDITS 6
91 #define LOADER_BIRTHDAY 7
92 #define LOADER_PARTY_OUTSIDE 8
93 #define LOADER_BADESTAMP 9
94 #define LOADER_BIGSCREEN 10
95 #define LOADER_SMALLSCREEN 11
96 #define LOADER_SCREEN_60x50 12
97 #define LOADER_FLAME_ANIM 13
98 #define LOADER_SMOKE_ANIM 14
99 #define LOADER_REAL_PARTY 15
100 #define LOADER_TITLE_SCREEN 16
101 #define LOADER_INTRO_MUSIC 17
102
103 //
104 // Metadata
105 //
106 #ifdef METADATA_STORAGE
107
108 #endif // METADATA_STORAGE
109

  ViewVC Help
Powered by ViewVC 1.1.26