Previous 15994 Revisions Next

r3750 Sunday 7th December, 2008 at 21:23:16 UTC by Nathan Woods
Enabled some more drivers
[src/mess]mess.mak messdriv.c
[src/mess/machine]ay31015.c vectrex.c
[src/mess/video]vectrex.c

src/mess/video/vectrex.c
r3749r3750
321321
322322*********************************************************************/
323323
324static void vectrex_multiplexer(int mux)
324static void vectrex_multiplexer(running_machine *machine, int mux)
325325{
326326   timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &analog[mux], vectrex_via_out[PORTA], update_signal);
327327
r3749r3750
378378      if (!(data & 0x1) && (vectrex_via_out[PORTB] & 0x1))
379379      {
380380         /* MUX has been enabled */
381         timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, update_signal);
381         timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, update_signal);
382382      }
383383   }
384384   else
r3749r3750
402402   }
403403
404404   if (!(data & 0x1) && (vectrex_via_out[PORTB] & 0x1))
405      vectrex_multiplexer ((data >> 1) & 0x3);
405      vectrex_multiplexer (space->machine, (data >> 1) & 0x3);
406406
407407   vectrex_via_out[PORTB] = data;
408   timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &ramp, data & 0x80, update_signal);
408   timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &ramp, data & 0x80, update_signal);
409409}
410410
411411
r3749r3750
413413{
414414   /* DAC output always goes to Y integrator */
415415   vectrex_via_out[PORTA] = data;
416   timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &analog[A_Y], data, update_signal);
416   timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &analog[A_Y], data, update_signal);
417417
418418   if (!(vectrex_via_out[PORTB] & 0x1))
419      vectrex_multiplexer ((vectrex_via_out[PORTB] >> 1) & 0x3);
419      vectrex_multiplexer (space->machine, (vectrex_via_out[PORTB] >> 1) & 0x3);
420420}
421421
422422
423423static WRITE8_HANDLER(v_via_ca2_w)
424424{
425425   if (data == 0)
426      timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, vectrex_zero_integrators);
426      timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, vectrex_zero_integrators);
427427}
428428
429429
r3749r3750
448448            dx = abs(pen_x - x_int);
449449            dy = abs(pen_y - y_int);
450450            if (dx < 500000 && dy < 500000 && data > 0)
451               timer_set(machine, attotime_zero, NULL, 0, lightpen_trigger);
451               timer_set(space->machine, attotime_zero, NULL, 0, lightpen_trigger);
452452         }
453453      }
454454
455      timer_set(machine, attotime_zero, &blank, data, update_signal);
455      timer_set(space->machine, attotime_zero, &blank, data, update_signal);
456456      cb2 = data;
457457   }
458458}
src/mess/messdriv.c
r3749r3750
132132//   DRIVER( shmc1200 )
133133
134134   /* FAIRCHILD */
135//0128u5   DRIVER( channelf )   /* Fairchild Channel F VES - 1976               */
135   DRIVER( channelf )   /* Fairchild Channel F VES - 1976               */
136136
137137   /* COLECO */
138138   DRIVER( coleco )   /* ColecoVision (Original BIOS)                  */
r3749r3750
302302//0128u5   DRIVER( a800xl )   /* 1983 Atari 800 XL                        */
303303
304304   /* COMMODORE */
305//0128u5   DRIVER( kim1 )      /* Commodore (MOS) KIM-1 1975                  */
305   DRIVER( kim1 )      /* Commodore (MOS) KIM-1 1975                  */
306306//0128u5   DRIVER( sym1 )      /* Synertek SYM-1                           */
307307//0128u5   DRIVER( aim65 )      /* Rockwell AIM65                           */
308308
r3749r3750
583583//0128u5   DRIVER( kc85_4d )   /* VEB KC 85/4 with disk interface               */
584584
585585   /* MICROBEE SYSTEMS */
586//0128u5   DRIVER( mbee )      /* Microbee 16 Standard or Plus                  */
587//0128u5   DRIVER( mbeeic )   /* Microbee 32 IC                           */
588//0128u5   DRIVER( mbeepc )   /* Microbee 32 PC                           */
589//0128u5   DRIVER( mbeepc85 )   /* Microbee 32 PC85                           */
590//0128u5   DRIVER( mbee56 )   /* Microbee 56K (CP/M)                        */
586   DRIVER( mbee )      /* Microbee 16 Standard or Plus                  */
587   DRIVER( mbeeic )   /* Microbee 32 IC                           */
588   DRIVER( mbeepc )   /* Microbee 32 PC                           */
589   DRIVER( mbeepc85 )   /* Microbee 32 PC85                           */
590   DRIVER( mbee56 )   /* Microbee 56K (CP/M)                        */
591591
592592   /* TANDY RADIO SHACK */
593593//0128u5   DRIVER( trs80 )      /* TRS-80 Model I - Level I BASIC               */
r3749r3750
813813//0128u5   DRIVER( exidyd )   /* Sorcerer (cassette only)                        */
814814
815815   /* GALAKSIJA */
816//0128u5   DRIVER( galaxy )
817//0128u5   DRIVER( galaxyp )
816   DRIVER( galaxy )
817   DRIVER( galaxyp )
818818
819819   /* Lviv/L'vov */
820820//0128u5   DRIVER( lviv )      /* Lviv/L'vov                              */
r3749r3750
10641064//0128u5   DRIVER( bw2 )
10651065
10661066   /* Exeltel */
1067//0128u5   DRIVER( exl100 )
1067   DRIVER( exl100 )
10681068//   DRIVER( exeltel )
10691069
10701070   /* Comx World Operations Ltd */
src/mess/machine/vectrex.c
r3749r3750
286286   {
287287      vectrex_imager_status = param;
288288      coffset = param > 1? 3: 0;
289      timer_set (double_to_attotime(rtime * vectrex_imager_angles[0]), NULL, imager_colors[coffset+2], vectrex_imager_change_color);
290      timer_set (double_to_attotime(rtime * vectrex_imager_angles[1]), NULL, imager_colors[coffset+1], vectrex_imager_change_color);
291      timer_set (double_to_attotime(rtime * vectrex_imager_angles[2]), NULL, imager_colors[coffset], vectrex_imager_change_color);
289      timer_set (machine, double_to_attotime(rtime * vectrex_imager_angles[0]), NULL, imager_colors[coffset+2], vectrex_imager_change_color);
290      timer_set (machine, double_to_attotime(rtime * vectrex_imager_angles[1]), NULL, imager_colors[coffset+1], vectrex_imager_change_color);
291      timer_set (machine, double_to_attotime(rtime * vectrex_imager_angles[2]), NULL, imager_colors[coffset], vectrex_imager_change_color);
292292
293293      if (param == 2)
294294      {
295         timer_set (double_to_attotime(rtime * 0.50), NULL, 1, vectrex_imager_eye);
295         timer_set (machine, double_to_attotime(rtime * 0.50), NULL, 1, vectrex_imager_eye);
296296
297297         /* Index hole sensor is connected to IO7 which triggers also CA1 of VIA */
298298         via_set_input_ca1(machine, 0, 1);
299299         via_set_input_ca1(machine, 0, 0);
300300         vectrex_imager_pinlevel |= 0x80;
301         timer_set (double_to_attotime(rtime / 360.0), &vectrex_imager_pinlevel, 0, update_level);
301         timer_set (machine, double_to_attotime(rtime / 360.0), &vectrex_imager_pinlevel, 0, update_level);
302302      }
303303   }
304304}
r3749r3750
316316   if (!mcontrol && mcontrol ^ state)
317317   {
318318      state = mcontrol;
319      tmp = attotime_to_double(timer_get_time(machine));
319      tmp = attotime_to_double(timer_get_time(space->machine));
320320      wavel = tmp - sl;
321321      sl = tmp;
322322
r3749r3750
343343   if (mcontrol && mcontrol ^ state)
344344   {
345345      state = mcontrol;
346      pwl = attotime_to_double(timer_get_time(machine)) - sl;
346      pwl = attotime_to_double(timer_get_time(space->machine)) - sl;
347347   }
348348}
349349
src/mess/machine/ay31015.c
r3749r3750
716716   ay31015->tx_clock = ay31015->config->transmitter_clock;
717717   ay31015->rx_clock = ay31015->config->receiver_clock;
718718
719   ay31015->rx_timer = timer_alloc(machine,  ay31015_rx_process, (void *)device );
720   ay31015->tx_timer = timer_alloc(machine,  ay31015_tx_process, (void *)device );
719   ay31015->rx_timer = timer_alloc(device->machine, ay31015_rx_process, (void *)device );
720   ay31015->tx_timer = timer_alloc(device->machine, ay31015_tx_process, (void *)device );
721721
722722   ay31015_update_rx_timer( device );
723723   ay31015_update_tx_timer( device );
src/mess/mess.mak
r3749r3750
396396   $(MESSOBJ)/cpschngr.a \
397397   $(MESSOBJ)/cybiko.a \
398398   $(MESSOBJ)/dai.a \
399   $(MESSOBJ)/shared.a \
399   $(MESSOBJ)/epson.a \
400   $(MESSOBJ)/exeltel.a \
401   $(MESSOBJ)/exidy.a \
402   $(MESSOBJ)/fairch.a \
403   $(MESSOBJ)/galaxy.a \
404   $(MESSOBJ)/gce.a \
400405   $(MESSOBJ)/kaypro.a \
401406   $(MESSOBJ)/kim1.a \
402407   $(MESSOBJ)/lynx.a \
403408   $(MESSOBJ)/magnavox.a \
404409   $(MESSOBJ)/mbee.a \
410   $(MESSOBJ)/shared.a \
405411
406412#   $(MESSOBJ)/amstrad.a \
407413#   $(MESSOBJ)/atari.a \
r3749r3750
409415#   $(MESSOBJ)/einis.a \
410416#   $(MESSOBJ)/ep128.a \
411417#   $(MESSOBJ)/epoch.a \
412#   $(MESSOBJ)/epson.a \
413#   $(MESSOBJ)/exeltel.a \
414#   $(MESSOBJ)/exidy.a \
415#   $(MESSOBJ)/fairch.a \
416#   $(MESSOBJ)/galaxy.a \
417#   $(MESSOBJ)/gce.a \
418418#   $(MESSOBJ)/glasgow.a \
419419#   $(MESSOBJ)/gmaster.a \
420420#   $(MESSOBJ)/grundy.a \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team