more original_image BBC DISK files
[CrazeeRiderBBC.git] / Master.mak
1 \\\r
2 \\ Crazee Rider BBC\r
3 \\\r
4 \\ (C) Kevin Edwards 1987-2018\r
5 \\\r
6 \r
7 objstrt%        =&E00\r
8 objend%         =&5800  \ End of code, where the Downloader is positioned\r
9 objexec%        =&6300  \ Execution address when loaded to &1900 rather than &E00 ( objend% + &1900-&E00 )\r
10 modu%           =&400\r
11 dowsize%        =&B00\r
12 sceaddr%        =&800+modu%+(objend%-objstrt%)+dowsize%\r
13 \r
14         INCLUDE "src\CONST.6502"\r
15         INCLUDE "src\ZPWORK.6502"\r
16         INCLUDE "src\ABSWORK.6502"\r
17  \r
18         \\ Module Code block ( &960 - &CFF )\r
19         ORG &960\r
20         INCLUDE "src\MODULE.6502"\r
21 \r
22         \\ Main Code block - source files assembled in the same order as the original\r
23         ORG objstrt%\r
24         INCLUDE "src\INIT.6502"\r
25         INCLUDE "src\SPRITES.6502"\r
26         INCLUDE "src\BIKES.6502"\r
27         INCLUDE "src\OBIKES.6502"\r
28         INCLUDE "src\OBIKES2.6502"\r
29         INCLUDE "src\OBIKES3.6502"\r
30         INCLUDE "src\OBIKES4.6502"\r
31         INCLUDE "src\ROUT1.6502"\r
32         INCLUDE "src\ROUT2.6502"\r
33         INCLUDE "src\ROUT3.6502"\r
34         INCLUDE "src\ROAD1.6502"\r
35         INCLUDE "src\KERB.6502"\r
36         INCLUDE "src\CTRACK.6502"\r
37         INCLUDE "src\UPDATE.6502"\r
38         INCLUDE "src\MROAD.6502"\r
39         INCLUDE "src\TRACK1.6502"\r
40         INCLUDE "src\MINI.6502"\r
41         INCLUDE "src\MUSIC1.6502"\r
42         INCLUDE "src\ROFFSET.6502"\r
43         INCLUDE "src\KERBGRA.6502"\r
44         INCLUDE "src\HIGH.6502"\r
45         INCLUDE "src\END.6502"\r
46         INCLUDE "src\ENDB.6502"\r
47         INCLUDE "src\END2.6502"\r
48         \r
49         objcodeend = P%\r
50         PRINT"Code start  = ",~objstrt%\r
51         PRINT"End of code = ",~objcodeend-1\r
52         PRINT"Length      = ",~objcodeend-objstrt%,"    (",objcodeend-objstrt%,") bytes"\r
53         PRINT"Bytes left  = ",~objend%-objcodeend,"   (",objend%-objcodeend,") bytes"\r
54 \r
55 \r
56 \\ From Master2\r
57 \\ *SAVE ":2.O.MODULE" 6600+3A0 FFFF0960 FFFF0960\r
58 \\ *L.:2.O.DOWN 6A00\r
59 \\ *SAVE GAME 2000 6D4B FFFF6300 FFFF1900\r
60 \r
61         \\ Output Object code binaries to the image\r
62         SAVE "O.MODULE", &960, &960 + &3A0, &960, &960\r
63 \r
64         \\ Include the Downloader binary at its GENUINE load address\r
65         ORG objend%\r
66         INCBIN "O.DOWN"\r
67         \r
68         PRINT "Saving GAME ", ~objstrt%, ~objend% + &400, ~objexec%, ~&1900\r
69         SAVE "GAME", objstrt%, objend% + &400, objexec%, &1900\r
70 \r
71 \r
72         \\ Save Main Basic Loader ( gets tokenised first )\r
73         PUTBASIC "bas_extra\LOADER.bas.txt","$.L"\r
74 \r
75         \\ Put Panel file into final image - see bas_extra\LOADER.bas.txt\r
76         PUTFILE "object\O.NEWPANL", "O.NEWPANL", &7880, &7880\r
77 \r
78         \\ Copy the Loader into the disk image - generated by the pre-build step\r
79 \\      PUTFILE "LoadGam", "$.LoadGam", &700, &700\r
80 \r
81         \\ Loading screen\r
82         \\      PUTFILE "src\CRSCREEN.IMG", "$.CRSCR", &5800\r