Previous 15994 Revisions Next

r3832 Saturday 13th December, 2008 at 14:36:11 UTC by Miodrag Milanović
TMS9901 converted to device
[src/mess/drivers]geneve.c ti99_4p.c ti99_4x.c ti99_8.c tm990189.c
[src/mess/includes]geneve.h
[src/mess/machine]geneve.c ti99_4x.c ti99_4x.h tms9901.c tms9901.h

src/mess/includes/geneve.h
r3831r3832
99#ifndef GENEVE_H_
1010#define GENEVE_H_
1111
12#include "machine/tms9901.h"
1213
1314/* defines */
1415
r3831r3832
4142
4243WRITE8_HANDLER ( geneve_peb_mode_cru_w );
4344
45extern const tms9901_interface tms9901reset_param_ti99;
4446
4547#endif /* GENEVE_H_ */
src/mess/machine/tms9901.c
r3831r3832
99
1010#include "tms9901.h"
1111
12#define MAX_9901 2
13
1412/*
1513   TMS9901 emulation.
1614
r3831r3832
8684   tms9901 state structure
8785*/
8886
89typedef struct tms9901_t
87
88/***************************************************************************
89    TYPE DEFINITIONS
90***************************************************************************/
91
92typedef struct _tms9901_t tms9901_t;
93struct _tms9901_t
9094{
9195   /* interrupt registers */
9296   int supported_int_mask;   /* mask:  bit #n is set if pin #n is supported as an interrupt pin,
r3831r3832
118122                         state, write interrupt enable mask)
119123                       1 = clock mode (read/write clock interval) */
120124
121   /* driver-dependent read and write handlers */
122   int (*read_handlers[4])(int offset);
123   void (*write_handlers[16])(int offset, int data);
124
125   /* interrupt callback to notify driver of changes in intreq and ic0-3 pins */
126   void (*interrupt_callback)(int intreq, int ic);
127
128125   /* tms9901 clock rate (PHI* pin, normally connected to TMS9900 Phi3*) */
129126   /* decrementer rate equates PHI* rate/64 (e.g. 46875Hz for a 3MHz clock)
130127   (warning: 3MHz on a tms9900 is equivalent to 12MHz on a tms9995 or tms99000) */
131128   double clock_rate;
132} tms9901_t;
133129
134static tms9901_t tms9901[MAX_9901];
130   /* Pointer to interface */
131   const tms9901_interface *intf;   
132};
135133
136134
137/*
138   prototypes
139*/
135/***************************************************************************
136    INLINE FUNCTIONS
137***************************************************************************/
140138
141static void tms9901_field_interrupts(int which);
142static TIMER_CALLBACK(decrementer_callback);
143static void tms9901_timer_reload(int which);
139INLINE tms9901_t *get_token(const device_config *device)
140{
141   assert(device != NULL);
142   assert(device->type == TMS9901);
143   return (tms9901_t *) device->token;
144}
144145
145146
146
147147/*
148148   utilities
149149*/
r3831r3832
189189   return bit;
190190}
191191
192
193192/*
194   initialize the tms9901 core
195*/
196void tms9901_init(running_machine *machine,int which, const tms9901reset_param *param)
197{
198   int i;
199
200   tms9901[which].timer = timer_alloc(machine, decrementer_callback, NULL);
201
202   tms9901[which].supported_int_mask = param->supported_int_mask;
203
204   for (i=0; i<4; i++)
205      tms9901[which].read_handlers[i] = param->read_handlers[i];
206
207   for (i=0; i<16; i++)
208      tms9901[which].write_handlers[i] = param->write_handlers[i];
209
210   tms9901[which].interrupt_callback = param->interrupt_callback;
211
212   tms9901[which].clock_rate = param->clock_rate;
213
214
215   tms9901[which].int_state = 0;
216
217
218   tms9901_reset(which);
219}
220
221
222void tms9901_cleanup(int which)
223{
224   if (tms9901[which].timer)
225   {
226      timer_reset(tms9901[which].timer, attotime_never);   /* FIXME - timers should only be allocated once */
227      tms9901[which].timer = NULL;
228   }
229}
230
231void tms9901_reset(int which)
232{
233   tms9901[which].timer_int_pending = 0;
234   tms9901[which].enabled_ints = 0;
235
236   tms9901[which].pio_direction = 0;
237   tms9901[which].pio_direction_mirror = 0;
238   tms9901[which].pio_output = tms9901[which].pio_output_mirror = 0;
239
240   tms9901_field_interrupts(which);
241
242   tms9901[which].mode9901 = 0;
243
244   tms9901[which].clockinvl = 0;
245   tms9901_timer_reload(which);
246}
247
248/*
249193   should be called after any change to int_state or enabled_ints.
250194*/
251static void tms9901_field_interrupts(int which)
195static void tms9901_field_interrupts(const device_config *device)
252196{
253197   int current_ints;
198   tms9901_t *tms = get_token(device);
254199
255200   /* int_state: state of lines int1-int15 */
256   current_ints = tms9901[which].int_state;
257   if (tms9901[which].clockinvl != 0)
201   current_ints = tms->int_state;
202   if (tms->clockinvl != 0)
258203   {   /* if timer is enabled, INT3 pin is overriden by timer */
259      if (tms9901[which].timer_int_pending)
204      if (tms->timer_int_pending)
260205         current_ints |= TMS9901_INT3;
261206      else
262207         current_ints &= ~ TMS9901_INT3;
r3831r3832
264209
265210   /* enabled_ints: enabled interrupts */
266211   /* mask out all int pins currently set as output */
267   current_ints &= tms9901[which].enabled_ints & (~ tms9901[which].pio_direction_mirror);
212   current_ints &= tms->enabled_ints & (~ tms->pio_direction_mirror);
268213
269214   if (current_ints)
270215   {
r3831r3832
272217        we simply look for the first bit set to 1 in current_ints... */
273218      int level = find_first_bit(current_ints);
274219
275      tms9901[which].int_pending = TRUE;
220      tms->int_pending = TRUE;
276221
277      if (tms9901[which].interrupt_callback)
278         (*tms9901[which].interrupt_callback)(1, level);
222      if (tms->intf->interrupt_callback)
223         (*tms->intf->interrupt_callback)(device, 1, level);
279224   }
280225   else
281226   {
282      tms9901[which].int_pending = FALSE;
227      tms->int_pending = FALSE;
283228
284      if (tms9901[which].interrupt_callback)
285         (*tms9901[which].interrupt_callback)(0, 0xf);
229      if (tms->intf->interrupt_callback)
230         (*tms->intf->interrupt_callback)(device, 0, 0xf);
286231   }
287232}
288233
r3831r3832
296241
297242   0<=pin_number<=15
298243*/
299void tms9901_set_single_int(int which, int pin_number, int state)
244void tms9901_set_single_int(const device_config *device, int pin_number, int state)
300245{
246   tms9901_t *tms = get_token(device);
301247   /* remember new state of INTn* pin state */
302248   if (state)
303      tms9901[which].int_state |= 1 << pin_number;
249      tms->int_state |= 1 << pin_number;
304250   else
305      tms9901[which].int_state &= ~ (1 << pin_number);
251      tms->int_state &= ~ (1 << pin_number);
306252
307253   /* we do not need to always call this function - time for an optimization */
308   tms9901_field_interrupts(which);
254   tms9901_field_interrupts(device);
309255}
310256
311257
r3831r3832
315261*/
316262static TIMER_CALLBACK(decrementer_callback)
317263{
318   int which = param;
319   tms9901[which].timer_int_pending = TRUE;         /* decrementer interrupt requested */
264   const device_config *device = (const device_config *) ptr;
265   tms9901_t *tms = get_token(device);
266   
267   tms->timer_int_pending = TRUE;         /* decrementer interrupt requested */
320268
321   tms9901_field_interrupts(which);
269   tms9901_field_interrupts(device);
322270}
323271
324272/*
325273   load the content of clockinvl into the decrementer
326274*/
327static void tms9901_timer_reload(int which)
275static void tms9901_timer_reload(const device_config *device)
328276{
329   if (tms9901[which].clockinvl)
277   tms9901_t *tms = get_token(device);
278   if (tms->clockinvl)
330279   {   /* reset clock interval */
331      timer_adjust_periodic(tms9901[which].timer, double_to_attotime((double) tms9901[which].clockinvl / (tms9901[which].clock_rate / 64.)), which, double_to_attotime((double) tms9901[which].clockinvl / (tms9901[which].clock_rate / 64.)));
280      timer_adjust_periodic(tms->timer, double_to_attotime((double) tms->clockinvl / (tms->clock_rate / 64.)), 0, double_to_attotime((double) tms->clockinvl / (tms->clock_rate / 64.)));
332281   }
333282   else
334283   {   /* clock interval == 0 -> no timer */
335      timer_enable(tms9901[which].timer, 0);
284      timer_enable(tms->timer, 0);
336285   }
337286}
338287
r3831r3832
355304
356305   bit 16-31: current status of the P0-P15 pins (quits timer mode, too...)
357306*/
358int tms9901_cru_r(int which, int offset)
307READ8_DEVICE_HANDLER ( tms9901_cru_r )
359308{
360309   int answer;
310   tms9901_t *tms = get_token(device);
361311
362312   offset &= 0x003;
363313
364314   switch (offset)
365315   {
366316   case 0:
367      if (tms9901[which].mode9901)
317      if (tms->mode9901)
368318      {   /* clock mode */
369         answer = ((tms9901[which].latchedtimer & 0x7F) << 1) | 0x01;
319         answer = ((tms->latchedtimer & 0x7F) << 1) | 0x01;
370320      }
371321      else
372322      {   /* interrupt mode */
373         answer = ((~ tms9901[which].int_state) & tms9901[which].supported_int_mask) & 0xFF;
323         answer = ((~ tms->int_state) & tms->supported_int_mask) & 0xFF;
374324
375         if (tms9901[which].read_handlers[0])
376            answer |= (* tms9901[which].read_handlers[0])(0);
325         if (tms->intf->read_handlers[0])
326            answer |= (* tms->intf->read_handlers[0])(0);
377327
378         answer &= ~ tms9901[which].pio_direction_mirror;
379         answer |= (tms9901[which].pio_output_mirror & tms9901[which].pio_direction_mirror) & 0xFF;
328         answer &= ~ tms->pio_direction_mirror;
329         answer |= (tms->pio_output_mirror & tms->pio_direction_mirror) & 0xFF;
380330      }
381331      break;
382332   case 1:
383      if (tms9901[which].mode9901)
333      if (tms->mode9901)
384334      {   /* clock mode */
385         answer = (tms9901[which].latchedtimer & 0x3F80) >> 7;
386         if (! tms9901[which].int_pending)
335         answer = (tms->latchedtimer & 0x3F80) >> 7;
336         if (! tms->int_pending)
387337            answer |= 0x80;
388338      }
389339      else
390340      {   /* interrupt mode */
391         answer = ((~ tms9901[which].int_state) & tms9901[which].supported_int_mask) >> 8;
341         answer = ((~ tms->int_state) & tms->supported_int_mask) >> 8;
392342
393         if (tms9901[which].read_handlers[1])
394            answer |= (* tms9901[which].read_handlers[1])(1);
343         if (tms->intf->read_handlers[1])
344            answer |= (* tms->intf->read_handlers[1])(1);
395345
396         answer &= ~ (tms9901[which].pio_direction_mirror >> 8);
397         answer |= (tms9901[which].pio_output_mirror & tms9901[which].pio_direction_mirror) >> 8;
346         answer &= ~ (tms->pio_direction_mirror >> 8);
347         answer |= (tms->pio_output_mirror & tms->pio_direction_mirror) >> 8;
398348      }
399349      break;
400350   case 2:
401351      /* exit timer mode */
402      tms9901[which].mode9901 = 0;
352      tms->mode9901 = 0;
403353
404      answer = (tms9901[which].read_handlers[2]) ? (* tms9901[which].read_handlers[2])(2) : 0;
354      answer = (tms->intf->read_handlers[2]) ? (* tms->intf->read_handlers[2])(2) : 0;
405355
406      answer &= ~ tms9901[which].pio_direction;
407      answer |= (tms9901[which].pio_output & tms9901[which].pio_direction) & 0xFF;
356      answer &= ~ tms->pio_direction;
357      answer |= (tms->pio_output & tms->pio_direction) & 0xFF;
408358
409359      break;
410360   default:
411361      /* exit timer mode */
412      tms9901[which].mode9901 = 0;
362      tms->mode9901 = 0;
413363
414      answer = (tms9901[which].read_handlers[3]) ? (* tms9901[which].read_handlers[3])(3) : 0;
364      answer = (tms->intf->read_handlers[3]) ? (* tms->intf->read_handlers[3])(3) : 0;
415365
416      answer &= ~ (tms9901[which].pio_direction >> 8);
417      answer |= (tms9901[which].pio_output & tms9901[which].pio_direction) >> 8;
366      answer &= ~ (tms->pio_direction >> 8);
367      answer |= (tms->pio_output & tms->pio_direction) >> 8;
418368
419369      break;
420370   }
r3831r3832
435385
436386   bit 16-31: set output state of P0-P15 (and set them as output pin) (quit timer mode, too...)
437387*/
438void tms9901_cru_w(int which, int offset, int data)
388WRITE8_DEVICE_HANDLER ( tms9901_cru_w )
439389{
390   tms9901_t *tms = get_token(device);
391
440392   data &= 1;   /* clear extra bits */
441393   offset &= 0x01F;
442394
443395   switch (offset)
444396   {
445397   case 0x00:   /* write to mode bit */
446      if (tms9901[which].mode9901 != data)
398      if (tms->mode9901 != data)
447399      {
448         tms9901[which].mode9901 = data;
400         tms->mode9901 = data;
449401
450         if (tms9901[which].mode9901)
402         if (tms->mode9901)
451403         {
452404            /* we are switching to clock mode: latch the current value of
453405            the decrementer register */
454            if (tms9901[which].clockinvl)
455               tms9901[which].latchedtimer = ceil(attotime_to_double(timer_timeleft(tms9901[which].timer)) * (tms9901[which].clock_rate / 64.));
406            if (tms->clockinvl)
407               tms->latchedtimer = ceil(attotime_to_double(timer_timeleft(tms->timer)) * (tms->clock_rate / 64.));
456408            else
457               tms9901[which].latchedtimer = 0;      /* timer inactive... */
409               tms->latchedtimer = 0;      /* timer inactive... */
458410         }
459411         else
460412         {
r3831r3832
483435                     :  Bit in clock interval
484436      */
485437      /* offset is the index of the modified bit of register (-> interrupt number -1) */
486      if (tms9901[which].mode9901)
438      if (tms->mode9901)
487439      {   /* modify clock interval */
488440         int mask = 1 << ((offset & 0x0F) - 1);   /* corresponding mask */
489441
490442         if (data)
491            tms9901[which].clockinvl |= mask;      /* set bit */
443            tms->clockinvl |= mask;      /* set bit */
492444         else
493            tms9901[which].clockinvl &= ~ mask;      /* clear bit */
445            tms->clockinvl &= ~ mask;      /* clear bit */
494446
495447         /* reset clock timer */
496         tms9901_timer_reload(which);
448         tms9901_timer_reload(device);
497449      }
498450      else
499451      {   /* modify interrupt enable mask */
500452         int mask = 1 << (offset & 0x0F);   /* corresponding mask */
501453
502454         if (data)
503            tms9901[which].enabled_ints |= mask;      /* set bit */
455            tms->enabled_ints |= mask;      /* set bit */
504456         else
505            tms9901[which].enabled_ints &= ~ mask;      /* unset bit */
457            tms->enabled_ints &= ~ mask;      /* unset bit */
506458
507459         if (offset == 3)
508            tms9901[which].timer_int_pending = FALSE;   /* SBO 3 clears pending timer interrupt (??) */
460            tms->timer_int_pending = FALSE;   /* SBO 3 clears pending timer interrupt (??) */
509461
510         tms9901_field_interrupts(which);      /* changed interrupt state */
462         tms9901_field_interrupts(device);      /* changed interrupt state */
511463      }
512464      break;
513465   case 0x0F:
514      if (tms9901[which].mode9901)
466      if (tms->mode9901)
515467      {   /* in clock mode, this is the soft reset bit */
516468         if (! data)
517469         {   /* TMS9901 soft reset */
518470            /* all output pins are input pins again */
519            tms9901[which].pio_direction = 0;
520            tms9901[which].pio_direction_mirror = 0;
471            tms->pio_direction = 0;
472            tms->pio_direction_mirror = 0;
521473
522            tms9901[which].enabled_ints = 0;   /* right??? */
474            tms->enabled_ints = 0;   /* right??? */
523475         }
524476      }
525477      else
526478      {   /* modify interrupt enable mask */
527479         if (data)
528            tms9901[which].enabled_ints |= 0x4000;      /* set bit */
480            tms->enabled_ints |= 0x4000;      /* set bit */
529481         else
530            tms9901[which].enabled_ints &= ~0x4000;      /* unset bit */
482            tms->enabled_ints &= ~0x4000;      /* unset bit */
531483
532         tms9901_field_interrupts(which);      /* changed interrupt state */
484         tms9901_field_interrupts(device);      /* changed interrupt state */
533485      }
534486      break;
535487   case 0x10:
r3831r3832
553505         int mask = (1 << pin);
554506
555507         /* exit timer mode */
556         tms9901[which].mode9901 = 0;
508         tms->mode9901 = 0;
557509
558         tms9901[which].pio_direction |= mask;         /* set up as output pin */
510         tms->pio_direction |= mask;         /* set up as output pin */
559511
560512         if (data)
561            tms9901[which].pio_output |= mask;
513            tms->pio_output |= mask;
562514         else
563            tms9901[which].pio_output &= ~ mask;
515            tms->pio_output &= ~ mask;
564516
565517         if (pin >= 7)
566518         {   /* pins P7-P15 are mirrored as INT15*-INT7* */
567519            int pin2 = 22 - pin;
568520            int mask2 = (1 << pin2);
569521
570            tms9901[which].pio_direction_mirror |= mask2;   /* set up as output pin */
522            tms->pio_direction_mirror |= mask2;   /* set up as output pin */
571523
572524            if (data)
573               tms9901[which].pio_output_mirror |= mask2;
525               tms->pio_output_mirror |= mask2;
574526            else
575               tms9901[which].pio_output_mirror &= ~ mask2;
527               tms->pio_output_mirror &= ~ mask2;
576528         }
577529
578         if (tms9901[which].write_handlers[pin] != NULL)
579            (* tms9901[which].write_handlers[pin])(pin, data);
530         if (tms->intf->write_handlers[pin] != NULL)
531            (* tms->intf->write_handlers[pin])(pin, data);
580532      }
581533
582534      break;
583535   }
584536}
585537
586 READ8_HANDLER ( tms9901_0_cru_r )
538/*-------------------------------------------------
539    DEVICE_STOP( tms9901 )
540-------------------------------------------------*/
541
542static DEVICE_STOP( tms9901 )
587543{
588   return tms9901_cru_r(0, offset);
544   tms9901_t *tms = get_token(device);
545   
546   if (tms->timer)
547   {
548      timer_reset(tms->timer, attotime_never);   /* FIXME - timers should only be allocated once */
549      tms->timer = NULL;
550   }
589551}
590552
591WRITE8_HANDLER ( tms9901_0_cru_w )
553/*-------------------------------------------------
554    DEVICE_RESET( tms9901 )
555-------------------------------------------------*/
556
557static DEVICE_RESET( tms9901 )
592558{
593   tms9901_cru_w(0, offset, data);
559   tms9901_t *tms = get_token(device);
560
561   tms->timer_int_pending = 0;
562   tms->enabled_ints = 0;
563
564   tms->pio_direction = 0;
565   tms->pio_direction_mirror = 0;
566   tms->pio_output = tms->pio_output_mirror = 0;
567
568   tms9901_field_interrupts(device);
569
570   tms->mode9901 = 0;
571
572   tms->clockinvl = 0;
573   tms9901_timer_reload(device);
574
594575}
595576
596 READ8_HANDLER ( tms9901_1_cru_r )
577
578/*-------------------------------------------------
579    DEVICE_START( tms9901 )
580-------------------------------------------------*/
581
582static DEVICE_START( tms9901 )
597583{
598   return tms9901_cru_r(1, offset);
584   tms9901_t *tms = get_token(device);
585
586   assert(device != NULL);
587   assert(device->tag != NULL);
588   assert(strlen(device->tag) < 20);
589   assert(device->static_config != NULL);
590
591   tms->intf = device->static_config;
592
593   tms->timer = timer_alloc(device->machine, decrementer_callback, (void *) device);
594
595   tms->supported_int_mask = tms->intf->supported_int_mask;
596   
597   tms->clock_rate = tms->intf->clock_rate;
598
599   tms->int_state = 0;
600   return DEVICE_START_OK;
599601}
600602
601WRITE8_HANDLER ( tms9901_1_cru_w )
603
604
605/*-------------------------------------------------
606    DEVICE_SET_INFO( tms9901 )
607-------------------------------------------------*/
608
609static DEVICE_SET_INFO( tms9901 )
602610{
603   tms9901_cru_w(1, offset, data);
611   switch (state)
612   {
613      /* no parameters to set */
614   }
604615}
616
617
618
619/*-------------------------------------------------
620    DEVICE_GET_INFO( tms9901 )
621-------------------------------------------------*/
622
623DEVICE_GET_INFO( tms9901 )
624{
625   switch (state)
626   {
627      /* --- the following bits of info are returned as 64-bit signed integers --- */
628      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(tms9901_t);            break;
629      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                        break;
630      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;         break;
631
632      /* --- the following bits of info are returned as pointers to data or functions --- */
633      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(tms9901); break;
634      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(tms9901);   break;
635      case DEVINFO_FCT_STOP:                     info->stop  = DEVICE_STOP_NAME (tms9901);   break;
636      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(tms9901);   break;
637
638      /* --- the following bits of info are returned as NULL-terminated strings --- */
639      case DEVINFO_STR_NAME:                     info->s = "TMS9901";               break;
640      case DEVINFO_STR_FAMILY:                  info->s = "TMS9901";               break;
641      case DEVINFO_STR_VERSION:                  info->s = "1.0";                     break;
642      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__;                     break;
643      case DEVINFO_STR_CREDITS:                  /* Nothing */                        break;
644   }
645}
src/mess/machine/tms9901.h
r3831r3832
33
44   Raphael Nabet
55*/
6#ifndef __TMS9901_H__
7#define __TMS9901_H__
68
9/***************************************************************************
10    MACROS
11***************************************************************************/
712
13#define TMS9901         DEVICE_GET_INFO_NAME(tms9901)
14
15
816/* Masks for the interrupts levels available on TMS9901 */
917#define TMS9901_INT1 0x0002
1018#define TMS9901_INT2 0x0004
r3831r3832
2230#define TMS9901_INTE 0x4000
2331#define TMS9901_INTF 0x8000
2432
33/***************************************************************************
34    TYPE DEFINITIONS
35***************************************************************************/
2536
26typedef struct tms9901reset_param
37/* TMS5501 timer and interrupt controler */
38typedef struct _tms9901_interface tms9901_interface;
39struct _tms9901_interface
2740{
2841   int supported_int_mask;   /* a bit for each input pin whose state is always notified to the TMS9901 core */
2942   int (*read_handlers[4])(int offset);   /* 4*8 bits */
3043   void (*write_handlers[16])(int offset, int data);   /* 16 Pn outputs */
31   void (*interrupt_callback)(int intreq, int ic);      /* called when interrupt bus state changes */
44   void (*interrupt_callback)(const device_config *device, int intreq, int ic);      /* called when interrupt bus state changes */
3245   double clock_rate;
33} tms9901reset_param;
46};
3447
48void tms9901_set_single_int(const device_config *device, int pin_number, int state);
3549
36void tms9901_init(running_machine *machine,int which, const tms9901reset_param *param);
37void tms9901_cleanup(int which);
50DEVICE_GET_INFO(tms9901);
3851
39void tms9901_reset(int which);
52/*********************** Standard 8-bit CPU interfaces *********************/
4053
41void tms9901_set_single_int(int which, int pin_number, int state);
54READ8_DEVICE_HANDLER ( tms9901_cru_r );
55WRITE8_DEVICE_HANDLER( tms9901_cru_w );
4256
43int tms9901_cru_r(int which, int offset);
44void tms9901_cru_w(int which, int offset, int data);
4557
46/*********************** Standard 8-bit CPU interfaces *********************/
58/***************************************************************************
59    DEVICE CONFIGURATION MACROS
60***************************************************************************/
4761
48 READ8_HANDLER ( tms9901_0_cru_r );
49WRITE8_HANDLER ( tms9901_0_cru_w );
50 READ8_HANDLER ( tms9901_1_cru_r );
51WRITE8_HANDLER ( tms9901_1_cru_w );
62#define MDRV_TMS9901_ADD(_tag, _intrf) \
63   MDRV_DEVICE_ADD(_tag, TMS9901) \
64   MDRV_DEVICE_CONFIG(_intrf)
65
66#endif /* __TMS9901_H__ */
src/mess/machine/geneve.c
r3831r3832
2727static void inta_callback(running_machine *machine, int state);
2828static void intb_callback(running_machine *machine, int state);
2929
30static void read_key_if_possible(void);
30static void read_key_if_possible(running_machine *machine);
3131static void poll_keyboard(running_machine *machine);
3232static void poll_mouse(running_machine *machine);
3333
34static void tms9901_interrupt_callback(int intreq, int ic);
34static void tms9901_interrupt_callback(const device_config *device,int intreq, int ic);
3535static int R9901_0(int offset);
3636static int R9901_1(int offset);
3737static int R9901_2(int offset);
r3831r3832
7676static char has_alt_boot;
7777
7878/* tms9901 setup */
79static const tms9901reset_param tms9901reset_param_ti99 =
79const tms9901_interface tms9901reset_param_ti99 =
8080{
8181   TMS9901_INT1 | TMS9901_INT2 | TMS9901_INT8 | TMS9901_INTB | TMS9901_INTC,   /* only input pins whose state is always known */
8282
r3831r3832
207207
208208MACHINE_START( geneve )
209209{
210   tms9901_init(machine, 0, & tms9901reset_param_ti99);
211
212210   /* Initialize all. Actually, at this point, we don't know
213211      how the switches are set. Later we use the configuration switches to
214212      determine which one to use. */
r3831r3832
238236   /* reset cartridge mapper */
239237   cartridge_page = 0;
240238
241   /* init tms9901 */
242   tms9901_reset(0);
243
244239   v9938_reset(0);
245240
246241   /* clear keyboard interface state (probably overkill, but can't harm) */
r3831r3832
315310{
316311   if (has_ide)
317312      ti99_ide_save_memcard();
318
319   tms9901_cleanup(0);
320313}
321314
322315
r3831r3832
349342*/
350343static void inta_callback(running_machine *machine, int state)
351344{
352   tms9901_set_single_int(0, 1, state);
345   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 1, state);
353346   cpu_set_input_line(machine->cpu[0], 1, state ? ASSERT_LINE : CLEAR_LINE);
354347}
355348
r3831r3832
358351*/
359352static void intb_callback(running_machine *machine, int state)
360353{
361   tms9901_set_single_int(0, 12, state);
354   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 12, state);
362355}
363356
364357
r3831r3832
988981      if ((offset == 0x778) && data && (! (old_flags & mf_keyclock)))
989982      {
990983         /* set mf_keyclock */
991         read_key_if_possible();
984         read_key_if_possible(space->machine);
992985      }
993986      if (offset == 0x779)
994987      {
r3831r3832
996989         {
997990            /* set mf_keyclear: enable key input */
998991            /* shift in new key immediately if possible */
999            read_key_if_possible();
992            read_key_if_possible(space->machine);
1000993         }
1001994         else if ((! data) && (old_flags & mf_keyclear))
1002995         {
r3831r3832
10071000               KeyQueueLen--;
10081001            }
10091002            /* clear keyboard interrupt */
1010            tms9901_set_single_int(0, 8, 0);
1003            tms9901_set_single_int(device_list_find_by_tag(space->machine->config->devicelist, TMS9901, "tms9901"), 8, 0);
10111004            KeyInBuf = 0;
10121005         }
10131006      }
r3831r3832
10221015#pragma mark KEYBOARD INTERFACE
10231016#endif
10241017
1025static void read_key_if_possible(void)
1018static void read_key_if_possible(running_machine *machine)
10261019{
10271020   /* if keyboard reset is not asserted, and key clock is enabled, and key
10281021   buffer clear is disabled, and key queue is not empty. */
10291022   if ((! KeyReset) && (mode_flags & mf_keyclock) && (mode_flags & mf_keyclear) && KeyQueueLen)
10301023   {
1031      tms9901_set_single_int(0, 8, 1);
1024      tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 8, 1);
10321025      KeyInBuf = 1;
10331026   }
10341027}
r3831r3832
12401233                     keycode |= 0x80;
12411234                  post_in_KeyQueue(keycode);
12421235               }
1243               read_key_if_possible();
1236               read_key_if_possible(machine);
12441237            }
12451238         }
12461239      }
r3831r3832
12701263      {
12711264         post_in_KeyQueue(KeyAutoRepeatKey);
12721265      }
1273      read_key_if_possible();
1266      read_key_if_possible(machine);
12741267      KeyAutoRepeatTimer = KeyAutoRepeatRate;
12751268   }
12761269}
r3831r3832
13401333*/
13411334/*void tms9901_set_int2(int state)
13421335{
1343   tms9901_set_single_int(0, 2, state);
1336   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 2, state);
13441337}*/
13451338
13461339/*
13471340   Called by the 9901 core whenever the state of INTREQ and IC0-3 changes
13481341*/
1349static void tms9901_interrupt_callback(int intreq, int ic)
1342static void tms9901_interrupt_callback(const device_config *device, int intreq, int ic)
13501343{
13511344   /* INTREQ is connected to INT1 (IC0-3 are not connected) */
1352   cpu_set_input_line(Machine->cpu[0], 0, intreq ? ASSERT_LINE : CLEAR_LINE);
1345   cpu_set_input_line(device->machine->cpu[0], 0, intreq ? ASSERT_LINE : CLEAR_LINE);
13531346}
13541347
13551348/*
src/mess/machine/ti99_4x.c
r3831r3832
7777static WRITE16_HANDLER ( ti99_wspeech_w );
7878
7979static void tms9901_set_int1(running_machine *machine, int state);
80static void tms9901_interrupt_callback(int intreq, int ic);
80static void tms9901_interrupt_callback(const device_config *device, int intreq, int ic);
8181static int ti99_R9901_0(int offset);
8282static int ti99_R9901_1(int offset);
8383static int ti99_R9901_2(int offset);
r3831r3832
147147
148148
149149/* tms9901 setup */
150static const tms9901reset_param tms9901reset_param_ti99_4x =
150const tms9901_interface tms9901reset_param_ti99_4x =
151151{
152152   TMS9901_INT1 | TMS9901_INT2 | TMS9901_INTC,   /* only input pins whose state is always known */
153153
r3831r3832
184184   3000000.
185185};
186186
187static const tms9901reset_param tms9901reset_param_ti99_8 =
187const tms9901_interface tms9901reset_param_ti99_8 =
188188{
189189   TMS9901_INT1 | TMS9901_INT2 | TMS9901_INTC,   /* only input pins whose state is always known */
190190
r3831r3832
750750
751751void ti99_common_init(running_machine *machine, const TMS9928a_interface *gfxparm)
752752{
753    if (ti99_model==model_99_8) {
754        tms9901_init(machine, 0, &tms9901reset_param_ti99_8);
755    }
756    else {
757      tms9901_init(machine, 0,  &tms9901reset_param_ti99_4x);
758    }
759753   if (gfxparm!=0) TMS9928A_configure(gfxparm);
760754
761755        /* Initialize all. Actually, at this point, we don't know
r3831r3832
807801         current_page_ptr = cartridge_pages[0];
808802   }
809803
810   /* init tms9901 */
811        tms9901_reset(0);
812
813804   if (!has_evpc) TMS9928A_reset();
814805        else v9938_reset(0);
815806
r3831r3832
822813   handset_buflen = 0;
823814   handset_clock = 0;
824815   handset_ack = 0;
825   tms9901_set_single_int(0, 12, 0);
816   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 12, 0);
826817
827818   /* read config */
828819   if (ti99_model == model_99_8)
r3831r3832
17901781   handset_clock = ! handset_clock;
17911782   handset_buf >>= 4;
17921783   handset_buflen--;
1793   tms9901_set_single_int(0, 12, 0);
1784   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 12, 0);
17941785
17951786   if (handset_buflen == 1)
17961787   {
r3831r3832
18321823
18331824   message: 12-bit message to post (only the 12 LSBits are meaningful)
18341825*/
1835static void ti99_handset_post_message(int message)
1826static void ti99_handset_post_message(running_machine *machine, int message)
18361827{
18371828   /* post message and assert interrupt */
18381829   handset_clock = 1;
18391830   handset_buf = ~ message;
18401831   handset_buflen = 3;
1841   tms9901_set_single_int(0, 12, 1);
1832   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 12, 1);
18421833}
18431834
18441835/*
r3831r3832
18841875            previous_key[num] = current_key = previous_key[num] & ~0x20;
18851876         }
18861877         /* post message */
1887         ti99_handset_post_message((((unsigned) current_key) << 4) | (num << 1));
1878         ti99_handset_post_message(machine, (((unsigned) current_key) << 4) | (num << 1));
18881879
18891880         return TRUE;
18901881      }
r3831r3832
19131904      previous_key[num] = current_key;
19141905
19151906      /* post message */
1916      ti99_handset_post_message((((unsigned) current_key) << 4) | (num << 1));
1907      ti99_handset_post_message(machine, (((unsigned) current_key) << 4) | (num << 1));
19171908
19181909      return TRUE;
19191910   }
r3831r3832
19901981      message |= (num << 1) | 0x1;
19911982
19921983      /* post message */
1993      ti99_handset_post_message(message);
1984      ti99_handset_post_message(machine, message);
19941985
19951986      return TRUE;
19961987   }
r3831r3832
22212212*/
22222213static void tms9901_set_int1(running_machine *machine, int state)
22232214{
2224   tms9901_set_single_int(0, 1, state);
2215   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 1, state);
22252216}
22262217
22272218/*
r3831r3832
22292220*/
22302221void tms9901_set_int2(running_machine *machine, int state)
22312222{
2232   tms9901_set_single_int(0, 2, state);
2223   tms9901_set_single_int(device_list_find_by_tag(machine->config->devicelist, TMS9901, "tms9901"), 2, state);
22332224}
22342225
22352226/*
22362227   Called by the 9901 core whenever the state of INTREQ and IC0-3 changes
22372228*/
2238static void tms9901_interrupt_callback(int intreq, int ic)
2229static void tms9901_interrupt_callback(const device_config *device, int intreq, int ic)
22392230{
22402231   if (intreq)
22412232   {
22422233      /* On TI99, TMS9900 IC0-3 lines are not connected to TMS9901,
22432234       * but hard-wired to force level 1 interrupts */
2244      cpu_set_input_line_and_vector(Machine->cpu[0], 0, ASSERT_LINE, 1);   /* interrupt it, baby */
2235      cpu_set_input_line_and_vector(device->machine->cpu[0], 0, ASSERT_LINE, 1);   /* interrupt it, baby */
22452236   }
22462237   else
22472238   {
2248      cpu_set_input_line(Machine->cpu[0], 0, CLEAR_LINE);
2239      cpu_set_input_line(device->machine->cpu[0], 0, CLEAR_LINE);
22492240   }
22502241}
22512242
src/mess/machine/ti99_4x.h
r3831r3832
22   header file for machine/ti99_4x.c
33*/
44#include "video/tms9928a.h"
5#include "machine/tms9901.h"
56
67/* defines */
78
r3831r3832
180181
181182READ8_HANDLER ( ti99_8_r );
182183WRITE8_HANDLER ( ti99_8_w );
184
185extern const tms9901_interface tms9901reset_param_ti99_4x;
186extern const tms9901_interface tms9901reset_param_ti99_8;
187
src/mess/drivers/ti99_8.c
r3831r3832
180180
181181static ADDRESS_MAP_START(ti99_8_writecru, ADDRESS_SPACE_IO, 8)
182182
183   AM_RANGE(0x0000, 0x07ff) AM_WRITE(tms9901_0_cru_w)
183   AM_RANGE(0x0000, 0x07ff) AM_DEVWRITE(TMS9901, "tms9901", tms9901_cru_w)
184184   AM_RANGE(0x0800, 0x17ff) AM_WRITE(ti99_8_peb_cru_w)
185185
186186ADDRESS_MAP_END
187187
188188static ADDRESS_MAP_START(ti99_8_readcru, ADDRESS_SPACE_IO, 8)
189189
190   AM_RANGE(0x0000, 0x00ff) AM_READ(tms9901_0_cru_r)
190   AM_RANGE(0x0000, 0x00ff) AM_DEVREAD(TMS9901, "tms9901", tms9901_cru_r)
191191   AM_RANGE(0x0100, 0x02ff) AM_READ(ti99_8_peb_cru_r)
192192
193193ADDRESS_MAP_END
r3831r3832
435435   MDRV_DEVICE_ADD( "ide_harddisk", IDE_HARDDISK )
436436
437437   MDRV_CASSETTE_ADD( "cassette", default_cassette_config )
438   
439   /* tms9901 */
440   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_8)   
438441MACHINE_DRIVER_END
439442
440443
r3831r3832
476479   MDRV_DEVICE_ADD( "ide_harddisk", IDE_HARDDISK )
477480
478481   MDRV_CASSETTE_ADD( "cassette", default_cassette_config )
482
483   /* tms9901 */
484   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_8)   
479485MACHINE_DRIVER_END
480486
481487/*
src/mess/drivers/tm990189.c
r3831r3832
8181
8282static void hold_load(running_machine *machine);
8383
84static void usr9901_interrupt_callback(int intreq, int ic);
85static void sys9901_interrupt_callback(int intreq, int ic);
84static void usr9901_interrupt_callback(const device_config *device, int intreq, int ic);
85static void sys9901_interrupt_callback(const device_config *device, int intreq, int ic);
8686
8787static void usr9901_led_w(int offset, int data);
8888
r3831r3832
9696
9797
9898/* user tms9901 setup */
99static const tms9901reset_param usr9901reset_param =
99static const tms9901_interface usr9901reset_param =
100100{
101101   TMS9901_INT1 | TMS9901_INT2 | TMS9901_INT3 | TMS9901_INT4 | TMS9901_INT5 | TMS9901_INT6,   /* only input pins whose state is always known */
102102
r3831r3832
135135};
136136
137137/* system tms9901 setup */
138static const tms9901reset_param sys9901reset_param =
138static const tms9901_interface sys9901reset_param =
139139{
140140   0,   /* only input pins whose state is always known */
141141
r3831r3832
194194
195195   hold_load(machine);
196196
197   tms9901_init(machine, 0, &usr9901reset_param);
198   tms9901_init(machine, 1, &sys9901reset_param);
199   tms9901_reset(0);
200   tms9901_reset(1);
201
202197   tms9902_init(machine, 0, &tms9902_params);
203198}
204199
r3831r3832
226221
227222   hold_load(machine);
228223
229   tms9901_init(machine, 0, &usr9901reset_param);
230   tms9901_init(machine, 1, &sys9901reset_param);
231   tms9901_reset(0);
232   tms9901_reset(1);
233
234224   tms9902_init(machine, 0, &tms9902_params);
235225
236226   TMS9928A_reset();
r3831r3832
380370    tms9901 code
381371*/
382372
383static void usr9901_interrupt_callback(int intreq, int ic)
373static void usr9901_interrupt_callback(const device_config *device, int intreq, int ic)
384374{
385375   ic_state = ic & 7;
386376
r3831r3832
396386      LED_state &= ~(1 << offset);
397387}
398388
399static void sys9901_interrupt_callback(int intreq, int ic)
389static void sys9901_interrupt_callback(const device_config *device,int intreq, int ic)
400390{
401391   (void)ic;
402392
403   tms9901_set_single_int(0, 5, intreq);
393   tms9901_set_single_int(device_list_find_by_tag(device->machine->config->devicelist, TMS9901, "tms9901_0"), 5, intreq);
404394}
405395
406396static int sys9901_r0(int offset)
r3831r3832
761751*/
762752
763753static ADDRESS_MAP_START(tm990_189_writecru, ADDRESS_SPACE_IO, 8)
764
765
766   AM_RANGE(0x000, 0x1ff) AM_WRITE(tms9901_0_cru_w)   /* user I/O tms9901 */
767   AM_RANGE(0x200, 0x3ff) AM_WRITE(tms9901_1_cru_w)   /* system I/O tms9901 */
754   AM_RANGE(0x000, 0x1ff) AM_DEVWRITE(TMS9901, "tms9901_0", tms9901_cru_w)   /* user I/O tms9901 */
755   AM_RANGE(0x200, 0x3ff) AM_DEVWRITE(TMS9901, "tms9901_1", tms9901_cru_w)   /* system I/O tms9901 */
768756   AM_RANGE(0x400, 0x5ff) AM_WRITE(tms9902_0_cru_w)   /* optional tms9902 */
769757
770758   AM_RANGE(0x0800,0x1fff)AM_WRITE(ext_instr_decode)   /* external instruction decoding (IDLE, RSET, CKON, CKOF, LREX) */
771
772759ADDRESS_MAP_END
773760
774761static ADDRESS_MAP_START(tm990_189_readcru, ADDRESS_SPACE_IO, 8)
775
776   AM_RANGE(0x00, 0x3f) AM_READ(tms9901_0_cru_r)      /* user I/O tms9901 */
777   AM_RANGE(0x40, 0x6f) AM_READ(tms9901_1_cru_r)      /* system I/O tms9901 */
762   AM_RANGE(0x00, 0x3f) AM_DEVREAD(TMS9901, "tms9901_0", tms9901_cru_r)      /* user I/O tms9901 */
763   AM_RANGE(0x40, 0x6f) AM_DEVREAD(TMS9901, "tms9901_1", tms9901_cru_r)      /* system I/O tms9901 */
778764   AM_RANGE(0x80, 0xcf) AM_READ(tms9902_0_cru_r)      /* optional tms9902 */
779765
780766ADDRESS_MAP_END
r3831r3832
821807   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
822808
823809   MDRV_CASSETTE_ADD( "cassette", default_cassette_config )
810   
811   MDRV_TMS9901_ADD("tms9901_0", usr9901reset_param)
812   MDRV_TMS9901_ADD("tms9901_1", sys9901reset_param)
824813MACHINE_DRIVER_END
825814
826815#define LEFT_BORDER      15
r3831r3832
859848   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
860849
861850   MDRV_CASSETTE_ADD( "cassette", default_cassette_config )
851
852   MDRV_TMS9901_ADD("tms9901_0", usr9901reset_param)
853   MDRV_TMS9901_ADD("tms9901_1", sys9901reset_param)   
862854MACHINE_DRIVER_END
863855
864856
src/mess/drivers/geneve.c
r3831r3832
234234
235235static ADDRESS_MAP_START(writecru, ADDRESS_SPACE_IO, 8)
236236
237   AM_RANGE(0x0000, 0x07ff) AM_WRITE(tms9901_0_cru_w)
237   AM_RANGE(0x0000, 0x07ff) AM_DEVWRITE(TMS9901, "tms9901", tms9901_cru_w)
238238   AM_RANGE(0x0800, 0x0fff) AM_WRITE(geneve_peb_mode_cru_w)
239239
240240ADDRESS_MAP_END
241241
242242static ADDRESS_MAP_START(readcru, ADDRESS_SPACE_IO, 8)
243243
244   AM_RANGE(0x0000, 0x00ff) AM_READ(tms9901_0_cru_r)
244   AM_RANGE(0x0000, 0x00ff) AM_DEVREAD(TMS9901, "tms9901", tms9901_cru_r)
245245   AM_RANGE(0x0100, 0x01ff) AM_READ(geneve_peb_cru_r)
246246
247247ADDRESS_MAP_END
r3831r3832
507507   /* rtc */
508508   MDRV_MM58274C_ADD("mm58274c", geneve_mm58274c_interface)
509509   MDRV_MM58274C_ADD("mm58274c_floppy", floppy_mm58274c_interface)
510   
511   /* tms9901 */
512   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99)   
510513MACHINE_DRIVER_END
511514
512515
src/mess/drivers/ti99_4p.c
r3831r3832
7272
7373static ADDRESS_MAP_START(writecru, ADDRESS_SPACE_IO, 8)
7474
75   AM_RANGE(0x0000, 0x01ff) AM_WRITE(tms9901_0_cru_w)
75   AM_RANGE(0x0000, 0x01ff) AM_DEVWRITE(TMS9901, "tms9901", tms9901_cru_w)
7676   AM_RANGE(0x0200, 0x0fff) AM_WRITE(ti99_4p_peb_cru_w)
7777
7878ADDRESS_MAP_END
7979
8080static ADDRESS_MAP_START(readcru, ADDRESS_SPACE_IO, 8)
8181
82   AM_RANGE(0x0000, 0x003f) AM_READ(tms9901_0_cru_r)
82   AM_RANGE(0x0000, 0x003f) AM_DEVREAD(TMS9901, "tms9901", tms9901_cru_r)
8383   AM_RANGE(0x0040, 0x01ff) AM_READ(ti99_4p_peb_cru_r)
8484
8585ADDRESS_MAP_END
r3831r3832
284284   MDRV_DEVICE_ADD( "ide_harddisk", IDE_HARDDISK )
285285
286286   /* MDRV_CASSETTE_ADD( "cassette", default_cassette_config ) */
287   
288   /* tms9901 */
289   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_4x)   
287290MACHINE_DRIVER_END
288291
289292
src/mess/drivers/ti99_4x.c
r3831r3832
8484
8585static ADDRESS_MAP_START(writecru, ADDRESS_SPACE_IO, 8)
8686
87   AM_RANGE(0x0000, 0x07ff) AM_WRITE(tms9901_0_cru_w)
87   AM_RANGE(0x0000, 0x07ff) AM_DEVWRITE(TMS9901, "tms9901", tms9901_cru_w)
8888   AM_RANGE(0x0800, 0x0fff) AM_WRITE(ti99_4x_peb_cru_w)
8989
9090ADDRESS_MAP_END
9191
9292static ADDRESS_MAP_START(readcru, ADDRESS_SPACE_IO, 8)
9393
94   AM_RANGE(0x0000, 0x00ff) AM_READ(tms9901_0_cru_r)
94   AM_RANGE(0x0000, 0x00ff) AM_DEVREAD(TMS9901, "tms9901", tms9901_cru_r)
9595   AM_RANGE(0x0100, 0x01ff) AM_READ(ti99_4x_peb_cru_r)
9696
9797ADDRESS_MAP_END
r3831r3832
546546   
547547   /* rtc */
548548   MDRV_MM58274C_ADD("mm58274c_floppy", floppy_mm58274c_interface)   
549   
550   /* tms9901 */
551   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_4x)
549552MACHINE_DRIVER_END
550553
551554static MACHINE_DRIVER_START(ti99_4_50hz)
r3831r3832
587590
588591   /* rtc */
589592   MDRV_MM58274C_ADD("mm58274c_floppy", floppy_mm58274c_interface)   
593   /* tms9901 */
594   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_4x)   
590595MACHINE_DRIVER_END
591596
592597static MACHINE_DRIVER_START(ti99_4a_60hz)
r3831r3832
628633
629634   /* rtc */
630635   MDRV_MM58274C_ADD("mm58274c_floppy", floppy_mm58274c_interface)   
636   
637   /* tms9901 */
638   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_4x)   
631639MACHINE_DRIVER_END
632640
633641
r3831r3832
670678
671679   /* rtc */
672680   MDRV_MM58274C_ADD("mm58274c_floppy", floppy_mm58274c_interface)   
681   
682   /* tms9901 */
683   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_4x)   
673684MACHINE_DRIVER_END
674685
675686
r3831r3832
720731
721732   /* rtc */
722733   MDRV_MM58274C_ADD("mm58274c_floppy", floppy_mm58274c_interface)   
734   /* tms9901 */
735   MDRV_TMS9901_ADD("tms9901", tms9901reset_param_ti99_4x)
723736MACHINE_DRIVER_END
724737
725738

Previous 15994 Revisions Next


© 1998-2018 The MESS Team