Previous 15994 Revisions Next

r3324 Wednesday 24th September, 2008 at 21:14:44 UTC by Fabio Priuli
[INTV] very preliminary support for .bin (=.int & .itv) images
[hash]intv.hsi
[src/mess/drivers]intv.c
[src/mess/machine]intv.c

hash/intv.hsi
r3323r3324
2525   </hash>
2626   <hash crc32="b45633cf" name="All-Star Major League Baseball (Mattel)">
2727      <year>1983</year>
28      <extrainfo>0 84 210 0 0 0 0</extrainfo>
2829   </hash>
2930   <hash crc32="6f91fbc1" name="Armor Battle (Mattel)">
3031      <year>1978</year>
r3323r3324
3738   </hash>
3839   <hash crc32="13ff363c" name="Atlantis (Imagic) [!]">
3940      <year>1981</year>
41      <extrainfo>0 68 0 0 0 0 0</extrainfo>
4042   </hash>
4143   <hash crc32="b35c1101" name="Auto Racing (Mattel)">
4244      <year>1979</year>
4345   </hash>
4446   <hash crc32="8ad19ab3" name="B-17 Bomber (Mattel) [!]">
4547      <year>1981</year>
48      <extrainfo>0 84 210 0 0 0 2</extrainfo>
4649   </hash>
4750   <hash crc32="dab36628" name="Baseball (Mattel)">
4851      <year>1978</year>
r3323r3324
5255   </hash>
5356   <hash crc32="c047d487" name="Beauty and the Beast (Imagic) [!]">
5457      <year>1982</year>
58      <extrainfo>0 68 0 0 0 0 0</extrainfo>
5559   </hash>
5660   <hash crc32="b03f739b" name="Blockade Runner (Interphase)">
5761      <year>1983</year>
5862   </hash>
5963   <hash crc32="515e1d7e" name="Body Slam - Super Pro Wrestling (Intv Corp)">
6064      <year>1988</year>
65      <extrainfo>0 84 148 0 0 0 0</extrainfo>
6166   </hash>
6267   <hash crc32="32697b72" name="Bomb Squad (Mattel) [!]">
6368      <year>1982</year>
69      <extrainfo>0 84 210 0 0 0 2</extrainfo>
6470   </hash>
6571   <hash crc32="18e08520" name="Bouncing Pixels by JRMZ Electronics (PD)">
6672      <year>1999</year>
r3323r3324
7379   </hash>
7480   <hash crc32="999cceed" name="Bump 'N' Jump (Mattel)">
7581      <year>1982-83</year>
82      <extrainfo>0 84 210 242 0 0 0</extrainfo>
7683   </hash>
7784   <hash crc32="43806375" name="BurgerTime! (Mattel)">
7885      <year>1982</year>
r3323r3324
8592   </hash>
8693   <hash crc32="d5363b8c" name="Centipede (Atarisoft)">
8794      <year>1983</year>
95      <extrainfo>0 100 0 0 0 0 0</extrainfo>
8896   </hash>
8997   <hash crc32="4cc46a04" name="Championship Tennis (Mattel)">
9098      <year>1985</year>
99      <extrainfo>0 84 212 0 0 0 0</extrainfo>
91100   </hash>
92101   <hash crc32="36e1d858" name="Checkers (Mattel)">
93102      <year>1979</year>
94103   </hash>
95104   <hash crc32="0bf464c6" name="Chip Shot - Super Pro Golf (Intv Corp)">
96105      <year>1987</year>
106      <extrainfo>0 84 148 0 0 0 0</extrainfo>
97107   </hash>
98108   <hash crc32="3289c8ba" name="Commando (Mattel)">
99109      <year>1987</year>
110      <extrainfo>0 84 148 0 0 0 0</extrainfo>
100111   </hash>
101112   <hash crc32="4b23a757" name="Congo Bongo (Sega)">
102113      <year>1983</year>
114      <extrainfo>0 86 0 0 0 0 0</extrainfo>
103115   </hash>
104116   <hash crc32="e1ee408f" name="Crazy Clones (PD)">
105117      <year>1981</year>
106118   </hash>
107119   <hash crc32="6802b191" name="Deep Pockets - Super Pro Pool and Billiards (Realtime) [!]">
108120      <year>1990</year>
121      <extrainfo>0 84 148 0 0 0 0</extrainfo>
109122   </hash>
110123   <hash crc32="d8f99aa2" name="Defender (Atarisoft)">
111124      <year>1983</year>
125      <extrainfo>0 86 0 0 0 0 0</extrainfo>
112126   </hash>
113127   <hash crc32="5e6a8cd8" name="Demon Attack (Imagic) [!]">
114128      <year>1982</year>
129      <extrainfo>0 68 0 0 0 0 0</extrainfo>
115130   </hash>
116131   <hash crc32="159af7f7" name="Dig Dug (Intv Corp)">
117132      <year>1987</year>
133      <extrainfo>0 86 146 0 0 0 0</extrainfo>
118134   </hash>
119135   <hash crc32="13ee56f1" name="Diner (Intv Corp)">
120136      <year>1987</year>
137      <extrainfo>0 84 148 0 0 0 0</extrainfo>
121138   </hash>
122139   <hash crc32="c30f61c0" name="Donkey Kong (Coleco)">
123140      <year>1982</year>
r3323r3324
196213   </hash>
197214   <hash crc32="ff83ff80" name="Hover Force (Intv Corp)">
198215      <year>1986</year>
216      <extrainfo>0 84 148 210 0 0 0</extrainfo>
199217   </hash>
200218   <hash crc32="a3147630" name="Hypnotic Lights (Mattel)">
201219      <year>1981</year>
r3323r3324
232250   </hash>
233251   <hash crc32="c83eea4c" name="Intellivision Test Cartridge and Baseball (Mattel)">
234252      <year>1978</year>
253      <extrainfo>0 82 114 0 0 0 0</extrainfo>
235254   </hash>
236255   <hash crc32="0de7579d" name="IntelliVoice BIOS (Mattel)">
237256      <year>1981</year>
238257   </hash>
239258   <hash crc32="ee5f1be2" name="Jetsons, The - Ways With Words (Mattel)">
240259      <year>1983</year>
260      <extrainfo>0 84 210 0 0 0 1</extrainfo>
241261   </hash>
242262   <hash crc32="4422868e" name="King of the Mountain (Mattel)">
243263      <year>1982</year>
264      <extrainfo>0 84 212 0 0 0 0</extrainfo>
244265   </hash>
245266   <hash crc32="8c9819a2" name="Kool-Aid Man (Mattel)">
246267      <year>1983</year>
r3323r3324
250271   </hash>
251272   <hash crc32="3825c25b" name="Land Battle (Mattel)">
252273      <year>1982</year>
274      <extrainfo>0 84 0 0 0 212 0</extrainfo>
253275   </hash>
254276   <hash crc32="604611c0" name="Las Vegas Blackjack and Poker (Mattel)">
255277      <year>1979</year>
r3323r3324
280302   </hash>
281303   <hash crc32="573b9b6d" name="Masters of the Universe - The Power of He-Man! (Mattel)">
282304      <year>1983</year>
305      <extrainfo>0 84 210 242 0 0 0</extrainfo>
283306   </hash>
284307   <hash crc32="7d0f8162" name="Maze Demo #1 by JRMZ Electronics (PD)">
285308      <year>2000</year>
r3323r3324
289312   </hash>
290313   <hash crc32="ff68aa22" name="Melody Blaster (Mattel) [!]">
291314      <year>1983</year>
315      <extrainfo>0 84 210 0 0 0 1</extrainfo>
292316   </hash>
293317   <hash crc32="e00e23e7" name="Mickey's Hello World (PD)">
294318      <year>1999</year>
r3323r3324
298322   </hash>
299323   <hash crc32="9d57498f" name="Mind Strike! (Mattel) [!]">
300324      <year>1982</year>
325      <extrainfo>0 84 210 0 0 0 1</extrainfo>
301326   </hash>
302327   <hash crc32="bd731e3c" name="Minotaur (Mattel)">
303328      <year>1981</year>
r3323r3324
325350   </hash>
326351   <hash crc32="bef0b0c7" name="Mr. Basic Meets Bits 'N Bytes (Mattel) [!]">
327352      <year>1983</year>
353      <extrainfo>0 84 210 0 0 0 1</extrainfo>
328354   </hash>
329355   <hash crc32="0b50a367" name="Mr. Basic Meets Bits 'N Bytes (Mattel)">
330356      <year>1983</year>
331357      <status>Known Bad Dump</status>
358      <extrainfo>0 84 210 0 0 0 1</extrainfo>
332359   </hash>
333360   <hash crc32="dbab54ca" name="NASL Soccer (Mattel)">
334361      <year>1979</year>
r3323r3324
350377   </hash>
351378   <hash crc32="e5d1a8d2" name="Number Jumble (Mattel) [!]">
352379      <year>1983</year>
380      <extrainfo>0 84 210 242 0 0 0</extrainfo>
353381   </hash>
354382   <hash crc32="a21c31c3" name="Pac-Man (Atarisoft)">
355383      <year>1983</year>
384      <extrainfo>0 86 0 0 0 0 0</extrainfo>
356385   </hash>
357386   <hash crc32="6e4e8eb4" name="Pac-Man (Intv Corp)">
358387      <year>1983</year>
388      <extrainfo>0 86 0 0 0 0 0</extrainfo>
359389   </hash>
360390   <hash crc32="169e3584" name="PBA Bowling (Mattel)">
361391      <year>1980</year>
r3323r3324
365395   </hash>
366396   <hash crc32="d7c5849c" name="Pinball (Mattel)">
367397      <year>1981</year>
398      <extrainfo>0 84 210 0 0 0 0</extrainfo>
368399   </hash>
369400   <hash crc32="9c75efcc" name="Pitfall! (Activision) [!]">
370401      <year>1982</year>
371402   </hash>
372403   <hash crc32="bb939881" name="Pole Position (Intv Corp)">
373404      <year>1986</year>
405      <extrainfo>0 84 148 0 0 0 0</extrainfo>
374406   </hash>
375407   <hash crc32="a982e8d5" name="Pong (PD)">
376408      <year>1999</year>
r3323r3324
413445   </hash>
414446   <hash crc32="e9e3f60d" name="Scooby Doo's Maze Chase (Mattel)">
415447      <year>1983</year>
448      <extrainfo>0 84 148 0 0 0 1</extrainfo>
416449   </hash>
417450   <hash crc32="99ae29a9" name="Sea Battle (Mattel)">
418451      <year>1980</year>
r3323r3324
434467   </hash>
435468   <hash crc32="800b572f" name="Slam Dunk - Super Pro Basketball (Intv Corp)">
436469      <year>1987</year>
470      <extrainfo>0 84 148 0 0 0 0</extrainfo>
437471   </hash>
438472   <hash crc32="ba68ff28" name="Slap Shot - Super Pro Hockey (Intv Corp)">
439473      <year>1987</year>
r3323r3324
443477   </hash>
444478   <hash crc32="72c2a343" name="Song Player - Back in the USSR (PD)">
445479      <year>1999</year>
480      <extrainfo>0 84 148 0 0 0 0</extrainfo>
446481   </hash>
447482   <hash crc32="e7c04ab6" name="Song Player - Closing Time (PD)">
448483      <year>2001</year>
484      <extrainfo></extrainfo>
449485   </hash>
450486   <hash crc32="5e3130e1" name="Song Player - Copacabana (PD)">
451487      <year>1999</year>
488      <extrainfo>0 84 146 0 0 0 1</extrainfo>
452489   </hash>
453490   <hash crc32="c91b1d79" name="Song Player - Creep (PD)">
454491      <year>1999</year>
492      <extrainfo>0 84 0 0 0 0 1</extrainfo>
455493   </hash>
456494   <hash crc32="82d2e346" name="Song Player - Nut March (PD)">
457495      <year>1999</year>
496      <extrainfo>0 84 0 0 0 0 1</extrainfo>
458497   </hash>
459498   <hash crc32="fcf06a8b" name="Song Player - Nut Reed (PD)">
460499      <year>1999</year>
500      <extrainfo>0 84 0 0 0 0 1</extrainfo>
461501   </hash>
462502   <hash crc32="5914220a" name="Song Player - Nut Trep (PD)">
463503      <year>1999</year>
504      <extrainfo>0 84 0 0 0 0 1</extrainfo>
464505   </hash>
465506   <hash crc32="71f5be4e" name="Song Player - Nut Waltz (PD)">
466507      <year>1999</year>
508      <extrainfo>0 84 148 0 0 0 1</extrainfo>
467509   </hash>
468510   <hash crc32="437c0e2d" name="Song Player - Secret Agent Man (PD)">
469511      <year>1999</year>
512      <extrainfo>0 84 148 0 0 0 1</extrainfo>
470513   </hash>
471514   <hash crc32="da5d77ea" name="Song Player - Take on Me 3 (PD)">
472515      <year>1999</year>
516      <extrainfo>0 84 0 0 0 0 1</extrainfo>
473517   </hash>
474518   <hash crc32="10d721ca" name="Song Player - Take on Me 6 (PD)">
475519      <year>1999</year>
520      <extrainfo>0 84 0 0 0 0 1</extrainfo>
476521   </hash>
477522   <hash crc32="cc6f4f90" name="Song Player - Too Sexy (PD)">
478523      <year>1999</year>
524      <extrainfo>0 84 0 0 0 0 1</extrainfo>
479525   </hash>
480526   <hash crc32="e8b8eba5" name="Space Armada (Mattel)">
481527      <year>1981</year>
r3323r3324
491537   </hash>
492538   <hash crc32="3784dc52" name="Space Spartans (Mattel) [!]">
493539      <year>1981</year>
540      <extrainfo>0 84 0 0 0 0 2</extrainfo>
494541   </hash>
495542   <hash crc32="a95021fc" name="Spiker! - Super Pro Volleyball (Intv Corp)">
496543      <year>1988</year>
544      <extrainfo>0 84 148 0 0 0 0</extrainfo>
497545   </hash>
498546   <hash crc32="b745c1ca" name="Stadium Mud Buggies (Intv Corp)">
499547      <year>1988</year>
548      <extrainfo>0 84 148 0 0 0 0</extrainfo>
500549   </hash>
501550   <hash crc32="2deacd15" name="Stampede (Activision) [!]">
502551      <year>1982</year>
r3323r3324
521570   </hash>
522571   <hash crc32="16bfb8eb" name="Super Pro Decathlon (Intv Corp)">
523572      <year>1988</year>
573      <extrainfo>0 84 148 0 0 0 0</extrainfo>
524574   </hash>
525575   <hash crc32="32076e9d" name="Super Pro Football (Intv Corp)">
526576      <year>1986</year>
577      <extrainfo>0 84 148 0 0 0 0</extrainfo>
527578   </hash>
528579   <hash crc32="51b82eb7" name="Super Soccer (Mattel)">
529580      <year>1983</year>
581      <extrainfo>0 84 210 242 0 0 0</extrainfo>
530582   </hash>
531583   <hash crc32="15e88fce" name="Swords and Serpents (Imagic) [!]">
532584      <year>1982</year>
r3323r3324
542594   </hash>
543595   <hash crc32="d6495910" name="Thin Ice (Prototype) (Intv Corp) [!]">
544596      <year>1983</year>
597       <extrainfo>0 84 210 242 0 0 0</extrainfo>
545598   </hash>
546599   <hash crc32="c1f1ca74" name="Thunder Castle (Mattel)">
547600      <year>1982</year>
601       <extrainfo>0 84 210 242 0 0 0</extrainfo>
548602   </hash>
549603   <hash crc32="d1d352a0" name="Tower of Doom (Intv Corp)">
550604      <year>1986</year>
605      <extrainfo>0 84 148 210 242 0 0</extrainfo>
551606   </hash>
552607   <hash crc32="1ac989e2" name="Triple Action (Mattel)">
553608      <year>1981</year>
554609   </hash>
555610   <hash crc32="095638c0" name="Triple Challenge (Intv Corp)">
556611      <year>1986</year>
612      <extrainfo>0 84 148 193 210 0 0</extrainfo>
557613   </hash>
558614   <hash crc32="ca447bbd" name="TRON - Deadly Discs (Mattel)">
559615      <year>1981</year>
r3323r3324
566622   </hash>
567623   <hash crc32="07fb9435" name="TRON - Solar Sailer (Mattel)">
568624      <year>1982</year>
625      <extrainfo>0 84 210 0 0 0 2</extrainfo>
569626   </hash>
570627   <hash crc32="6f23a741" name="Tropical Trouble (Imagic) [!]">
571628      <year>1982</year>
r3323r3324
584641   </hash>
585642   <hash crc32="752fd927" name="USCF Chess (Mattel)">
586643      <year>1981</year>
644      <extrainfo>0 84 0 0 0 212 0</extrainfo>
587645   </hash>
588646   <hash crc32="f9e0789e" name="Utopia (Mattel)">
589647      <year>1981</year>
590648   </hash>
591649   <hash crc32="a4a20354" name="Vectron (Mattel)">
592650      <year>1982</year>
651      <extrainfo>0 84 210 0 0 0 0</extrainfo>
593652   </hash>
594653   <hash crc32="6efa67b2" name="Venture (Coleco)">
595654      <year>1982</year>
r3323r3324
599658   </hash>
600659   <hash crc32="15d9d27a" name="World Cup Football (Nice Ideas)">
601660      <year>1985</year>
661      <extrainfo>0 84 210 242 0 0 0</extrainfo>
602662   </hash>
603663   <hash crc32="c2063c08" name="World Series Major League Baseball (Mattel) [!]">
604664      <year>1983</year>
665      <extrainfo>1 84 210 226 242 0 0</extrainfo>
605666   </hash>
606667   <hash crc32="a12c27e1" name="World Series Major League Baseball (Mattel)">
607668      <year>1983</year>
608669      <status>Known Bad Dump</status>
670      <extrainfo>1 84 210 226 242 0 0</extrainfo>
609671   </hash>
610672   <hash crc32="24b667b9" name="Worm Whomper (Activision) [!]">
611673      <year>1983</year>
src/mess/machine/intv.c
r3323r3324
44#include "cpu/cp1610/cp1610.h"
55#include "image.h"
66
7#define INTELLIVOICE_MASK   0x02
8#define ECS_MASK         0x01
9
710UINT8 intv_gramdirty;
811UINT8 intv_gram[512];
912UINT8 intv_gramdirtybytes[512];
r3323r3324
316319   intv_ram16[offset] = data&0xffff;
317320}
318321
319static int intv_load_rom_file(const device_config *image, int required)
322static int intv_load_rom_file(const device_config *image)
320323{
321    int i;
324    int i,j;
322325
323326   UINT8 temp;
324327   UINT8 num_segments;
r3323r3324
332335   UINT8 low_byte;
333336
334337   UINT8 *memory = memory_region(image->machine, "main");
335
336   image_fread(image, &temp,1);         /* header */
337   if (temp != 0xa8)
338   const char *filetype = image_filetype(image);
339   
340   /* if it is in .rom format, we enter here */
341   if (!mame_stricmp (filetype, "rom"))
338342   {
339      return INIT_FAIL;
340   }
343      image_fread(image, &temp, 1);         /* header */
344      if (temp != 0xa8)
345      {
346         return INIT_FAIL;
347      }
341348
342   image_fread(image, &num_segments,1);
349      image_fread(image, &num_segments, 1);
343350
344   image_fread(image, &temp,1);
345   if (temp != (num_segments ^ 0xff))
346   {
347      return INIT_FAIL;
351      image_fread(image, &temp, 1);
352      if (temp != (num_segments ^ 0xff))
353      {
354         return INIT_FAIL;
355      }
356
357      for (i = 0; i < num_segments; i++)
358      {
359         image_fread(image, &start_seg, 1);
360         current_address = start_seg * 0x100;
361
362         image_fread(image, &end_seg, 1);
363         end_address = end_seg * 0x100 + 0xff;
364
365         while (current_address <= end_address)
366         {
367            image_fread(image, &low_byte, 1);
368            memory[(current_address << 1) + 1] = low_byte;
369            image_fread(image, &high_byte, 1);
370            memory[current_address << 1] = high_byte;
371            current_address++;
372         }
373
374         /* Here we should calculate and compare the CRC16... */
375         image_fread(image, &temp, 1);
376         image_fread(image, &temp, 1);
377      }
378
379      /* Access tables and fine address restriction tables are not supported ATM */
380      for (i = 0; i < (16 + 32 + 2); i++)
381      {
382         image_fread(image, &temp, 1);
383      }
384      return INIT_PASS;
348385   }
349
350   for(i=0;i<num_segments;i++)
386   /* otherwise, we load it as a .bin file, using extrainfo from intv.hsi in place of .cfg */
387   else
351388   {
352      image_fread(image,&start_seg,1);
353      current_address = start_seg*0x100;
389      /* This code is a blatant hack, due to impossibility to load a separate .cfg file in MESS. */
390      /* It shall be eventually replaced by the .xml loading */
354391
355      image_fread(image,&end_seg,1);
356      end_address = end_seg*0x100 + 0xff;
392      /* extrainfo format */
393      // 1. mapper number (to deal with bankswitch). no bankswitch is mapper 0 (most games).
394      // 2.->5. current images have at most 4 chunks of data. we store here block size and location to load
395      //   (value & 0xf0) >> 4 is the location / 0x1000
396      //   (value & 0x0f) is the size / 0x800
397      // 6. some images have a ram chunk. as above we store location and size in 8 bits
398      // 7. extra = 1 ECS, 2 Intellivoice
399      int start, size;
400      int mapper, rom[5], ram, extra;
357401
358      while(current_address <= end_address)
402      if (!image_extrainfo(image))
359403      {
360         image_fread(image,&low_byte,1);
361         memory[(current_address<<1)+1] = low_byte;
362         image_fread(image,&high_byte,1);
363         memory[current_address<<1] = high_byte;
364         current_address++;
404         /* If no extrainfo, we assume a single 0x2000 chunk at 0x5000 */
405         for (i = 0; i < 0x2000; i++ )
406         {
407            image_fread(image, &low_byte, 1);
408            memory[((0x5000 + i) << 1) + 1] = low_byte;
409            image_fread(image, &high_byte, 1);
410            memory[(0x5000 + i) << 1] = high_byte;
411         }
365412      }
413      else
414      {
415         sscanf(image_extrainfo(image),"%d %d %d %d %d %d %d", &mapper, &rom[0], &rom[1], &rom[2],
416                                                &rom[3], &ram, &extra);
366417
367      image_fread(image,&temp,1);
368      image_fread(image,&temp,1);
369   }
418//         logerror("extrainfo: %d %d %d %d %d %d %d \n", mapper, rom[0], rom[1], rom[2],
419//                                                rom[3], ram, extra);
370420
371   for(i=0;i<(16+32+2);i++)
372   {
373      image_fread(image,&temp,1);
421         if (mapper)
422         {
423            logerror("Bankswitch not yet implemented! \n");
424         }
425
426         if (ram)
427         {
428            logerror("RAM banks not yet implemented! \n");
429         }
430
431         if (extra & INTELLIVOICE_MASK)
432         {
433            logerror("Intellivoice support not yet implemented! \n");
434         }
435
436         if (extra & ECS_MASK)
437         {
438            logerror("ECS support is only partial\n");
439            logerror("(even with the intvkbd driver)! \n");
440         }
441
442         for (j = 0; j < 4; j++)
443         {
444            start = (( rom[j] & 0xf0 ) >> 4) * 0x1000;
445            size = ( rom[j] & 0x0f ) * 0x800;
446           
447            /* some cart has to be loaded to 0x4800, but none goes to 0x4000. Hence, we use */
448            /* 0x04 << 4 in extrainfo (to reduce the stored values) and fix the value here. */
449            if (start == 0x4000) start += 0x800;
450           
451//            logerror("step %d: %d %d \n", j, start / 0x1000, size / 0x1000);
452     
453            for (i = 0; i < size; i++ )
454            {
455               image_fread(image, &low_byte, 1);
456               memory[((start + i) << 1) + 1] = low_byte;
457               image_fread(image, &high_byte, 1);
458               memory[(start + i) << 1] = high_byte;
459            }
460         }
461      }
462
463      return INIT_PASS;
374464   }
375   return INIT_PASS;
376465}
377466
378467DEVICE_START( intv_cart )
r3323r3324
382471   UINT8 *memory = memory_region(device->machine, "main");
383472
384473   /* assume playcable is absent */
385   memory[0x4800<<1] = 0xff;
386   memory[(0x4800<<1)+1] = 0xff;
474   memory[0x4800 << 1] = 0xff;
475   memory[(0x4800 << 1) + 1] = 0xff;
387476
388477   /* assume keyboard is absent */
389   memory[0x7000<<1] = 0xff;
390   memory[(0x7000<<1)+1] = 0xff;
478   memory[0x7000 << 1] = 0xff;
479   memory[(0x7000 << 1) + 1] = 0xff;
480
391481   return DEVICE_START_OK;
392482}
393483
r3323r3324
398488   UINT8 *memory = memory_region(image->machine, "main");
399489
400490   /* assume playcable is absent */
401   memory[0x4800<<1] = 0xff;
402   memory[(0x4800<<1)+1] = 0xff;
491   memory[0x4800 << 1] = 0xff;
492   memory[(0x4800 << 1) + 1] = 0xff;
403493
404494   /* assume keyboard is absent */
405   memory[0x7000<<1] = 0xff;
406   memory[(0x7000<<1)+1] = 0xff;
495   memory[0x7000 << 1] = 0xff;
496   memory[(0x7000 << 1) + 1] = 0xff;
407497
408   return intv_load_rom_file(image, 1);
498   return intv_load_rom_file(image);
409499}
410500
411501#ifdef UNUSED_FUNCTION
r3323r3324
496586      UINT8 *memory = memory_region(image->machine, "main");
497587
498588      /* assume playcable is absent */
499      memory[0x4800<<1] = 0xff;
500      memory[(0x4800<<1)+1] = 0xff;
589      memory[0x4800 << 1] = 0xff;
590      memory[(0x4800 << 1) + 1] = 0xff;
501591
502      intv_load_rom_file(image, 0);
592      intv_load_rom_file(image);
503593   }
504594
505595   if (id == 1) /* Keyboard component cartridge slot */
r3323r3324
507597      UINT8 *memory = memory_region(image->machine, "keyboard");
508598
509599      /* Assume an 8K cart, like BASIC */
510      image_fread(image,&memory[0xe000],0x2000);
600      image_fread(image, &memory[0xe000], 0x2000);
511601   }
512602
513603   return INIT_PASS;
src/mess/drivers/intv.c
r3323r3324
478478      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(intvkbd_cart); break;
479479
480480      /* --- the following bits of info are returned as NULL-terminated strings --- */
481      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "int,rom,bin"); break;
481      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "int,rom,bin,itv"); break;
482482
483483      default:                              cartslot_device_getinfo(devclass, state, info); break;
484484   }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team