Previous 15994 Revisions Next

r3687 Thursday 27th November, 2008 at 21:54:46 UTC by Miodrag Milanović
svi svision mpf compis enabled
[src/mess]mess.mak messdriv.c
[src/mess/audio]svision.c
[src/mess/drivers]mpf1.c svision.c
[src/mess/machine]compis.c
[src/mess/video]i82720.c

src/mess/audio/svision.c
r3686r3687
3232         svision_dma.size = (data ? data : 0x100) * 32;
3333         break;
3434      case 3:
35         svision_dma.step = cpunum_get_clock(0) / (256.0 * machine->sample_rate * (1 + (data & 3)));
35         svision_dma.step = cpu_get_clock(space->machine->cpu[0]) / (256.0 * space->machine->sample_rate * (1 + (data & 3)));
3636         svision_dma.right = data & 4;
3737         svision_dma.left = data & 8;
3838         svision_dma.ca14to16 = ((data & 0x70) >> 4) << 14;
r3686r3687
5555   {
5656      case 0:
5757         svision_noise.volume=data&0xf;
58         svision_noise.step= cpunum_get_clock(0) / (256.0*machine->sample_rate*(1+(data>>4)));
58         svision_noise.step= cpu_get_clock(space->machine->cpu[0]) / (256.0*space->machine->sample_rate*(1+(data>>4)));
5959         break;
6060      case 1:
6161         svision_noise.count = data + 1;
r3686r3687
8787         if (size)
8888         {
8989            //   channel->size=(int)(machine->sample_rate*(size<<5)/4e6);
90            channel->size= (int) (machine->sample_rate * (size << 5) / cpunum_get_clock(0));
90            channel->size= (int) (machine->sample_rate * (size << 5) / cpu_get_clock(machine->cpu[0]));
9191         }
9292         else
9393         {
r3686r3687
195195         }
196196         else
197197         {
198            sample = memory_read_byte(space, addr);
198            sample = memory_read_byte(cpu_get_address_space(Machine->cpu[0], ADDRESS_SPACE_PROGRAM), addr);
199199         }
200200         if (((unsigned)svision_dma.pos) & 1)
201201            s = (sample & 0xf);
src/mess/video/i82720.c
r3686r3687
205205      /* We cannot go higher than 15 */
206206      gdcp->fifo.write_pos = (gdcp->fifo.write_pos + 1) & 0x0f;
207207   } else {
208      LOG(("gdc_fifo_enqueue: The fifo is full at PC = %04X\n",
209                    activecpu_get_pc()));
208//      LOG(("gdc_fifo_enqueue: The fifo is full at PC = %04X\n",
209                    //cpu_get_pc(space->cpu)));
210210   }
211211}
212212
r3686r3687
12741274
12751275      default:
12761276         logerror("%04X: GDC UNKNOWN Port Write %04X = %04X\n",
1277                  activecpu_get_pc(), offset, data);
1277                  cpu_get_pc(space->cpu), offset, data);
12781278         break;
12791279   }
12801280}
r3686r3687
12941294      case 0x00:   /* Status register */
12951295
12961296         LOG(("%04X: GDC Port %04X (Status) Read",
1297                       activecpu_get_pc(), offset));
1297                       cpu_get_pc(space->cpu), offset));
12981298         /* Optimize this later, i.e. when we know what to return */
12991299         data = ( gdc_fifo_reading(&gdc) && !gdc_fifo_empty(&gdc)) |
13001300            (gdc_fifo_full(&gdc) << 1) |
r3686r3687
13081308      case 0x01:   /* FIFO Read */
13091309
13101310         LOG(("%04X: GDC Port %04X (Fifo) Read",
1311                       activecpu_get_pc(),
1311                       cpu_get_pc(space->cpu),
13121312                       offset));
13131313         if ( gdc_fifo_reading(&gdc)) {
13141314            UINT8* data_p = gdc_fifo_dequeue(&gdc);
r3686r3687
13251325
13261326      default:
13271327         LOG(("%04X: GDC UNKNOWN Port Read %04X",
1328                          activecpu_get_pc(), offset));
1328                          cpu_get_pc(space->cpu), offset));
13291329         data = 0x44;
1330         if ( activecpu_get_pc() == 0xF952D ) {
1330         if ( cpu_get_pc(space->cpu) == 0xF952D ) {
13311331            data = 0x04;
1332         } else if ( activecpu_get_pc() == 0xF953B ) {
1332         } else if ( cpu_get_pc(space->cpu) == 0xF953B ) {
13331333            data = 0x64;
13341334         }
13351335         /* If we return 0xff zoom will be 2 */
src/mess/messdriv.c
r3686r3687
178178   DRIVER( gmaster )   /* Hartung Gamemaster                         */
179179
180180   /* WATARA */
181//128u4   DRIVER( svision )   /* Supervision Handheld                        */
182//128u4   DRIVER( svisions )
183//128u4   DRIVER( svisionp )
184//128u4   DRIVER( svisionn )
185//128u4   DRIVER( tvlinkp )
181   DRIVER( svision )   /* Supervision Handheld                        */
182   DRIVER( svisions )
183   DRIVER( svisionp )
184   DRIVER( svisionn )
185   DRIVER( tvlinkp )
186186
187187   /* INTERTON */
188188   DRIVER( vc4000 )   /* Interton vc4000                           */
r3686r3687
850850
851851   /* Team Concepts */
852852   /* CPU not known, else should be easy, look into drivers/comquest.c */
853//128u4   DRIVER( comquest )   /* Comquest Plus German                        */
853   DRIVER( comquest )   /* Comquest Plus German                        */
854854
855855   /* Hewlett Packard */
856856   DRIVER( hp48s )      /* HP48 S */
r3686r3687
859859   DRIVER( hp48gx )   /* HP48 GX */
860860
861861   /* SpectraVideo */
862//128u4   DRIVER( svi318 )   /* SVI-318 (PAL)                           */
863//128u4   DRIVER( svi318n )   /* SVI-318 (NTSC)                           */
864//128u4   DRIVER( svi328 )   /* SVI-328 (PAL)                           */
865//128u4   DRIVER( svi328n )   /* SVI-328 (NTSC)                           */
866//128u4   DRIVER( sv328p80 )   /* SVI-328 (PAL) + SVI-806 80 column card         */
867//128u4   DRIVER( sv328n80 )   /* SVI-328 (NTSC) + SVI-806 80 column card         */
862   DRIVER( svi318 )   /* SVI-318 (PAL)                           */
863   DRIVER( svi318n )   /* SVI-318 (NTSC)                           */
864   DRIVER( svi328 )   /* SVI-328 (PAL)                           */
865   DRIVER( svi328n )   /* SVI-328 (NTSC)                           */
866   DRIVER( sv328p80 )   /* SVI-328 (PAL) + SVI-806 80 column card         */
867   DRIVER( sv328n80 )   /* SVI-328 (NTSC) + SVI-806 80 column card         */
868868
869869   /* Andrew Donald Booth (this is the name of the designer, not a company) */
870870//   DRIVER( apexc53 )   /* 1951(?) APEXC: All-Purpose Electronic X-ray Computer */
r3686r3687
883883   DRIVER(dai)         /* DAI                                    */
884884
885885   /* Telenova */
886//128u4   DRIVER(compis)      /* 1985 Telenova Compis                        */
886   DRIVER(compis)      /* 1985 Telenova Compis                        */
887887
888888   /* Multitech */
889//128u4   DRIVER(mpf1)      /* 1979 Multitech Micro Professor 1               */
890//128u4   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B            */
889   DRIVER(mpf1)      /* 1979 Multitech Micro Professor 1               */
890   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B            */
891891
892892   /* Telercas Oy */
893893//   DRIVER(tmc1800)
src/mess/machine/compis.c
r3686r3687
334334   UINT16 data;
335335   data = 0xffff;
336336   /* DMA acknowledge if iSBX-218A has DMA enabled */
337     if (input_port_read(machine, "DSW1"))
337     if (input_port_read(space->machine, "DSW1"))
338338     {
339      data = nec765_dack_r(machine, 0);
339      data = nec765_dack_r(space, 0);
340340   }
341341
342342   return data;
r3686r3687
347347   switch(offset)
348348   {
349349      case 2:
350         nec765_data_w(machine, 0, data);
350         nec765_data_w(space, 0, data);
351351         break;
352352      default:
353353         logerror("FDC Unknown Port Write %04X = %04X\n", offset, data);
r3686r3687
362362   switch(offset)
363363   {
364364      case 0:
365         data = nec765_status_r(machine, 0);
365         data = nec765_status_r(space, 0);
366366         break;
367367      case 1:
368         data = nec765_data_r(machine, 0);
368         data = nec765_data_r(space, 0);
369369         break;
370370      default:
371371         logerror("FDC Unknown Port Read %04X\n", offset);
r3686r3687
554554
555555READ16_HANDLER ( compis_usart_r )
556556{
557   return msm8251_data_r(machine, offset);
557   return msm8251_data_r(space, offset);
558558}
559559
560560WRITE16_HANDLER ( compis_usart_w )
r3686r3687
562562   switch (offset)
563563   {
564564      case 0x00:
565         msm8251_data_w(machine, 0, data);
565         msm8251_data_w(space, 0, data);
566566         break;
567567      case 0x01:
568         msm8251_control_w(machine, 0, data);
568         msm8251_control_w(space, 0, data);
569569         break;
570570      default:
571571         logerror("USART Unknown Port Write %04X = %04X\n", offset, data);
r3686r3687
584584      logerror("(%f) **** Acknowledged interrupt vector %02X\n", attotime_to_double(timer_get_time()), i186.intr.poll_status & 0x1f);
585585
586586   /* clear the interrupt */
587   cpu_set_input_line(machine->cpu[0], 0, CLEAR_LINE);
587   cpu_set_input_line(device, 0, CLEAR_LINE);
588588   i186.intr.pending = 0;
589589
590590   /* clear the request and set the in-service bit */
r3686r3687
692692   /* generate the appropriate interrupt */
693693   i186.intr.poll_status = 0x8000 | new_vector;
694694   if (!i186.intr.pending)
695      cpunum_set_input_line(machine, 2, 0, ASSERT_LINE);
695      cpu_set_input_line(machine->cpu[2], 0, ASSERT_LINE);
696696   i186.intr.pending = 1;
697   cpu_trigger(machine, CPU_RESUME_TRIGGER);
697   cpuexec_trigger(machine, CPU_RESUME_TRIGGER);
698698   if (LOG_OPTIMIZATION) logerror("  - trigger due to interrupt pending\n");
699699   if (LOG_INTERRUPTS) logerror("(%f) **** Requesting interrupt vector %02X\n", attotime_to_double(timer_get_time()), new_vector);
700700}
701701
702702
703static void handle_eoi(int data)
703static void handle_eoi(running_machine *machine,int data)
704704{
705705   int i, j;
706706
r3686r3687
719719         case 0x0d:   i186.intr.in_service &= ~0x20;   break;
720720         case 0x0e:   i186.intr.in_service &= ~0x40;   break;
721721         case 0x0f:   i186.intr.in_service &= ~0x80;   break;
722         default:   logerror("%05X:ERROR - 80186 EOI with unknown vector %02X\n", cpu_get_pc(space->cpu), data & 0x1f);
722         default:   logerror("%05X:ERROR - 80186 EOI with unknown vector %02X\n", cpu_get_pc(machine->cpu[0]), data & 0x1f);
723723      }
724724      if (LOG_INTERRUPTS) logerror("(%f) **** Got EOI for vector %02X\n", attotime_to_double(timer_get_time()), data & 0x1f);
725725   }
r3686r3687
890890      diff = new_control ^ t->control;
891891      if (diff & 0x001c)
892892        logerror("%05X:ERROR! -unsupported timer mode %04X\n",
893            cpu_get_pc(space->cpu),
893            cpu_get_pc(Machine->cpu[0]),
894894            new_control);
895895
896896      /* if we have real changes, update things */
r3686r3687
992992   diff = new_control ^ d->control;
993993   if (diff & 0x6811)
994994     logerror("%05X:ERROR! - unsupported DMA mode %04X\n",
995         cpu_get_pc(space->cpu),
995         cpu_get_pc(Machine->cpu[0]),
996996         new_control);
997997
998998   /* if we're going live, set a timer */
r3686r3687
10551055      case 0x12:
10561056         if (LOG_PORTS) logerror("%05X:read 80186 interrupt poll\n", cpu_get_pc(space->cpu));
10571057         if (i186.intr.poll_status & 0x8000)
1058            int_callback(machine, 0);
1058            int_callback(space->machine->cpu[0],0);
10591059         return i186.intr.poll_status;
10601060
10611061      case 0x13:
r3686r3687
12321232   {
12331233      case 0x11:
12341234         if (LOG_PORTS) logerror("%05X:80186 EOI = %04X\n", cpu_get_pc(space->cpu), data16);
1235         handle_eoi(0x8000);
1236         update_interrupt_state(machine);
1235         handle_eoi(space->machine,0x8000);
1236         update_interrupt_state(space->machine);
12371237         break;
12381238
12391239      case 0x12:
r3686r3687
12531253         i186.intr.ext[1] = (i186.intr.ext[1] & ~0x08) | ((data16 >> 2) & 0x08);
12541254         i186.intr.ext[2] = (i186.intr.ext[2] & ~0x08) | ((data16 >> 3) & 0x08);
12551255         i186.intr.ext[3] = (i186.intr.ext[3] & ~0x08) | ((data16 >> 4) & 0x08);
1256         update_interrupt_state(machine);
1256         update_interrupt_state(space->machine);
12571257         break;
12581258
12591259      case 0x15:
12601260         if (LOG_PORTS) logerror("%05X:80186 interrupt priority mask = %04X\n", cpu_get_pc(space->cpu), data16);
12611261         i186.intr.priority_mask = data16 & 0x0007;
1262         update_interrupt_state(machine);
1262         update_interrupt_state(space->machine);
12631263         break;
12641264
12651265      case 0x16:
12661266         if (LOG_PORTS) logerror("%05X:80186 interrupt in-service = %04X\n", cpu_get_pc(space->cpu), data16);
12671267         i186.intr.in_service = data16 & 0x00ff;
1268         update_interrupt_state(machine);
1268         update_interrupt_state(space->machine);
12691269         break;
12701270
12711271      case 0x17:
12721272         if (LOG_PORTS) logerror("%05X:80186 interrupt request = %04X\n", cpu_get_pc(space->cpu), data16);
12731273         i186.intr.request = (i186.intr.request & ~0x00c0) | (data16 & 0x00c0);
1274         update_interrupt_state(machine);
1274         update_interrupt_state(space->machine);
12751275         break;
12761276
12771277      case 0x18:
12781278         if (LOG_PORTS) logerror("%05X:WARNING - wrote to 80186 interrupt status = %04X\n", cpu_get_pc(space->cpu), data16);
12791279         i186.intr.status = (i186.intr.status & ~0x8007) | (data16 & 0x8007);
1280         update_interrupt_state(machine);
1280         update_interrupt_state(space->machine);
12811281         break;
12821282
12831283      case 0x19:
r3686r3687
13861386         /* we need to do this at a time when the I86 context is swapped in */
13871387         /* this register is generally set once at startup and never again, so it's a good */
13881388         /* time to set it up */
1389         cpunum_set_irq_callback(0, int_callback);
1389         cpu_set_irq_callback(space->cpu, int_callback);
13901390         break;
13911391
13921392      case 0x60:
r3686r3687
14461446         temp = (data16 & 0x0fff) << 8;
14471447         if (data16 & 0x1000)
14481448         {
1449            memory_install_read16_handler(machine, 2, ADDRESS_SPACE_PROGRAM, temp, temp + 0xff, 0, 0, i186_internal_port_r);
1450            memory_install_write16_handler(machine, 2, ADDRESS_SPACE_PROGRAM, temp, temp + 0xff, 0, 0, i186_internal_port_w);
1449            memory_install_read16_handler(cpu_get_address_space(space->machine->cpu[2], ADDRESS_SPACE_PROGRAM), temp, temp + 0xff, 0, 0, i186_internal_port_r);
1450            memory_install_write16_handler(cpu_get_address_space(space->machine->cpu[2], ADDRESS_SPACE_PROGRAM), temp, temp + 0xff, 0, 0, i186_internal_port_w);
14511451         }
14521452         else
14531453         {
14541454            temp &= 0xffff;
1455            memory_install_read16_handler(machine, 2, ADDRESS_SPACE_IO, temp, temp + 0xff, 0, 0, i186_internal_port_r);
1456            memory_install_write16_handler(machine, 2, ADDRESS_SPACE_IO, temp, temp + 0xff, 0, 0, i186_internal_port_w);
1455            memory_install_read16_handler(cpu_get_address_space(space->machine->cpu[2], ADDRESS_SPACE_IO), temp, temp + 0xff, 0, 0, i186_internal_port_r);
1456            memory_install_write16_handler(cpu_get_address_space(space->machine->cpu[2], ADDRESS_SPACE_IO), temp, temp + 0xff, 0, 0, i186_internal_port_w);
14571457         }
14581458/*         popmessage("Sound CPU reset");*/
14591459         break;
r3686r3687
15291529DRIVER_INIT( compis )
15301530{
15311531   compis_init( &i82720_interface );
1532   cpunum_set_irq_callback(0, compis_irq_callback);
1532   cpu_set_irq_callback(machine->cpu[0], compis_irq_callback);
15331533   memset (&compis, 0, sizeof (compis) );
15341534}
15351535
r3686r3687
15561556   compis_keyb_init();
15571557
15581558   /* OSP PIC 8259 */
1559   cpunum_set_irq_callback(0, compis_irq_callback);
1559   cpu_set_irq_callback(machine->cpu[0], compis_irq_callback);
15601560
15611561   compis_devices.pic8259_master = (device_config*)device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_master" );
15621562   compis_devices.pic8259_slave = (device_config*)device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_slave" );
r3686r3687
15691569INTERRUPT_GEN( compis_vblank_int )
15701570{
15711571//   compis_gdc_vblank_int();
1572   compis_keyb_update(machine);
1572   compis_keyb_update(device->machine);
15731573}
src/mess/mess.mak
r3686r3687
390390   $(MESSOBJ)/cbmshare.a \
391391   $(MESSOBJ)/cgenie.a \
392392   $(MESSOBJ)/coleco.a \
393   $(MESSOBJ)/compis.a \
393394   $(MESSOBJ)/comx.a \
394395   $(MESSOBJ)/concept.a \
395396   $(MESSOBJ)/cpschngr.a \
r3686r3687
422423   $(MESSOBJ)/mikro80.a \
423424   $(MESSOBJ)/mk2.a \
424425   $(MESSOBJ)/motorola.a \
426   $(MESSOBJ)/multitch.a \
425427   $(MESSOBJ)/nascom1.a \
426428   $(MESSOBJ)/nec.a \
427429   $(MESSOBJ)/necpc.a \
r3686r3687
455457   $(MESSOBJ)/ssystem3.a \
456458   $(MESSOBJ)/super80.a \
457459   $(MESSOBJ)/svi.a \
460   $(MESSOBJ)/svision.a \
458461   $(MESSOBJ)/tangerin.a \
459462   $(MESSOBJ)/tatung.a \
463   $(MESSOBJ)/teamconc.a \
460464   $(MESSOBJ)/telmac.a \
461465   $(MESSOBJ)/thomson.a \
462466   $(MESSOBJ)/ti85.a \
r3686r3687
475479   $(MESSOBJ)/atari.a \
476480
477481#   $(MESSOBJ)/coco.a \
478#   $(MESSOBJ)/compis.a \
479482#   $(MESSOBJ)/dgn_beta.a \
480483#   $(MESSOBJ)/epson.a \
481484#   $(MESSOBJ)/exeltel.a \
482485#   $(MESSOBJ)/glasgow.a \
483486#   $(MESSOBJ)/mephisto.a \
484487#   $(MESSOBJ)/mk1.a \
485#   $(MESSOBJ)/multitch.a \
486#   $(MESSOBJ)/svision.a \
487488#   $(MESSOBJ)/synertec.a \
488#   $(MESSOBJ)/teamconc.a \
489489
490490
491491
src/mess/drivers/mpf1.c
r3686r3687
4545      va_start( v, s_fmt );
4646      vsprintf( buf, s_fmt, v );
4747      va_end( v );
48      logerror( "%08x: %s", cpu_get_pc(space->cpu), buf );
48//      logerror( "%08x: %s", cpu_get_pc(space->cpu), buf );
4949   }
5050}
5151
r3686r3687
6262{
6363   // halt-LED; the red one, is turned on when the processor is halted
6464   // TODO: processor seems to halt, but restarts(?) at 0x0000 after a while -> fix
65   led_halt = (UINT8) cpunum_get_info_int(0, CPUINFO_INT_REGISTER + Z80_HALT);
65   led_halt = (UINT8) cpu_get_info_int(machine->cpu[0], CPUINFO_INT_REGISTER + Z80_HALT);
6666   set_led_status(1, led_tone);
6767}
6868
r3686r3687
369369        The next statement converts this to the following assignment: (which is compatible with draw_led())
370370        bit      7 6 5 4 3 2 1 0
371371        segment  p g f e d c b a */
372   if( data | ( cpu_get_pc(space->cpu) != 0x63C ) )
372   if( data | ( cpu_get_pc(device->machine->cpu[0]) != 0x63C ) )
373373   {
374374      data = ( (data & 0x08) >> 3 ) |
375375             ( (data & 0x10) >> 3 ) |
r3686r3687
434434
435435static TIMER_CALLBACK( irq0_callback )
436436{
437   irq0_line_hold( machine, 0 );
437   irq0_line_hold( machine->cpu[0] );
438438}
439439
440440static MACHINE_RESET( mpf1 )
src/mess/drivers/svision.c
r3686r3687
9393   switch (offset)
9494   {
9595      case 0x20:
96         data = input_port_read(machine, "JOY");
96         data = input_port_read(space->machine, "JOY");
9797         break;
9898      case 0x21:
9999         data &= ~0xf;
r3686r3687
115115         break;
116116      case 0x24:
117117         svision.timer_shot = FALSE;
118         svision_irq( machine );
118         svision_irq( space->machine );
119119         break;
120120      case 0x25:
121121         svision_dma.finished = FALSE;
122         svision_irq( machine );
122         svision_irq( space->machine );
123123         break;
124124      default:
125125         logerror("%.6f svision read %04x %02x\n", attotime_to_double(timer_get_time()),offset,data);
r3686r3687
143143         break;
144144      case 0x26: /* bits 5,6 memory management for a000? */
145145         logerror("%.6f svision write %04x %02x\n", attotime_to_double(timer_get_time()),offset,data);
146         memory_set_bankptr(machine, 1, memory_region(machine, "user1") + ((svision_reg[0x26] & 0xe0) << 9));
147         svision_irq( machine );
146         memory_set_bankptr(space->machine, 1, memory_region(space->machine, "user1") + ((svision_reg[0x26] & 0xe0) << 9));
147         svision_irq( space->machine );
148148         break;
149149      case 0x23: /* delta hero irq routine write */
150150         value = data;
r3686r3687
158158         timer_reset(svision.timer1, ATTOTIME_IN_CYCLES(value * delay, 0));
159159         break;
160160      case 0x10: case 0x11: case 0x12: case 0x13:
161         svision_soundport_w(machine, svision_channel + 0, offset & 3, data);
161         svision_soundport_w(space->machine, svision_channel + 0, offset & 3, data);
162162         break;
163163      case 0x14: case 0x15: case 0x16: case 0x17:
164         svision_soundport_w(machine, svision_channel + 1, offset & 3, data);
164         svision_soundport_w(space->machine, svision_channel + 1, offset & 3, data);
165165         break;
166166      case 0x18: case 0x19: case 0x1a: case 0x1b: case 0x1c:
167         svision_sounddma_w(machine, offset - 0x18, data);
167         svision_sounddma_w(space, offset - 0x18, data);
168168         break;
169169      case 0x28: case 0x29: case 0x2a:
170         svision_noise_w(machine, offset - 0x28, data);
170         svision_noise_w(space, offset - 0x28, data);
171171         break;
172172      default:
173173         logerror("%.6f svision write %04x %02x\n", attotime_to_double(timer_get_time()), offset, data);
r3686r3687
183183         if (offset >= 0x800 && offset < 0x840)
184184         {
185185            /* strange effects when modifying palette */
186            return svision_r(machine, offset);
186            return svision_r(space, offset);
187187         }
188188         else
189189         {
190            return svision_r(machine, offset);
190            return svision_r(space, offset);
191191         }
192192   }
193193}
r3686r3687
217217         }
218218         break;
219219      default:
220         svision_w(machine, offset,data);
220         svision_w(space, offset,data);
221221         if (offset >= 0x800 && offset < 0x840)
222222         {
223223            UINT16 c;
r3686r3687
429429static INTERRUPT_GEN( svision_frame_int )
430430{
431431   if (BANK&1)
432      cpu_set_input_line(machine->cpu[0], INPUT_LINE_NMI, PULSE_LINE);
432      cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
433433
434434   if (svision_channel->count)
435435      svision_channel->count--;
r3686r3687
453453   svision.timer1 = timer_alloc(svision_timer, NULL);
454454   svision_pet.on = TRUE;
455455   svision_pet.timer = timer_alloc(svision_pet_timer, NULL);
456   timer_pulse(attotime_mul(ATTOTIME_IN_SEC(8), 256/cpunum_get_clock(0)), NULL, 0, svision_pet_timer);
456   timer_pulse(attotime_mul(ATTOTIME_IN_SEC(8), 256/cpu_get_clock(machine->cpu[0])), NULL, 0, svision_pet_timer);
457457}
458458
459459static MACHINE_RESET( svision )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team