Previous 15994 Revisions Next

r8197 Tuesday 1st June, 2010 at 14:36:50 UTC by Fabio Priuli
lists wip:

* fixed max list (offsets were missing)
* hooked up max and vc4000 lists to the correspondent drivers
[hash]max.xml
[src/mess/drivers]c64.c vc4000.c
[src/mess/machine]c64.c

hash/max.xml
r8196r8197
77      <year>1982</year>
88      <publisher>Commodore</publisher>
99      <part name="cart" interface="ultimax_cart">
10         <dataarea name="e000" size="8192">
11            <rom name="avengera.bin" size="8192" crc="e80c1019" sha1="6c715fded043e339f2b897956ffde0fac2caf25a" />
10         <dataarea name="romh" size="8192">
11            <rom name="avengera.bin" size="8192" crc="e80c1019" sha1="6c715fded043e339f2b897956ffde0fac2caf25a" offset="0x0000" />
1212         </dataarea>
1313      </part>
1414   </software>
r8196r8197
1818      <year>1983</year>
1919      <publisher>Commodore</publisher>
2020      <part name="cart" interface="ultimax_cart">
21         <dataarea name="e000" size="8192">
22            <rom name="avenger.bin" size="8192" crc="d4e52fd4" sha1="78e0b6f764668d8f551810bfd62332b6059053c2" />
21         <dataarea name="romh" size="8192">
22            <rom name="avenger.bin" size="8192" crc="d4e52fd4" sha1="78e0b6f764668d8f551810bfd62332b6059053c2" offset="0x0000" />
2323         </dataarea>
2424      </part>
2525   </software>
r8196r8197
2929      <year>1983</year>
3030      <publisher>HAL Laboratory</publisher>
3131      <part name="cart" interface="ultimax_cart">
32         <dataarea name="8000" size="8192">
33            <rom name="bowling.80" size="8192" crc="95894739" sha1="6b7bf66b094286606a10ec0345d04f725c22920e" />
32         <dataarea name="roml" size="8192">
33            <rom name="bowling.80" size="8192" crc="95894739" sha1="6b7bf66b094286606a10ec0345d04f725c22920e" offset="0x0000" />
3434         </dataarea>
35         <dataarea name="e000" size="8192">
36            <rom name="bowling.e0" size="8192" crc="f3950757" sha1="37146c6bd9eec5edd4524a7423fa8a0a7bec4698" />
35         <dataarea name="romh" size="8192">
36            <rom name="bowling.e0" size="8192" crc="f3950757" sha1="37146c6bd9eec5edd4524a7423fa8a0a7bec4698" offset="0x0000" />
3737         </dataarea>
3838      </part>
3939   </software>
r8196r8197
4343      <year>1982</year>
4444      <publisher>Commodore</publisher>
4545      <part name="cart" interface="ultimax_cart">
46         <dataarea name="e000" size="8192">
47            <rom name="clownsa.bin" size="8192" crc="d50c1428" sha1="fb48b5a639e4235ce522d62c5f8713d66102c75e" />
46         <dataarea name="romh" size="8192">
47            <rom name="clownsa.bin" size="8192" crc="d50c1428" sha1="fb48b5a639e4235ce522d62c5f8713d66102c75e" offset="0x0000" />
4848         </dataarea>
4949      </part>
5050   </software>
r8196r8197
5454      <year>1982</year>
5555      <publisher>Commodore</publisher>
5656      <part name="cart" interface="ultimax_cart">
57         <dataarea name="e000" size="8192">
58            <rom name="clowns.bin" size="8192" crc="85aa080b" sha1="ffebfc19263dc50d3a808135dbe88567617af6b8" />
57         <dataarea name="romh" size="8192">
58            <rom name="clowns.bin" size="8192" crc="85aa080b" sha1="ffebfc19263dc50d3a808135dbe88567617af6b8" offset="0x0000" />
5959         </dataarea>
6060      </part>
6161   </software>
r8196r8197
6565      <year>1982</year>
6666      <publisher>Commodore / HAL Laboratory</publisher>
6767      <part name="cart" interface="ultimax_cart">
68         <dataarea name="e000" size="8192">
69            <rom name="jupiter.bin" size="8192" crc="a5af43e5" sha1="d6620a6f38a14e51ed98d26a0c721f5c80fcd8f3" />
68         <dataarea name="romh" size="8192">
69            <rom name="jupiter.bin" size="8192" crc="a5af43e5" sha1="d6620a6f38a14e51ed98d26a0c721f5c80fcd8f3" offset="0x0000" />
7070         </dataarea>
7171      </part>
7272   </software>
r8196r8197
7676      <year>1982</year>
7777      <publisher>Commodore / HAL Laboratory</publisher>
7878      <part name="cart" interface="ultimax_cart">
79         <dataarea name="e000" size="8192">
80            <rom name="kickman.bin" size="8192" crc="f15dcfe7" sha1="7d8091a2b560644f10d39449775e6a8447e772ca" />
79         <dataarea name="romh" size="8192">
80            <rom name="kickman.bin" size="8192" crc="f15dcfe7" sha1="7d8091a2b560644f10d39449775e6a8447e772ca" offset="0x0000" />
8181         </dataarea>
8282      </part>
8383   </software>
r8196r8197
8787      <year>1982</year>
8888      <publisher>Commodore / HAL Laboratory</publisher>
8989      <part name="cart" interface="ultimax_cart">
90         <dataarea name="e000" size="8192">
91            <rom name="lemans.bin" size="8192" crc="5cdba9a9" sha1="c6a3e317a09b7232878c892b61d9d0204e482439" />
90         <dataarea name="romh" size="8192">
91            <rom name="lemans.bin" size="8192" crc="5cdba9a9" sha1="c6a3e317a09b7232878c892b61d9d0204e482439" offset="0x0000" />
9292         </dataarea>
9393      </part>
9494   </software>
r8196r8197
9898      <year>19??</year>
9999      <publisher>Commodore</publisher>
100100      <part name="cart" interface="ultimax_cart">
101         <dataarea name="8000" size="8192">
102            <rom name="basic.80" size="8192" crc="489aab86" sha1="448e0403baed7fcdc3be6ce8497958beaf3b4566" />
101         <dataarea name="roml" size="8192">
102            <rom name="basic.80" size="8192" crc="489aab86" sha1="448e0403baed7fcdc3be6ce8497958beaf3b4566" offset="0x0000" />
103103         </dataarea>
104         <dataarea name="e000" size="8192">
105            <rom name="basic.e0" size="8192" crc="caac20ff" sha1="f31ba36a5f8fca7722d4b482716166b578301ed4" />
104         <dataarea name="romh" size="8192">
105            <rom name="basic.e0" size="8192" crc="caac20ff" sha1="f31ba36a5f8fca7722d4b482716166b578301ed4" offset="0x0000" />
106106         </dataarea>
107107      </part>
108108   </software>
r8196r8197
112112      <year>19??</year>
113113      <publisher>Commodore</publisher>
114114      <part name="cart" interface="ultimax_cart">
115         <dataarea name="e000" size="8192">
116            <rom name="minibas.bin" size="8192" crc="65ad75c8" sha1="dd77e7b59c44a40fc77b783818f71b5e49ea820d" />
115         <dataarea name="romh" size="8192">
116            <rom name="minibas.bin" size="8192" crc="65ad75c8" sha1="dd77e7b59c44a40fc77b783818f71b5e49ea820d" offset="0x0000" />
117117         </dataarea>
118118      </part>
119119   </software>
r8196r8197
123123      <year>1982</year>
124124      <publisher>Commodore / HAL Laboratory</publisher>
125125      <part name="cart" interface="ultimax_cart">
126         <dataarea name="e000" size="8192">
127            <rom name="moleatck.bin" size="8192" crc="1a26d98b" sha1="49270fd55a9be51361673d4f4722ed3101bd0b27" />
126         <dataarea name="romh" size="8192">
127            <rom name="moleatck.bin" size="8192" crc="1a26d98b" sha1="49270fd55a9be51361673d4f4722ed3101bd0b27" offset="0x0000" />
128128         </dataarea>
129129      </part>
130130   </software>
r8196r8197
134134      <year>1982</year>
135135      <publisher>Commodore / HAL Laboratory</publisher>
136136      <part name="cart" interface="ultimax_cart">
137         <dataarea name="e000" size="8192">
138            <rom name="moneywar.bin" size="8192" crc="909f78c1" sha1="2449fb3ee8e502eebd6b51109d58399a6e1ad783" />
137         <dataarea name="romh" size="8192">
138            <rom name="moneywar.bin" size="8192" crc="909f78c1" sha1="2449fb3ee8e502eebd6b51109d58399a6e1ad783" offset="0x0000" />
139139         </dataarea>
140140      </part>
141141   </software>
r8196r8197
146146      <year>1982</year>
147147      <publisher>Commodore</publisher>
148148      <part name="cart" interface="ultimax_cart">
149         <dataarea name="e000" size="8192">
150            <rom name="musicmak.bin" size="8192" crc="95b82cf4" sha1="a8467cf175c4e1a5560042a60268dd4db7ac58c6" />
149         <dataarea name="romh" size="8192">
150            <rom name="musicmak.bin" size="8192" crc="95b82cf4" sha1="a8467cf175c4e1a5560042a60268dd4db7ac58c6" offset="0x0000" />
151151         </dataarea>
152152      </part>
153153   </software>
r8196r8197
157157      <year>1982</year>
158158      <publisher>Commodore</publisher>
159159      <part name="cart" interface="ultimax_cart">
160         <dataarea name="f000" size="4096">
161            <rom name="musicm.bin" size="4096" crc="f86946a9" sha1="2592d8716331804dbc07d406e10f009ec472b7b2" />
160         <dataarea name="romh" size="4096">
161            <rom name="musicm.bin" size="4096" crc="f86946a9" sha1="2592d8716331804dbc07d406e10f009ec472b7b2" offset="0x1000" />
162162         </dataarea>
163163      </part>
164164   </software>
r8196r8197
168168      <year>1982</year>
169169      <publisher>Commodore</publisher>
170170      <part name="cart" interface="ultimax_cart">
171         <dataarea name="e000" size="8192">
172            <rom name="omegar.bin" size="8192" crc="dbb11bb4" sha1="1c1d4179dce0209664e611e6fdc96b195bcf7a55" />
171         <dataarea name="romh" size="8192">
172            <rom name="omegar.bin" size="8192" crc="dbb11bb4" sha1="1c1d4179dce0209664e611e6fdc96b195bcf7a55" offset="0x0000" />
173173         </dataarea>
174174      </part>
175175   </software>
r8196r8197
179179      <year>1983</year>
180180      <publisher>Commodore / HAL Laboratory</publisher>
181181      <part name="cart" interface="ultimax_cart">
182         <dataarea name="8000" size="4096">
183            <rom name="pinball.80" size="4096" crc="1dd12488" sha1="dc725c526d9359437fbe37b0635173f83dd8bcfc" />
182         <dataarea name="roml" size="4096">
183            <rom name="pinball.80" size="4096" crc="1dd12488" sha1="dc725c526d9359437fbe37b0635173f83dd8bcfc" offset="0x0000" />
184184         </dataarea>
185         <dataarea name="e000" size="8192">
186            <rom name="pinball.e0" size="8192" crc="b64a4507" sha1="ec019df6e914a973d2cb83c5baf4cffc798ba1dd" />
185         <dataarea name="romh" size="8192">
186            <rom name="pinball.e0" size="8192" crc="b64a4507" sha1="ec019df6e914a973d2cb83c5baf4cffc798ba1dd" offset="0x0000" />
187187         </dataarea>
188188      </part>
189189   </software>
r8196r8197
193193      <year>1982</year>
194194      <publisher>Commodore</publisher>
195195      <part name="cart" interface="ultimax_cart">
196         <dataarea name="e000" size="8192">
197            <rom name="radarrr2.bin" size="8192" crc="1f7291f5" sha1="409d70bc29134494c44d03dde47357a265089d1a" />
196         <dataarea name="romh" size="8192">
197            <rom name="radarrr2.bin" size="8192" crc="1f7291f5" sha1="409d70bc29134494c44d03dde47357a265089d1a" offset="0x0000" />
198198         </dataarea>
199199      </part>
200200   </software>
r8196r8197
204204      <year>1982</year>
205205      <publisher>Commodore</publisher>
206206      <part name="cart" interface="ultimax_cart">
207         <dataarea name="e000" size="8192">
208            <rom name="radarrr1.bin" size="8192" crc="bfaebf6b" sha1="aa71572d16440734ed0ed9ee253a11237765ea22" />
207         <dataarea name="romh" size="8192">
208            <rom name="radarrr1.bin" size="8192" crc="bfaebf6b" sha1="aa71572d16440734ed0ed9ee253a11237765ea22" offset="0x0000" />
209209         </dataarea>
210210      </part>
211211   </software>
r8196r8197
215215      <year>1982</year>
216216      <publisher>Commodore</publisher>
217217      <part name="cart" interface="ultimax_cart">
218         <dataarea name="e000" size="8192">
219            <rom name="radarrr.bin" size="8192" crc="cf74e0a0" sha1="c7190cb744fef2e7502cbbd4ccf8042c9bf89ae3" />
218         <dataarea name="romh" size="8192">
219            <rom name="radarrr.bin" size="8192" crc="cf74e0a0" sha1="c7190cb744fef2e7502cbbd4ccf8042c9bf89ae3" offset="0x0000" />
220220         </dataarea>
221221      </part>
222222   </software>
r8196r8197
226226      <year>1983</year>
227227      <publisher>Commodore / HAL Laboratory</publisher>
228228      <part name="cart" interface="ultimax_cart">
229         <dataarea name="e000" size="8192">
230            <rom name="roadrace.bin" size="8192" crc="43ecc555" sha1="0e074d796a5e783e509c57716400a13bb59335cb" />
229         <dataarea name="romh" size="8192">
230            <rom name="roadrace.bin" size="8192" crc="43ecc555" sha1="0e074d796a5e783e509c57716400a13bb59335cb" offset="0x0000" />
231231         </dataarea>
232232      </part>
233233   </software>
r8196r8197
237237      <year>1982</year>
238238      <publisher>Commodore</publisher>
239239      <part name="cart" interface="ultimax_cart">
240         <dataarea name="e000" size="8192">
241            <rom name="seawolf.bin" size="8192" crc="10daba85" sha1="90d5665bf22c7ebc10d6ebcc533fd2e8272ab7c7" />
240         <dataarea name="romh" size="8192">
241            <rom name="seawolf.bin" size="8192" crc="10daba85" sha1="90d5665bf22c7ebc10d6ebcc533fd2e8272ab7c7" offset="0x0000" />
242242         </dataarea>
243243      </part>
244244   </software>
r8196r8197
248248      <year>1982</year>
249249      <publisher>Commodore</publisher>
250250      <part name="cart" interface="ultimax_cart">
251         <dataarea name="e000" size="8192">
252            <rom name="spedmath.bin" size="8192" crc="c2fad208" sha1="9fd52d27d11e40a12fcad5e37e5e01d00961a794" />
251         <dataarea name="romh" size="8192">
252            <rom name="spedmath.bin" size="8192" crc="c2fad208" sha1="9fd52d27d11e40a12fcad5e37e5e01d00961a794" offset="0x0000" />
253253         </dataarea>
254254      </part>
255255   </software>
r8196r8197
259259      <year>1982</year>
260260      <publisher>Commodore</publisher>
261261      <part name="cart" interface="ultimax_cart">
262         <dataarea name="e000" size="8192">
263            <rom name="supalien.bin" size="8192" crc="8d5177a1" sha1="c38aad32bfcb9a90c110ddcafa5cb73dcaba8cdd" />
262         <dataarea name="romh" size="8192">
263            <rom name="supalien.bin" size="8192" crc="8d5177a1" sha1="c38aad32bfcb9a90c110ddcafa5cb73dcaba8cdd" offset="0x0000" />
264264         </dataarea>
265265      </part>
266266   </software>
r8196r8197
270270      <year>1982</year>
271271      <publisher>Commodore</publisher>
272272      <part name="cart" interface="ultimax_cart">
273         <dataarea name="e000" size="8192">
274            <rom name="solarsys.bin" size="8192" crc="400f79c8" sha1="b6d20a2b8781838186a5ad8d1494df4124c8a326" />
273         <dataarea name="romh" size="8192">
274            <rom name="solarsys.bin" size="8192" crc="400f79c8" sha1="b6d20a2b8781838186a5ad8d1494df4124c8a326" offset="0x0000" />
275275         </dataarea>
276276      </part>
277277   </software>
r8196r8197
281281      <year>1982</year>
282282      <publisher>Commodore</publisher>
283283      <part name="cart" interface="ultimax_cart">
284         <dataarea name="e000" size="8192">
285            <rom name="wizard of wor (japan) (max).bin" size="8192" crc="4178f536" sha1="65162698ec8e658aa582a5a7a209b3bda704cbb9" />
284         <dataarea name="romh" size="8192">
285            <rom name="wizard of wor (japan) (max).bin" size="8192" crc="4178f536" sha1="65162698ec8e658aa582a5a7a209b3bda704cbb9" offset="0x0000" />
286286         </dataarea>
287287      </part>
288288   </software>
r8196r8197
292292      <year>1982</year>
293293      <publisher>Commodore</publisher>
294294      <part name="cart" interface="ultimax_cart">
295         <dataarea name="e000" size="8192">
296            <rom name="wizard of wor (japan) (v02) (max).bin" size="8192" crc="5cd2948e" sha1="f0f30868331d85e29b3adfaf71bc0abeb042ff42" />
295         <dataarea name="romh" size="8192">
296            <rom name="wizard of wor (japan) (v02) (max).bin" size="8192" crc="5cd2948e" sha1="f0f30868331d85e29b3adfaf71bc0abeb042ff42" offset="0x0000" />
297297         </dataarea>
298298      </part>
299299   </software>
src/mess/machine/c64.c
r8196r8197
10241024
10251025static UINT8 c64_mapper = GENERIC_CRT;
10261026
1027static DEVICE_IMAGE_LOAD( c64_cart )
1027static int c64_common_cart_load( running_device *image )
10281028{
10291029   int size = image_length(image), test, i = 0, n_banks;
10301030   const char *filetype;
10311031   int address = 0, new_start = 0;
10321032   // int lbank_end_addr = 0, hbank_end_addr = 0;
1033   UINT8 *cart = memory_region(image->machine, "cart");
1033   UINT8 *cart = memory_region(image->machine, "user1");
10341034
10351035   filetype = image_filetype(image);
10361036
r8196r8197
12321232   return INIT_PASS;
12331233}
12341234
1235static DEVICE_IMAGE_LOAD( c64_cart )
1236{
1237   return c64_common_cart_load(image);
1238}
12351239
1240static DEVICE_IMAGE_LOAD( max_cart )
1241{
1242   int result = INIT_PASS;
1243
1244   if (image_software_entry(image) == NULL)
1245   {
1246      result = c64_common_cart_load(image);
1247   }
1248   else
1249   {
1250      UINT32 size;
1251
1252      // setup Ultimax mode
1253      c64_exrom = 1;
1254      c64_game  = 0;
1255     
1256      roml = c64_roml;
1257      romh = c64_romh;
1258     
1259      memset(roml, 0, 0x2000);
1260      memset(romh, 0, 0x2000);
1261
1262      // is there anything to load at 0x8000?
1263      size = image_get_software_region_length(image, "roml");
1264      if (size)
1265         memcpy(roml, image_get_software_region(image, "roml"), size);
1266
1267      // is there anything to load at 0xe000?
1268      size = image_get_software_region_length(image, "romh");
1269      if (size)
1270         memcpy(romh, image_get_software_region(image, "romh"), size);     
1271   }
1272
1273   return result;
1274}
1275
1276
12361277static WRITE8_HANDLER( fc3_bank_w )
12371278{
12381279   // Type # 3
r8196r8197
12401281   // not working:
12411282
12421283   UINT8 bank = data & 0x3f;
1243   UINT8 *cart = memory_region(space->machine, "cart");
1284   UINT8 *cart = memory_region(space->machine, "user1");
12441285
12451286   if (data & 0x40)
12461287   {
r8196r8197
12691310   // not working: Pang, Robocop 2, Toki
12701311
12711312   UINT8 bank = data & 0x3f;
1272   UINT8 *cart = memory_region(space->machine, "cart");
1313   UINT8 *cart = memory_region(space->machine, "user1");
12731314
12741315   if (c64_cart_n_banks != 64)                        // all carts except Terminator II
12751316   {
r8196r8197
12991340   // not working:
13001341
13011342   UINT8 bank = data & 0x39, real_bank = 0;
1302   UINT8 *cart = memory_region(space->machine, "cart");
1343   UINT8 *cart = memory_region(space->machine, "user1");
13031344
13041345   /* This should be written after the bankswitch has happened. We log it to see if it is really working */
13051346   if (data == 0x86)
r8196r8197
13281369   // not working:
13291370
13301371   UINT8 bank = data & 0x03, bit2 = data & 0x04;
1331   UINT8 *cart = memory_region(space->machine, "cart");
1372   UINT8 *cart = memory_region(space->machine, "user1");
13321373
13331374   if (data & 0x04)
13341375   {
r8196r8197
13661407   // not working: The Last Ninja Remix
13671408
13681409   UINT8 bank = offset & 0xff;
1369   UINT8 *cart = memory_region(space->machine, "cart");
1410   UINT8 *cart = memory_region(space->machine, "user1");
13701411
13711412   if (bank > 0x3f)
13721413      logerror("Warning: This cart type should have at most 64 banks and the cart looked for bank %d... Something strange is going on!\n", bank);
r8196r8197
13891430   // not working:
13901431
13911432   UINT8 bank = offset & 0xff;
1392   UINT8 *cart = memory_region(space->machine, "cart");
1433   UINT8 *cart = memory_region(space->machine, "user1");
13931434
13941435   if (bank > 0xf)
13951436      logerror("Warning: This cart type should have 16 banks and the cart looked for bank %d... Something strange is going on!\n", bank);
r8196r8197
14131454   // not working:
14141455
14151456   UINT8 bank;
1416   UINT8 *cart = memory_region(space->machine, "cart");
1457   UINT8 *cart = memory_region(space->machine, "user1");
14171458
14181459   if (offset < 0x1000)
14191460      bank = 0;
r8196r8197
14351476   // not working:
14361477
14371478   UINT8 bank = data & 0x7f;
1438   UINT8 *cart = memory_region(space->machine, "cart");
1479   UINT8 *cart = memory_region(space->machine, "user1");
14391480
14401481   if (data & 0x80)
14411482   {
r8196r8197
14571498   // not working:
14581499
14591500   UINT8 bank = data & 0x83;
1460   UINT8 *cart = memory_region(space->machine, "cart");
1501   UINT8 *cart = memory_region(space->machine, "user1");
14611502
14621503   /* only valid values 0x80, 0x81, 0x82, 0x83 */
14631504   if (!(bank & 0x80))
r8196r8197
15671608   MDRV_CARTSLOT_ADD("cart")
15681609   MDRV_CARTSLOT_EXTENSION_LIST("crt,e0,f0")
15691610   MDRV_CARTSLOT_MANDATORY
1611   MDRV_CARTSLOT_INTERFACE("ultimax_cart")
15701612   MDRV_CARTSLOT_START(c64_cart)
1571   MDRV_CARTSLOT_LOAD(c64_cart)
1613   MDRV_CARTSLOT_LOAD(max_cart)
15721614   MDRV_CARTSLOT_UNLOAD(c64_cart)
1615
1616   /* software lists */
1617   MDRV_SOFTWARE_LIST_ADD("max")
15731618MACHINE_DRIVER_END
src/mess/drivers/c64.c
r8196r8197
834834
835835ROM_START( max )
836836   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
837   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
837   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
838838ROM_END
839839
840840ROM_START( c64 )
r8196r8197
852852
853853   ROM_LOAD( "901225-01.bin", 0x14000, 0x1000, CRC(ec4272ee) SHA1(adc7c31e18c7c7413d54802ef2f4193da14711aa) )   // Character
854854
855   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
855   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
856856ROM_END
857857
858858#define rom_c64pal   rom_c64
r8196r8197
863863   ROM_LOAD( "906145-02.bin", 0x12000, 0x2000, CRC(3a9ef6f1) SHA1(4ff0f11e80f4b57430d8f0c3799ed0f0e0f4565d) )
864864   ROM_LOAD( "906143-02.bin", 0x14000, 0x1000, CRC(1604f6c1) SHA1(0fad19dbcdb12461c99657b2979dbb5c2e47b527) )
865865
866   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
866   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
867867ROM_END
868868
869869
r8196r8197
876876   ROM_SYSTEM_BIOS(1, "alt", "Swedish Characters (Alt)" )
877877   ROMX_LOAD( "charswe2.bin",0x14000, 0x1000, CRC(377a382b) SHA1(20df25e0ba1c88f31689c1521397c96968967fac), ROM_BIOS(2) )
878878
879   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
879   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
880880ROM_END
881881
882882#define rom_c64swe   rom_vic64s
r8196r8197
887887   ROM_LOAD( "901246-01.bin", 0x12000, 0x2000, CRC(789c8cc5) SHA1(6c4fa9465f6091b174df27dfe679499df447503c) )
888888   ROM_LOAD( "901225-01.bin", 0x14000, 0x1000, CRC(ec4272ee) SHA1(adc7c31e18c7c7413d54802ef2f4193da14711aa) )
889889
890   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
890   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
891891ROM_END
892892
893893#define rom_cbm4064 rom_pet64
r8196r8197
906906
907907   ROM_LOAD( "901225-01.ud1", 0x14000, 0x1000, CRC(ec4272ee) SHA1(adc7c31e18c7c7413d54802ef2f4193da14711aa) )
908908
909   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
909   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
910910ROM_END
911911
912912ROM_START( dx64 )
r8196r8197
914914    ROM_LOAD( "901226-01.bin", 0x10000, 0x2000, CRC(f833d117) SHA1(79015323128650c742a3694c9429aa91f355905e) )
915915    ROM_LOAD( "dx64kern.bin",  0x12000, 0x2000, CRC(58065128) )
916916
917   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
917   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
918918ROM_END
919919
920920ROM_START( vip64 )
r8196r8197
923923   ROM_LOAD( "kernelsx.swe",   0x12000, 0x2000, CRC(7858d3d7) SHA1(097cda60469492a8916c2677b7cce4e12a944bc0) )
924924   ROM_LOAD( "charswe.bin", 0x14000, 0x1000, CRC(bee9b3fd) SHA1(446ae58f7110d74d434301491209299f66798d8a) )
925925
926   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
926   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
927927ROM_END
928928
929929
r8196r8197
933933   ROM_LOAD( "251913-01.bin", 0x10000, 0x4000, CRC(0010ec31) SHA1(765372a0e16cbb0adf23a07b80f6b682b39fbf88) )
934934   ROM_LOAD( "901225-01.bin", 0x14000, 0x1000, CRC(ec4272ee) SHA1(adc7c31e18c7c7413d54802ef2f4193da14711aa) )
935935
936   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
936   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
937937ROM_END
938938
939939#define rom_c64cpal      rom_c64c
r8196r8197
945945   ROM_LOAD( "390852-01.bin", 0x10000, 0x4000, CRC(b0a9c2da) SHA1(21940ef5f1bfe67d7537164f7ca130a1095b067a) )
946946   ROM_LOAD( "901225-01.bin", 0x14000, 0x1000, CRC(ec4272ee) SHA1(adc7c31e18c7c7413d54802ef2f4193da14711aa) )
947947
948   ROM_REGION( 0x80000, "cart", ROMREGION_ERASE00 )
948   ROM_REGION( 0x80000, "user1", ROMREGION_ERASE00 )
949949ROM_END
950950
951951
src/mess/drivers/vc4000.c
r8196r8197
194194static DEVICE_IMAGE_LOAD( vc4000_cart )
195195{
196196   running_machine *machine = image->machine;
197   int size = image_length(image);
198197   const address_space *memspace = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
198   UINT32 size;
199199
200   if (image_software_entry(image) == NULL)
201      size = image_length(image);
202   else
203      size = image_get_software_region_length(image, "rom");
204
200205   if (size > 0x1600)
201206      size = 0x1600;
202207
r8196r8197
208213      memory_install_readwrite_bank(memspace, 0x1800, 0x1bff, 0, 0, "bank2");   /* ram */
209214      memory_set_bankptr(machine, "bank2", memory_region(machine, "maincpu") + 0x1800);
210215   }
211   else
212   if (size > 0x0800)   /* some 4k roms have 1k of mirrored ram */
216   else if (size > 0x0800)   /* some 4k roms have 1k of mirrored ram */
213217   {
214218      memory_install_read_bank(memspace, 0x0800, 0x0fff, 0, 0, "bank1");   /* extra rom */
215219      memory_set_bankptr(machine, "bank1", memory_region(machine, "maincpu") + 0x0800);
r8196r8197
217221      memory_install_readwrite_bank(memspace, 0x1000, 0x15ff, 0, 0x800, "bank2"); /* ram */
218222      memory_set_bankptr(machine, "bank2", memory_region(machine, "maincpu") + 0x1000);
219223   }
220   else
221   if (size == 0x0800)   /* 2k roms + 2k ram - Hobby Module(Radofin) and elektor TVGC*/
224   else if (size == 0x0800)   /* 2k roms + 2k ram - Hobby Module(Radofin) and elektor TVGC*/
222225   {
223226      memory_install_readwrite_bank(memspace, 0x0800, 0x0fff, 0, 0, "bank1"); /* ram */
224227      memory_set_bankptr(machine, "bank1", memory_region(machine, "maincpu") + 0x0800);
r8196r8197
226229
227230   if (size > 0)
228231   {
229      image_fread(image, memory_region(machine, "maincpu") + 0x0000, size);
232      if (image_software_entry(image) == NULL)
233      {
234         if (image_fread(image, memory_region(machine, "maincpu"), size) != size)
235            return INIT_FAIL;
236      }
237      else
238         memcpy(memory_region(machine, "maincpu"), image_get_software_region(image, "rom"), size);
230239   }
231240
232241   return INIT_PASS;
r8196r8197
264273   MDRV_CARTSLOT_ADD("cart")
265274   MDRV_CARTSLOT_EXTENSION_LIST("rom,bin")
266275   MDRV_CARTSLOT_NOT_MANDATORY
276   MDRV_CARTSLOT_INTERFACE("vc4000_cart")
267277   MDRV_CARTSLOT_LOAD(vc4000_cart)
268278
279   /* software lists */
280   MDRV_SOFTWARE_LIST_ADD("vc4000")
269281MACHINE_DRIVER_END
270282
271ROM_START(vc4000)
272   ROM_REGION(0x2000,"maincpu", 0)
273   ROM_FILL( 0x0000, 0x2000, 0xFF )
283
284ROM_START( vc4000 )
285   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
274286ROM_END
275287
276ROM_START(spc4000)
277   ROM_REGION(0x2000,"maincpu", 0)
278   ROM_FILL( 0x0000, 0x2000, 0xFF )
288ROM_START( spc4000 )
289   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
279290ROM_END
280291
281ROM_START(cx3000tc)
282   ROM_REGION(0x2000,"maincpu", 0)
283   ROM_FILL( 0x0000, 0x2000, 0xFF )
292ROM_START( cx3000tc )
293   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
284294ROM_END
285295
286ROM_START(tvc4000)
287   ROM_REGION(0x2000,"maincpu", 0)
288   ROM_FILL( 0x0000, 0x2000, 0xFF )
296ROM_START( tvc4000 )
297   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
289298ROM_END
290299
291ROM_START(1292apvs)
292   ROM_REGION(0x2000,"maincpu", 0)
293   ROM_FILL( 0x0000, 0x2000, 0xFF )
300ROM_START( 1292apvs )
301   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
294302ROM_END
295303
296ROM_START(1392apvs)
297   ROM_REGION(0x2000,"maincpu", 0)
298   ROM_FILL( 0x0000, 0x2000, 0xFF )
304ROM_START( 1392apvs )
305   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
299306ROM_END
300307
301ROM_START(mpu1000)
302   ROM_REGION(0x2000,"maincpu", 0)
303   ROM_FILL( 0x0000, 0x2000, 0xFF )
308ROM_START( mpu1000 )
309   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
304310ROM_END
305311
306ROM_START(mpu2000)
307   ROM_REGION(0x2000,"maincpu", 0)
308   ROM_FILL( 0x0000, 0x2000, 0xFF )
312ROM_START( mpu2000 )
313   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
309314ROM_END
310315
311ROM_START(pp1292)
312   ROM_REGION(0x2000,"maincpu", 0)
313   ROM_FILL( 0x0000, 0x2000, 0xFF )
316ROM_START( pp1292 )
317   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
314318ROM_END
315319
316ROM_START(pp1392)
317   ROM_REGION(0x2000,"maincpu", 0)
318   ROM_FILL( 0x0000, 0x2000, 0xFF )
320ROM_START( pp1392 )
321   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
319322ROM_END
320323
321ROM_START(f1392)
322   ROM_REGION(0x2000,"maincpu", 0)
323   ROM_FILL( 0x0000, 0x2000, 0xFF )
324ROM_START( f1392 )
325   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
324326ROM_END
325327
326ROM_START(fforce2)
327   ROM_REGION(0x2000,"maincpu", 0)
328   ROM_FILL( 0x0000, 0x2000, 0xFF )
328ROM_START( fforce2 )
329   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
329330ROM_END
330331
331ROM_START(hmg1292)
332   ROM_REGION(0x2000,"maincpu", 0)
333   ROM_FILL( 0x0000, 0x2000, 0xFF )
332ROM_START( hmg1292 )
333   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
334334ROM_END
335335
336ROM_START(hmg1392)
337   ROM_REGION(0x2000,"maincpu", 0)
338   ROM_FILL( 0x0000, 0x2000, 0xFF )
336ROM_START( hmg1392 )
337   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
339338ROM_END
340339
341ROM_START(lnsy1392)
342   ROM_REGION(0x2000,"maincpu", 0)
343   ROM_FILL( 0x0000, 0x2000, 0xFF )
340ROM_START( lnsy1392 )
341   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
344342ROM_END
345343
346ROM_START(vc6000)
347   ROM_REGION(0x2000,"maincpu", 0)
348   ROM_FILL( 0x0000, 0x2000, 0xFF )
344ROM_START( vc6000 )
345   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
349346ROM_END
350347
351ROM_START(database)
352   ROM_REGION(0x2000,"maincpu", 0)
353   ROM_FILL( 0x0000, 0x2000, 0xFF )
348ROM_START( database )
349   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
354350ROM_END
355351
356ROM_START(wvmdtbse)
357   ROM_REGION(0x2000,"maincpu", 0)
358   ROM_FILL( 0x0000, 0x2000, 0xFF )
352ROM_START( wvmdtbse )
353   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
359354ROM_END
360355
361ROM_START(rwtrntcs)
362   ROM_REGION(0x2000,"maincpu", 0)
363   ROM_FILL( 0x0000, 0x2000, 0xFF )
356ROM_START( rwtrntcs )
357   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
364358ROM_END
365359
366ROM_START(telngtcs)
367   ROM_REGION(0x2000,"maincpu", 0)
368   ROM_FILL( 0x0000, 0x2000, 0xFF )
360ROM_START( telngtcs )
361   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
369362ROM_END
370363
371ROM_START(krvnjvtv)
372   ROM_REGION(0x2000,"maincpu", 0)
373   ROM_FILL( 0x0000, 0x2000, 0xFF )
364ROM_START( krvnjvtv )
365   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
374366ROM_END
375367
376ROM_START(oc2000)
377   ROM_REGION(0x2000,"maincpu", 0)
378   ROM_FILL( 0x0000, 0x2000, 0xFF )
368ROM_START( oc2000 )
369   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
379370ROM_END
380371
381ROM_START(mpt05)
382   ROM_REGION(0x2000,"maincpu", 0)
383   ROM_FILL( 0x0000, 0x2000, 0xFF )
372ROM_START( mpt05 )
373   ROM_REGION( 0x2000,"maincpu", ROMREGION_ERASEFF )
384374ROM_END
385375
386376QUICKLOAD_LOAD(vc4000)
r8196r8197
422412}
423413
424414
425/*   YEAR  NAME     PARENT     COMPAT    MACHINE    INPUT     INIT      COMPANY         FULLNAME */
426CONS(1978, vc4000,   0,      0,        vc4000,   vc4000,     0,       "Interton",        "VC 4000", GAME_IMPERFECT_GRAPHICS )               /* Germany, Austria, UK, Australia */
427CONS(197?, spc4000,   vc4000,      0,        vc4000,   vc4000,     0,       "Grundig",         "Super Play Computer 4000", GAME_IMPERFECT_GRAPHICS )         /* Germany, Austria */
428CONS(1979, cx3000tc,   vc4000,      0,        vc4000,   vc4000,     0,       "Palson",         "CX 3000 Tele Computer", GAME_IMPERFECT_GRAPHICS )         /* Spain */
429CONS(197?, tvc4000,   vc4000,      0,        vc4000,   vc4000,     0,       "Korting",         "TVC-4000", GAME_IMPERFECT_GRAPHICS )               /* Argentina */
430CONS(1976, 1292apvs,   0,      vc4000,   vc4000,   vc4000,     0,       "Radofin",         "1292 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
431CONS(1976, 1392apvs,   1292apvs,  0,        vc4000,   vc4000,     0,       "Radofin",         "1392 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
432CONS(1979, mpu1000,   1292apvs,  0,        vc4000,   vc4000,     0,       "Acetronic",       "MPU-1000", GAME_IMPERFECT_GRAPHICS )               /* Europe */
433CONS(1979, mpu2000,   1292apvs,  0,        vc4000,   vc4000,     0,       "Acetronic",       "MPU-2000", GAME_IMPERFECT_GRAPHICS )               /* Europe */
434CONS(197?, pp1292,   1292apvs,  0,        vc4000,   vc4000,     0,       "Audiosonic",      "PP-1292 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
435CONS(197?, pp1392,   1292apvs,  0,        vc4000,   vc4000,     0,       "Audiosonic",      "PP-1392 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
436CONS(197?, f1392,   1292apvs,  0,        vc4000,   vc4000,     0,       "Fountain",        "Fountain 1392", GAME_IMPERFECT_GRAPHICS )            /* New Zealand */
437CONS(197?, fforce2,   1292apvs,  0,        vc4000,   vc4000,     0,       "Fountain",        "Fountain Force 2", GAME_IMPERFECT_GRAPHICS )            /* New Zealand, Australia */
438CONS(197?, hmg1292,   1292apvs,  0,        vc4000,   vc4000,     0,       "Hanimex",         "HMG 1292", GAME_IMPERFECT_GRAPHICS )               /* Europe */
439CONS(197?, hmg1392,   1292apvs,  0,        vc4000,   vc4000,     0,       "Hanimex",         "HMG 1392", GAME_IMPERFECT_GRAPHICS )               /* Europe */
440CONS(197?, lnsy1392,   1292apvs,  0,        vc4000,   vc4000,     0,       "Lansay",         "Lansay 1392", GAME_IMPERFECT_GRAPHICS )            /* Europe */
441CONS(197?, vc6000,   1292apvs,  0,        vc4000,   vc4000,     0,       "Prinztronic",         "VC 6000", GAME_IMPERFECT_GRAPHICS )               /* UK */
442CONS(197?, database,   0,         vc4000,   vc4000,   vc4000,     0,       "Voltmace",        "Voltmace Database", GAME_IMPERFECT_GRAPHICS )            /* UK */
443CONS(197?, wvmdtbse,   database,  0,        vc4000,   vc4000,     0,       "Waddington's",        "Waddington Videomaster Database", GAME_IMPERFECT_GRAPHICS )      /* UK */
444CONS(197?, rwtrntcs,   0,         vc4000,   vc4000,   vc4000,     0,       "Rowtron",         "Rowtron Television Computer System", GAME_IMPERFECT_GRAPHICS )      /* UK */
445CONS(197?, telngtcs,   rwtrntcs,  0,        vc4000,   vc4000,     0,       "Teleng",         "Teleng Television Computer System", GAME_IMPERFECT_GRAPHICS )      /* UK */
446CONS(197?, krvnjvtv,   0,         vc4000,   vc4000,   vc4000,     0,       "Karvan",         "Jeu Video TV", GAME_IMPERFECT_GRAPHICS )            /* France */
447CONS(1979, oc2000,   krvnjvtv,  0,        vc4000,   vc4000,     0,       "S.O.E",          "OC-2000", GAME_IMPERFECT_GRAPHICS )               /* France */
448CONS(197?, mpt05,   0,         vc4000,   vc4000,   vc4000,     0,       "ITMC",           "MPT-05", GAME_IMPERFECT_GRAPHICS )               /* France */
415/*   YEAR  NAME      PARENT     COMPAT    MACHINE    INPUT        INIT      COMPANY         FULLNAME */
416CONS(1978, vc4000,   0,         0,        vc4000,    vc4000,      0,        "Interton",         "VC 4000",          GAME_IMPERFECT_GRAPHICS )               /* Germany, Austria, UK, Australia */
417CONS(197?, spc4000,  vc4000,    0,        vc4000,    vc4000,      0,        "Grundig",          "Super Play Computer 4000", GAME_IMPERFECT_GRAPHICS )         /* Germany, Austria */
418CONS(1979, cx3000tc, vc4000,    0,        vc4000,    vc4000,      0,        "Palson",           "CX 3000 Tele Computer", GAME_IMPERFECT_GRAPHICS )         /* Spain */
419CONS(197?, tvc4000,  vc4000,    0,        vc4000,    vc4000,      0,        "Korting",          "TVC-4000",         GAME_IMPERFECT_GRAPHICS )               /* Argentina */
420CONS(1976, 1292apvs, 0,         vc4000,   vc4000,    vc4000,      0,        "Radofin",          "1292 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
421CONS(1976, 1392apvs, 1292apvs,  0,        vc4000,    vc4000,      0,        "Radofin",          "1392 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
422CONS(1979, mpu1000,  1292apvs,  0,        vc4000,    vc4000,      0,        "Acetronic",        "MPU-1000",         GAME_IMPERFECT_GRAPHICS )               /* Europe */
423CONS(1979, mpu2000,  1292apvs,  0,        vc4000,    vc4000,      0,        "Acetronic",        "MPU-2000",         GAME_IMPERFECT_GRAPHICS )               /* Europe */
424CONS(197?, pp1292,   1292apvs,  0,        vc4000,    vc4000,      0,        "Audiosonic",       "PP-1292 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
425CONS(197?, pp1392,   1292apvs,  0,        vc4000,    vc4000,      0,        "Audiosonic",       "PP-1392 Advanced Programmable Video System", GAME_IMPERFECT_GRAPHICS )   /* Europe */
426CONS(197?, f1392,    1292apvs,  0,        vc4000,    vc4000,      0,        "Fountain",         "Fountain 1392",    GAME_IMPERFECT_GRAPHICS )            /* New Zealand */
427CONS(197?, fforce2,  1292apvs,  0,        vc4000,    vc4000,      0,        "Fountain",         "Fountain Force 2", GAME_IMPERFECT_GRAPHICS )            /* New Zealand, Australia */
428CONS(197?, hmg1292,  1292apvs,  0,        vc4000,    vc4000,      0,        "Hanimex",          "HMG 1292",         GAME_IMPERFECT_GRAPHICS )               /* Europe */
429CONS(197?, hmg1392,  1292apvs,  0,        vc4000,    vc4000,      0,        "Hanimex",          "HMG 1392",         GAME_IMPERFECT_GRAPHICS )               /* Europe */
430CONS(197?, lnsy1392, 1292apvs,  0,        vc4000,    vc4000,      0,        "Lansay",           "Lansay 1392",      GAME_IMPERFECT_GRAPHICS )            /* Europe */
431CONS(197?, vc6000,   1292apvs,  0,        vc4000,    vc4000,      0,        "Prinztronic",      "VC 6000",          GAME_IMPERFECT_GRAPHICS )               /* UK */
432CONS(197?, database, 0,         vc4000,   vc4000,    vc4000,      0,        "Voltmace",         "Voltmace Database", GAME_IMPERFECT_GRAPHICS )            /* UK */
433CONS(197?, wvmdtbse, database,  0,        vc4000,    vc4000,      0,        "Waddington's",     "Waddington Videomaster Database", GAME_IMPERFECT_GRAPHICS )      /* UK */
434CONS(197?, rwtrntcs, 0,         vc4000,   vc4000,    vc4000,      0,        "Rowtron",          "Rowtron Television Computer System", GAME_IMPERFECT_GRAPHICS )      /* UK */
435CONS(197?, telngtcs, rwtrntcs,  0,        vc4000,    vc4000,      0,        "Teleng",           "Teleng Television Computer System", GAME_IMPERFECT_GRAPHICS )      /* UK */
436CONS(197?, krvnjvtv, 0,         vc4000,   vc4000,    vc4000,      0,        "Karvan",           "Jeu Video TV",     GAME_IMPERFECT_GRAPHICS )            /* France */
437CONS(1979, oc2000,   krvnjvtv,  0,        vc4000,    vc4000,      0,        "S.O.E",            "OC-2000",          GAME_IMPERFECT_GRAPHICS )               /* France */
438CONS(197?, mpt05,    0,         vc4000,   vc4000,    vc4000,      0,        "ITMC",             "MPT-05",           GAME_IMPERFECT_GRAPHICS )               /* France */
449439
450440/*  Game List and Emulation Status
451441

Previous 15994 Revisions Next


© 1998-2018 The MESS Team