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

Annotation of /public/oric/mym_player/osdk_build.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1074 - (hide annotations)
Sun Jan 12 20:10:56 2014 UTC (6 years, 1 month ago) by dbug
File MIME type: text/plain
File size: 3435 byte(s)
Added a bunch of musics to the arcade music mym demo player
1 dbug 1073 @ECHO OFF
2    
3    
4     ::
5     :: Initial check.
6     :: Verify if the SDK is correctly configurated
7     ::
8     IF "%OSDK%"=="" GOTO ErCfg
9    
10    
11     ::
12     :: Set the build paremeters
13     ::
14     CALL osdk_config.bat
15    
16    
17     ::
18     :: Launch the compilation of files
19     ::
20     CALL %OSDK%\bin\make.bat %OSDKFILE%
21    
22     ::
23     :: Assemble the music player
24     ::
25     ECHO Assembling music player
26     %osdk%\bin\xa mymplayer.s -o build\mymplayer.o
27     %OSDK%\bin\header -h1 -a0 build\mymplayer.o build\mymplayer.tap $6500
28    
29    
30     ::
31     :: Convert musics
32     :: ym1.mym -> 8699 bytes
33     :: ym2.mym -> 7293 bytes
34     :: ym3.mym -> 7956 bytes
35     ::
36     :: HIRES last usable memory area is $9800 / 38912
37     :: - 8657 -> $762f / 30255
38     :: Round to -> $7600 / 30208 this gives us $2200 / 8704 bytes for the music
39     ::
40     :: So we make each music load in $7600
41     ::
42     :: The depacking buffer for the music requires 256 bytes per register, so 256*14 bytes = $e00 / 3584 bytes
43     :: If we place the buffer just before the music file, it will start at the location $7600-$e00 = $6800 / 26624
44     ::
45     :: And just before that we put the music player binary file, which will start by two JMP:
46     :: - (+0) JMP StartMusic
47     :: - (+3) JMP StopMusic
48     ::
49     :: The music player itself is less than 512 bytes without counting the IRQ installation and what nots so could start in $6600, say $6500 for security
50     ::
51     echo %osdk%
52    
53 dbug 1074 %OSDK%\bin\ym2mym "data\Bubble Bobble 1.ym" data\BubbleBobble.mym
54 dbug 1073 %OSDK%\bin\header -h1 -a0 data\BubbleBobble.mym build\BubbleBobble.tap $7600
55    
56 dbug 1074 %OSDK%\bin\ym2mym "data\Great Giana Sisters 1 - title.ym" data\Giana-Title.mym
57 dbug 1073 %OSDK%\bin\header -h1 -a0 data\Giana-Title.mym build\Giana-Title.tap $7600
58    
59 dbug 1074 %OSDK%\bin\ym2mym "data\Rainbow Island 1.ym" data\RainbowIsland.mym
60 dbug 1073 %OSDK%\bin\header -h1 -a0 data\RainbowIsland.mym build\RainbowIsland.tap $7600
61    
62 dbug 1074 %OSDK%\bin\ym2mym "data\Pacmania 1.ym" data\PacMania-1.mym
63 dbug 1073 %OSDK%\bin\header -h1 -a0 data\PacMania-1.mym build\PacMania-1.tap $7600
64    
65 dbug 1074 %OSDK%\bin\ym2mym "data\Tetris title.ym" data\Tetris.mym
66     %OSDK%\bin\header -h1 -a0 data\Tetris.mym build\Tetris.tap $7600
67 dbug 1073
68 dbug 1074 %OSDK%\bin\ym2mym "data\Speedball 1.ym" data\SpeedBall.mym
69 dbug 1073 %OSDK%\bin\header -h1 -a0 data\SpeedBall.mym build\SpeedBall.tap $7600
70    
71 dbug 1074 %OSDK%\bin\ym2mym "data\Nebulus.ym" data\Nebulus.mym
72     %OSDK%\bin\header -h1 -a0 data\Nebulus.mym build\Nebulus.tap $7600
73 dbug 1073
74    
75     ::
76     :: Rename files so they have friendly names on the disk
77     ::
78     %OSDK%\bin\taptap ren build\%OSDKNAME%.tap "Test" 0
79     %OSDK%\bin\taptap ren build\mymplayer.tap "mymplayer" 0
80     %OSDK%\bin\taptap ren build\BubbleBobble.tap "Music1" 0
81     %OSDK%\bin\taptap ren build\Giana-Title.tap "Music2" 0
82     %OSDK%\bin\taptap ren build\RainbowIsland.tap "Music3" 0
83     %OSDK%\bin\taptap ren build\PacMania-1.tap "Music4" 0
84 dbug 1074 %OSDK%\bin\taptap ren build\Tetris.tap "Music5" 0
85 dbug 1073 %OSDK%\bin\taptap ren build\SpeedBall.tap "Music6" 0
86 dbug 1074 %OSDK%\bin\taptap ren build\Nebulus.tap "Music7" 0
87 dbug 1073
88    
89    
90     pause
91    
92     ECHO Building DSK file
93 dbug 1074 %OSDK%\bin\tap2dsk -iCLS:TEST build\%OSDKNAME%.TAP build\mymplayer.tap build\BubbleBobble.tap build\Giana-Title.tap build\RainbowIsland.tap build\PacMania-1.tap build\Tetris.tap build\SpeedBall.tap build\Nebulus.tap build\%OSDKNAME%.dsk
94 dbug 1073 %OSDK%\bin\old2mfm build\%OSDKNAME%.dsk
95    
96    
97     GOTO End
98    
99    
100     ::
101     :: Outputs an error message
102     ::
103     :ErCfg
104     ECHO == ERROR ==
105     ECHO The Oric SDK was not configured properly
106     ECHO You should have a OSDK environment variable setted to the location of the SDK
107     IF "%OSDKBRIEF%"=="" PAUSE
108     GOTO End
109    
110    
111     :End
112     pause

  ViewVC Help
Powered by ViewVC 1.1.26