Previous 15994 Revisions Next

r4229 Wednesday 4th February, 2009 at 14:22:02 UTC by Curt Coder
[QL] Refactored ZX8301/ZX8302 to use devcb.
[docs]messnew.txt
[src/mess/drivers]ql.c
[src/mess/includes]ql.h
[src/mess/machine]zx8302.c zx8302.h
[src/mess/video]zx8301.c zx8301.h

src/mess/video/zx8301.c
r4228r4229
1919#include "driver.h"
2020#include "zx8301.h"
2121
22/***************************************************************************
23    PARAMETERS
24***************************************************************************/
25
2226#define LOG 0
2327
28static const int ZX8301_COLOR_MODE4[] = { 0, 2, 4, 7 };
29
30/***************************************************************************
31    TYPE DEFINITIONS
32***************************************************************************/
33
2434typedef struct _zx8301_t zx8301_t;
2535struct _zx8301_t
2636{
27   const zx8301_interface *intf;   /* interface */
37   devcb_resolved_read8      in_ram_func;
38   devcb_resolved_write8      out_ram_func;
39   devcb_resolved_write_line   out_vsync_func;
2840
2941   const device_config *screen;   /* screen */
3042
r4228r4229
3850   /* timers */
3951   emu_timer *flash_timer;         /* flash timer */
4052   emu_timer *vsync_timer;         /* vertical sync timer */
53
54   const device_config *cpu;
4155};
4256
57/***************************************************************************
58    INLINE FUNCTIONS
59***************************************************************************/
60
4361INLINE zx8301_t *get_safe_token(const device_config *device)
4462{
4563   assert(device != NULL);
r4228r4229
4866   return (zx8301_t *)device->token;
4967}
5068
51/* Timer Callbacks */
69INLINE const zx8301_interface *get_interface(const device_config *device)
70{
71   assert(device != NULL);
72   assert((device->type == ZX8301));
73   return (const zx8301_interface *) device->static_config;
74}
5275
53static TIMER_CALLBACK(zx8301_flash_tick)
76/***************************************************************************
77    IMPLEMENTATION
78***************************************************************************/
79
80/*-------------------------------------------------
81    TIMER_CALLBACK( zx8301_flash_tick )
82-------------------------------------------------*/
83
84static TIMER_CALLBACK( zx8301_flash_tick )
5485{
5586   zx8301_t *zx8301 = get_safe_token(ptr);
5687
5788   zx8301->flash = !zx8301->flash;
5889}
5990
60static TIMER_CALLBACK(zx8301_vsync_tick)
91/*-------------------------------------------------
92    TIMER_CALLBACK( zx8301_vsync_tick )
93-------------------------------------------------*/
94
95static TIMER_CALLBACK( zx8301_vsync_tick )
6196{
6297   zx8301_t *zx8301 = get_safe_token(ptr);
6398
6499   //zx8301->vsync = !zx8301->vsync;
65100
66   zx8301->intf->on_vsync_changed(ptr, zx8301->vsync);
101   devcb_call_write_line(&zx8301->out_vsync_func, zx8301->vsync);
67102}
68103
69/* Palette Initialization */
104/*-------------------------------------------------
105    PALETTE_INIT( zx8301 )
106-------------------------------------------------*/
70107
71static const int ZX8301_COLOR_MODE4[] = { 0, 2, 4, 7 };
72
73108PALETTE_INIT( zx8301 )
74109{
75110   palette_set_color_rgb(machine, 0, 0x00, 0x00, 0x00 ); // black
r4228r4229
82117   palette_set_color_rgb(machine, 7, 0xff, 0xff, 0xff ); // white
83118}
84119
85/* Register Access */
120/*-------------------------------------------------
121    zx8301_control_w - display control register
122-------------------------------------------------*/
86123
87124WRITE8_DEVICE_HANDLER( zx8301_control_w )
88125{
r4228r4229
95132   zx8301->base = BIT(data, 7);
96133}
97134
98/* Video Memory Access */
135/*-------------------------------------------------
136    zx8301_ram_r - RAM access
137-------------------------------------------------*/
99138
100139READ8_DEVICE_HANDLER( zx8301_ram_r )
101140{
r4228r4229
105144
106145   if (zx8301->vda)
107146   {
108      cpu_spinuntil_time(device->machine->cpu[0], video_screen_get_time_until_pos(zx8301->screen, 256, 0));
147      cpu_spinuntil_time(zx8301->cpu, video_screen_get_time_until_pos(zx8301->screen, 256, 0));
109148   }
110149
111   return zx8301->intf->ram_r(device, offset);
150   return devcb_call_read8(&zx8301->in_ram_func, offset);
112151}
113152
153/*-------------------------------------------------
154    zx8301_ram_w - RAM access
155-------------------------------------------------*/
156
114157WRITE8_DEVICE_HANDLER( zx8301_ram_w )
115158{
116159   zx8301_t *zx8301 = get_safe_token(device);
r4228r4229
119162
120163   if (zx8301->vda)
121164   {
122      cpu_spinuntil_time(device->machine->cpu[0], video_screen_get_time_until_pos(zx8301->screen, 256, 0));
165      cpu_spinuntil_time(zx8301->cpu, video_screen_get_time_until_pos(zx8301->screen, 256, 0));
123166   }
124167
125   zx8301->intf->ram_w(device, offset, data);
168   devcb_call_write8(&zx8301->out_ram_func, offset, data);
126169}
127170
128/* Screen Update */
171/*-------------------------------------------------
172    zx8301_draw_line_mode4 - high resolution
173   line drawing routine
174-------------------------------------------------*/
129175
130176static void zx8301_draw_line_mode4(const device_config *device, bitmap_t *bitmap, int y, UINT16 da)
131177{
r4228r4229
135181
136182   for (word = 0; word < 64; word++)
137183   {
138      UINT8 byte_high = zx8301->intf->ram_r(device, da++);
139      UINT8 byte_low = zx8301->intf->ram_r(device, da++);
184      UINT8 byte_high = devcb_call_read8(&zx8301->in_ram_func, da++);
185      UINT8 byte_low = devcb_call_read8(&zx8301->in_ram_func, da++);
140186
141187      for (pixel = 0; pixel < 8; pixel++)
142188      {
r4228r4229
152198   }
153199}
154200
201/*-------------------------------------------------
202    zx8301_draw_line_mode4 - low resolution
203   line drawing routine
204-------------------------------------------------*/
205
155206static void zx8301_draw_line_mode8(const device_config *device, bitmap_t *bitmap, int y, UINT16 da)
156207{
157208   zx8301_t *zx8301 = get_safe_token(device);
r4228r4229
160211
161212   for (word = 0; word < 64; word++)
162213   {
163      UINT8 byte_high = zx8301->intf->ram_r(device, da++);
164      UINT8 byte_low = zx8301->intf->ram_r(device, da++);
214      UINT8 byte_high = devcb_call_read8(&zx8301->in_ram_func, da++);
215      UINT8 byte_low = devcb_call_read8(&zx8301->in_ram_func, da++);
165216
166217      for (pixel = 0; pixel < 4; pixel++)
167218      {
r4228r4229
186237   }
187238}
188239
240/*-------------------------------------------------
241    zx8301_draw_screen - draw screen
242-------------------------------------------------*/
243
189244static void zx8301_draw_screen(const device_config *device, bitmap_t *bitmap)
190245{
191246   zx8301_t *zx8301 = get_safe_token(device);
r4228r4229
212267   zx8301->vda = 0;
213268}
214269
270/*-------------------------------------------------
271    zx8301_draw_screen - screen update
272-------------------------------------------------*/
273
215274void zx8301_update(const device_config *device, bitmap_t *bitmap, const rectangle *cliprect)
216275{
217276   zx8301_t *zx8301 = get_safe_token(device);
r4228r4229
226285   }
227286}
228287
229/* Device Interface */
288/*-------------------------------------------------
289    DEVICE_START( zx8301 )
290-------------------------------------------------*/
230291
231292static DEVICE_START( zx8301 )
232293{
233294   zx8301_t *zx8301 = get_safe_token(device);
295   const zx8301_interface *intf = get_interface(device);
234296
235   /* validate arguments */
236   assert(device != NULL);
237   assert(device->tag != NULL);
238   assert(device->clock > 0);
297   /* resolve callbacks */
298   devcb_resolve_read8(&zx8301->in_ram_func, &intf->in_ram_func, device);
299   devcb_resolve_write8(&zx8301->out_ram_func, &intf->out_ram_func, device);
300   devcb_resolve_write_line(&zx8301->out_vsync_func, &intf->out_vsync_func, device);
239301
240   zx8301->intf = device->static_config;
241
242   assert(zx8301->intf != NULL);
243   assert(zx8301->intf->on_vsync_changed != NULL);
244   assert(zx8301->intf->ram_r != NULL);
245   assert(zx8301->intf->ram_w != NULL);
246
247302   /* set initial values */
248303   zx8301->vsync = 1;
249304
305   /* get the cpu */
306   zx8301->cpu = cputag_get_cpu(device->machine, intf->cpu_tag);
307
250308   /* get the screen device */
251   zx8301->screen = devtag_get_device(device->machine, VIDEO_SCREEN, zx8301->intf->screen_tag);
309   zx8301->screen = devtag_get_device(device->machine, VIDEO_SCREEN, intf->screen_tag);
252310   assert(zx8301->screen != NULL);
253311
254312   /* create the timers */
r4228r4229
267325   state_save_register_item(device->machine, "zx8301", device->tag, 0, zx8301->vda);
268326}
269327
328/*-------------------------------------------------
329    DEVICE_RESET( zx8301 )
330-------------------------------------------------*/
331
270332static DEVICE_RESET( zx8301 )
271333{
272334//   zx8301_t *zx8301 = get_safe_token(device);
273335}
274336
337/*-------------------------------------------------
338    DEVICE_SET_INFO( zx8301 )
339-------------------------------------------------*/
340
275341static DEVICE_SET_INFO( zx8301 )
276342{
277343   switch (state)
r4228r4229
280346   }
281347}
282348
349/*-------------------------------------------------
350    DEVICE_GET_INFO( zx8301 )
351-------------------------------------------------*/
352
283353DEVICE_GET_INFO( zx8301 )
284354{
285355   switch (state)
286356   {
287357      /* --- the following bits of info are returned as 64-bit signed integers --- */
288      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(zx8301_t);               break;
289      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                        break;
290      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;         break;
358      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(zx8301_t);                  break;
359      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                           break;
360      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;            break;
291361
292362      /* --- the following bits of info are returned as pointers to data or functions --- */
293      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(zx8301); break;
294      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(zx8301);   break;
295      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
296      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(zx8301);   break;
363      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(zx8301);   break;
364      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(zx8301);      break;
365      case DEVINFO_FCT_STOP:                     /* Nothing */                           break;
366      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(zx8301);      break;
297367
298368      /* --- the following bits of info are returned as NULL-terminated strings --- */
299369      case DEVINFO_STR_NAME:                     strcpy(info->s, "Sinclair ZX8301");            break;
300      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Sinclair ZX83");               break;
370      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Sinclair QL");               break;
301371      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                     break;
302      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                     break;
372      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                  break;
303373      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright MESS Team");         break;
304374   }
305375}
src/mess/video/zx8301.h
r4228r4229
3434#define __ZX8301__
3535
3636#include "driver.h"
37#include "devcb.h"
3738
38typedef void (*zx8301_on_vsync_changed_func) (const device_config *device, int level);
39#define ZX8301_ON_VSYNC_CHANGED(name) void name(const device_config *device, int level)
39/***************************************************************************
40    MACROS / CONSTANTS
41***************************************************************************/
4042
41typedef UINT8 (*zx8301_ram_read_func)(const device_config *device, UINT32 da);
42#define ZX8301_RAM_READ(name) UINT8 name(const device_config *device, UINT32 da)
43
44typedef void (*zx8301_ram_write_func)(const device_config *device, UINT32 da, UINT8 data);
45#define ZX8301_RAM_WRITE(name) void name(const device_config *device, UINT32 da, UINT8 data)
46
4743#define ZX8301 DEVICE_GET_INFO_NAME( zx8301 )
4844
4945#define MDRV_ZX8301_ADD(_tag, _clock, _config) \
5046   MDRV_DEVICE_ADD(_tag, ZX8301, _clock) \
5147   MDRV_DEVICE_CONFIG(_config)
5248
53/* interface */
49#define ZX8301_INTERFACE(name) \
50   const zx8301_interface(name) =
51
52/***************************************************************************
53    TYPE DEFINITIONS
54***************************************************************************/
55
5456typedef struct _zx8301_interface zx8301_interface;
5557struct _zx8301_interface
5658{
59   const char *cpu_tag;      /* cpu we are working with */
5760   const char *screen_tag;      /* screen we are acting on */
5861
59   /* this gets called for every change of the VSYNC pin (pin 11) */
60   zx8301_on_vsync_changed_func   on_vsync_changed;
61
6262   /* this gets called for every memory read */
63   zx8301_ram_read_func         ram_r;
63   devcb_read8         in_ram_func;
6464
6565   /* this gets called for every memory write */
66   zx8301_ram_write_func         ram_w;
66   devcb_write8      out_ram_func;
67
68   /* this gets called for every change of the VSYNC pin (pin 11) */
69   devcb_write_line   out_vsync_func;
6770};
68#define ZX8301_INTERFACE(name) const zx8301_interface(name) =
6971
72/***************************************************************************
73    PROTOTYPES
74***************************************************************************/
75
7076/* device interface */
7177DEVICE_GET_INFO( zx8301 );
7278
src/mess/includes/ql.h
r4228r4229
33
44#define SCREEN_TAG   "main"
55
6#define M68008_TAG   "ic18"
7#define I8749_TAG   "ic24"
8#define I8051_TAG   "i8051"
69#define ZX8301_TAG   "ic22"
710#define ZX8302_TAG   "ic23"
811
src/mess/machine/zx8302.c
r4228r4229
2424#include "devices/microdrv.h"
2525#include <time.h>
2626
27/***************************************************************************
28    PARAMETERS
29***************************************************************************/
30
2731#define LOG 0
2832
2933enum
r4228r4229
6468#define ZX8302_TXD_STOP      9
6569#define ZX8302_TXD_STOP2   10
6670
71/***************************************************************************
72    TYPE DEFINITIONS
73***************************************************************************/
74
6775typedef struct _zx8302_t zx8302_t;
6876struct _zx8302_t
6977{
70   const zx8302_interface *intf;   /* interface */
78   devcb_resolved_write_line   out_ipl1l_func;
79   devcb_resolved_write_line   out_baudx4_func;
80   devcb_resolved_write_line   out_comdata_func;
7181
7282   /* registers */
7383   UINT8 idr;                  /* IPC data register */
r4228r4229
112122   emu_timer *gap_timer;         /* microdrive gap timer */
113123};
114124
125/***************************************************************************
126    INLINE FUNCTIONS
127***************************************************************************/
128
115129INLINE zx8302_t *get_safe_token(const device_config *device)
116130{
117131   assert(device != NULL);
r4228r4229
120134   return (zx8302_t *)device->token;
121135}
122136
123/* Interrupts */
137INLINE const zx8302_interface *get_interface(const device_config *device)
138{
139   assert(device != NULL);
140   assert((device->type == ZX8302));
141   return (const zx8302_interface *) device->static_config;
142}
124143
144/***************************************************************************
145    IMPLEMENTATION
146***************************************************************************/
147
148/*-------------------------------------------------
149    zx8302_interrupt - interrupt line manager
150-------------------------------------------------*/
151
125152static void zx8302_interrupt(const device_config *device, UINT8 line)
126153{
127154   zx8302_t *zx8302 = get_safe_token(device);
128155
129156   zx8302->irq |= line;
130   zx8302->intf->irq_callback(device, HOLD_LINE);
157   devcb_call_write_line(&zx8302->out_ipl1l_func, ASSERT_LINE);
131158}
132159
160/*-------------------------------------------------
161    zx8302_irq_status_r - interrupt status
162   register
163-------------------------------------------------*/
164
133165READ8_DEVICE_HANDLER( zx8302_irq_status_r )
134166{
135167   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
137169   return zx8302->irq;
138170}
139171
172/*-------------------------------------------------
173    zx8302_irq_acknowledge_w - interrupt
174   acknowledge
175-------------------------------------------------*/
176
140177WRITE8_DEVICE_HANDLER( zx8302_irq_acknowledge_w )
141178{
142179   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
147184
148185   if (!zx8302->irq)
149186   {
150      zx8302->intf->irq_callback(device, CLEAR_LINE);
187      devcb_call_write_line(&zx8302->out_ipl1l_func, CLEAR_LINE);
151188   }
152189}
153190
154/* IPC */
191/*-------------------------------------------------
192    TIMER_CALLBACK( zx8302_ipc_tick )
193-------------------------------------------------*/
155194
156195static TIMER_CALLBACK( zx8302_ipc_tick )
157196{
158197   zx8302_t *zx8302 = get_safe_token(ptr);
159198
160199   zx8302->baudx4 = !zx8302->baudx4;
161   zx8302->intf->on_baudx4_changed(ptr, zx8302->baudx4);
200   devcb_call_write_line(&zx8302->out_baudx4_func, zx8302->baudx4);
162201}
163202
203/*-------------------------------------------------
204    zx8302_ipc_comm_tick - IPC serial transfer
205-------------------------------------------------*/
206
164207static void zx8302_ipc_comm_tick(const device_config *device)
165208{
166209   /*
r4228r4229
195238   case ZX8302_IPC_START:
196239      if (LOG) logerror("ZX8302 COMDATA START W: %x\n", 0);
197240
198      zx8302->intf->comdata_w(device, 0);
241      devcb_call_write_line(&zx8302->out_comdata_func, 0);
199242      zx8302->ipc_busy = 1;
200243      zx8302->ipc_state = ZX8302_IPC_DATA;
201244      break;
r4228r4229
204247      if (LOG) logerror("ZX8302 COMDATA W: %x\n", BIT(zx8302->idr, 1));
205248
206249      zx8302->comdata = BIT(zx8302->idr, 1);
207      zx8302->intf->comdata_w(device, zx8302->comdata);
250      devcb_call_write_line(&zx8302->out_comdata_func, zx8302->comdata);
208251      zx8302->ipc_state = ZX8302_IPC_STOP;
209252      break;
210253
r4228r4229
213256      {
214257         if (LOG) logerror("ZX8302 COMDATA STOP W: %x\n", 1);
215258
216         zx8302->intf->comdata_w(device, 1);
259         devcb_call_write_line(&zx8302->out_comdata_func, 1);
217260         zx8302->ipc_busy = 0;
218261         zx8302->ipc_state = ZX8302_IPC_START;
219262      }
r4228r4229
221264   }
222265}
223266
267/*-------------------------------------------------
268    zx8302_comctl_w - IPC COMCTL accessor
269-------------------------------------------------*/
270
224271void zx8302_comctl_w(const device_config *device, int level)
225272{
226273   if (LOG) logerror("IPC COMCTL W: %x\n", level);
r4228r4229
231278   }
232279}
233280
281/*-------------------------------------------------
282    zx8302_comctl_w - IPC COMDATA accessor
283-------------------------------------------------*/
284
234285void zx8302_comdata_w(const device_config *device, int level)
235286{
236287   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
253304   }
254305}
255306
307/*-------------------------------------------------
308    TIMER_CALLBACK( zx8302_delayed_ipc_command )
309-------------------------------------------------*/
310
256311static TIMER_CALLBACK( zx8302_delayed_ipc_command )
257312{
258313   zx8302_t *zx8302 = get_safe_token(ptr);
r4228r4229
264319   zx8302_ipc_comm_tick(ptr);
265320}
266321
322/*-------------------------------------------------
323    zx8302_ipc_command_w - IPC command register
324-------------------------------------------------*/
325
267326WRITE8_DEVICE_HANDLER( zx8302_ipc_command_w )
268327{
269328   if (LOG) logerror("ZX8302 IPC Command: %02x\n", data);
r4228r4229
274333   }
275334}
276335
277/* Serial */
336/*-------------------------------------------------
337    zx8302_txd - IPC serial transmit
338-------------------------------------------------*/
278339
279340static void zx8302_txd(const device_config *device, int level)
280341{
r4228r4229
300361   }
301362}
302363
364/*-------------------------------------------------
365    TIMER_CALLBACK( zx8302_txd_tick )
366-------------------------------------------------*/
367
303368static TIMER_CALLBACK( zx8302_txd_tick )
304369{
305370   zx8302_t *zx8302 = get_safe_token(ptr);
r4228r4229
334399   }
335400}
336401
402/*-------------------------------------------------
403    zx8302_data_w - transmit data register
404-------------------------------------------------*/
405
337406WRITE8_DEVICE_HANDLER( zx8302_data_w )
338407{
339408   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
344413   zx8302->status |= ZX8302_STATUS_TX_BUFFER_FULL;
345414}
346415
416/*-------------------------------------------------
417    zx8302_control_w - serial control register
418-------------------------------------------------*/
419
347420WRITE8_DEVICE_HANDLER( zx8302_control_w )
348421{
349422   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
359432   timer_adjust_periodic(zx8302->ipc_timer, attotime_zero, 0, ATTOTIME_IN_HZ(baudx4));
360433}
361434
362/* Real Time Clock */
435/*-------------------------------------------------
436    TIMER_CALLBACK( zx8302_rtc_tick )
437-------------------------------------------------*/
363438
364439static TIMER_CALLBACK( zx8302_rtc_tick )
365440{
r4228r4229
368443   zx8302->ctr++;
369444}
370445
446/*-------------------------------------------------
447    zx8302_rtc_r - clock register read
448-------------------------------------------------*/
449
371450READ8_DEVICE_HANDLER( zx8302_rtc_r )
372451{
373452   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
387466   return 0;
388467}
389468
469/*-------------------------------------------------
470    zx8302_rtc_w - clock register write
471-------------------------------------------------*/
472
390473WRITE8_DEVICE_HANDLER( zx8302_rtc_w )
391474{
392475//   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
394477   if (LOG) logerror("ZX8302 Real Time Clock Register: %02x\n", data);
395478}
396479
397/* Microdrive */
480/*-------------------------------------------------
481    TIMER_CALLBACK( zx8302_gap_tick )
482-------------------------------------------------*/
398483
399484static TIMER_CALLBACK( zx8302_gap_tick )
400485{
r4228r4229
406491   }
407492}
408493
494/*-------------------------------------------------
495    zx8302_get_selected_microdrive - gets the
496   index of the selected microdrive
497-------------------------------------------------*/
498
409499static int zx8302_get_selected_microdrive(const device_config *device)
410500{
411501   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
420510    return 0;
421511}
422512
513/*-------------------------------------------------
514    zx8302_get_microdrive_status - gets the
515   status of the selected microdrive
516-------------------------------------------------*/
517
423518static UINT8 zx8302_get_microdrive_status(const device_config *device)
424519{
425520   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
460555   return status;
461556}
462557
558/*-------------------------------------------------
559    zx8302_mdv_track_r - microdrive data register
560-------------------------------------------------*/
561
463562READ8_DEVICE_HANDLER( zx8302_mdv_track_r )
464563{
465564   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
477576   return data;
478577}
479578
579/*-------------------------------------------------
580    zx8302_mdv_control_w - microdrive control
581   register
582-------------------------------------------------*/
583
480584WRITE8_DEVICE_HANDLER( zx8302_mdv_control_w )
481585{
482586   zx8302_t *zx8302 = get_safe_token(device);
r4228r4229
519623   }
520624}
521625
522/* Status */
626/*-------------------------------------------------
627    zx8302_status_r - status register
628-------------------------------------------------*/
523629
524630READ8_DEVICE_HANDLER( zx8302_status_r )
525631{
r4228r4229
554660   return data;
555661}
556662
663/*-------------------------------------------------
664    zx8302_vsync_w - vertical sync accessor
665-------------------------------------------------*/
666
557667void zx8302_vsync_w(const device_config *device, int level)
558668{
559669   if (level)
r4228r4229
563673   }
564674}
565675
566/* Device Interface */
676/*-------------------------------------------------
677    DEVICE_START( zx8302 )
678-------------------------------------------------*/
567679
568680static DEVICE_START( zx8302 )
569681{
570682   zx8302_t *zx8302 = get_safe_token(device);
683   const zx8302_interface *intf = get_interface(device);
571684   int i;
572685
573   /* validate arguments */
574   assert(device != NULL);
575   assert(device->tag != NULL);
576   assert(device->clock > 0);
686   /* resolve callbacks */
687   devcb_resolve_write_line(&zx8302->out_ipl1l_func, &intf->out_ipl1l_func, device);
688   devcb_resolve_write_line(&zx8302->out_baudx4_func, &intf->out_baudx4_func, device);
689   devcb_resolve_write_line(&zx8302->out_comdata_func, &intf->out_comdata_func, device);
577690
578   zx8302->intf = device->static_config;
579
580   assert(zx8302->intf != NULL);
581   assert(zx8302->intf->rtc_clock > 0);
582   assert(zx8302->intf->comdata_w != NULL);
583
584691   /* set initial values */
585692   zx8302->comctl = 1;
586693   zx8302->comdata = 1;
r4228r4229
600707   zx8302->rtc_timer = timer_alloc(device->machine, zx8302_rtc_tick, (void *)device);
601708   zx8302->gap_timer = timer_alloc(device->machine, zx8302_gap_tick, (void *)device);
602709
603   timer_adjust_periodic(zx8302->rtc_timer, attotime_zero, 0, ATTOTIME_IN_HZ(zx8302->intf->rtc_clock/32768));
710   timer_adjust_periodic(zx8302->rtc_timer, attotime_zero, 0, ATTOTIME_IN_HZ(intf->rtc_clock/32768));
604711   timer_adjust_periodic(zx8302->gap_timer, attotime_zero, 0, ATTOTIME_IN_MSEC(31));
605712
606713   /* register for state saving */
r4228r4229
636743   state_save_register_item_array(device->machine, "zx8302", device->tag, 0, zx8302->mdv_offset);
637744}
638745
746/*-------------------------------------------------
747    DEVICE_RESET( zx8301 )
748-------------------------------------------------*/
749
639750static DEVICE_RESET( zx8302 )
640751{
641752//   zx8302_t *zx8302 = get_safe_token(device);
642753
643754}
644755
756/*-------------------------------------------------
757    DEVICE_SET_INFO( zx8301 )
758-------------------------------------------------*/
759
645760static DEVICE_SET_INFO( zx8302 )
646761{
647762   switch (state)
r4228r4229
650765   }
651766}
652767
768/*-------------------------------------------------
769    DEVICE_GET_INFO( zx8301 )
770-------------------------------------------------*/
771
653772DEVICE_GET_INFO( zx8302 )
654773{
655774   switch (state)
656775   {
657776      /* --- the following bits of info are returned as 64-bit signed integers --- */
658      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(zx8302_t);               break;
659      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                        break;
660      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;         break;
777      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(zx8302_t);                  break;
778      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                           break;
779      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;            break;
661780
662781      /* --- the following bits of info are returned as pointers to data or functions --- */
663      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(zx8302); break;
664      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(zx8302);   break;
665      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
666      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(zx8302);   break;
782      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(zx8302);   break;
783      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(zx8302);      break;
784      case DEVINFO_FCT_STOP:                     /* Nothing */                           break;
785      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(zx8302);      break;
667786
668787      /* --- the following bits of info are returned as NULL-terminated strings --- */
669788      case DEVINFO_STR_NAME:                     strcpy(info->s, "Sinclair ZX8302");            break;
670      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Sinclair ZX83");               break;
789      case DEVINFO_STR_FAMILY:                  strcpy(info->s, "Sinclair QL");               break;
671790      case DEVINFO_STR_VERSION:                  strcpy(info->s, "1.0");                     break;
672      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                     break;
791      case DEVINFO_STR_SOURCE_FILE:               strcpy(info->s, __FILE__);                  break;
673792      case DEVINFO_STR_CREDITS:                  strcpy(info->s, "Copyright MESS Team");         break;
674793   }
675794}
src/mess/machine/zx8302.h
r4228r4229
2121               DB2  12 |          | 29 
2222                    13 |          | 28  RESETOUTL
2323                    14 |          | 27  DB7
24                A5  15 |          | 26  IPLIL
24                A5  15 |          | 26  IPL1L
2525             NETIN  16 |          | 25  CLKCPU
2626                A1  17 |          | 24  DB3
2727                A0  18 |          | 23  DB6
r4228r4229
3333#ifndef __ZX8302__
3434#define __ZX8302__
3535
36typedef void (*zx8302_irq_callback_func) (const device_config *device, int state);
37#define ZX8302_IRQ_CALLBACK(name) void name(const device_config *device, int state)
36#include "devcb.h"
3837
39typedef void (*zx8302_on_baudx4_changed_func) (const device_config *device, int level);
40#define ZX8302_ON_BAUDX4_CHANGED(name) void name(const device_config *device, int level)
38/***************************************************************************
39    MACROS / CONSTANTS
40***************************************************************************/
4141
42typedef void (*zx8302_comdata_write_func) (const device_config *device, int level);
43#define ZX8302_COMDATA_WRITE(name) void name(const device_config *device, int level)
44
4542#define ZX8302 DEVICE_GET_INFO_NAME( zx8302 )
4643
4744#define MDRV_ZX8302_ADD(_tag, _clock, _config) \
4845   MDRV_DEVICE_ADD(_tag, ZX8302, _clock) \
4946   MDRV_DEVICE_CONFIG(_config)
5047
51/* interface */
48#define ZX8302_INTERFACE(name) \
49   const zx8302_interface(name) =
50
51/***************************************************************************
52    TYPE DEFINITIONS
53***************************************************************************/
54
5255typedef struct _zx8302_interface zx8302_interface;
5356struct _zx8302_interface
5457{
r4228r4229
5760   const char *mdv1_tag;      /* microdrive 1 */
5861   const char *mdv2_tag;      /* microdrive 2 */
5962
60   /* this gets called for every change of the IPLIL pin (pin 26) */
61   zx8302_irq_callback_func      irq_callback;
63   /* this gets called for every change of the IPL1L pin (pin 26) */
64   devcb_write_line   out_ipl1l_func;
6265
6366   /* this gets called for every change of the BAUDX4 pin (pin 5) */
64   zx8302_on_baudx4_changed_func   on_baudx4_changed;
67   devcb_write_line   out_baudx4_func;
6568
6669   /* this gets called for every write of the COMDATA pin (pin 35) */
67   zx8302_comdata_write_func      comdata_w;
70   devcb_write_line   out_comdata_func;
6871};
69#define ZX8302_INTERFACE(name) const zx8302_interface(name) =
7072
73/***************************************************************************
74    PROTOTYPES
75***************************************************************************/
76
7177/* device interface */
7278DEVICE_GET_INFO( zx8302 );
7379
src/mess/drivers/ql.c
r4228r4229
1/*
1   /*
22
33    Sinclair QL
44
r4228r4229
113113      switch (ipl)
114114      {
115115      case 0:
116         cpu_set_input_line(space->machine->cpu[0], M68K_IRQ_7, ASSERT_LINE);
116         cputag_set_input_line(space->machine, M68008_TAG, M68K_IRQ_7, ASSERT_LINE);
117117         break;
118118
119119      case 1:
120120         // CTRL-ALT-7 pressed
121         cpu_set_input_line(space->machine->cpu[0], M68K_IRQ_5, ASSERT_LINE);
121         cputag_set_input_line(space->machine, M68008_TAG, M68K_IRQ_5, ASSERT_LINE);
122122         break;
123123
124124      case 2:
125         cpu_set_input_line(space->machine->cpu[0], M68K_IRQ_2, ASSERT_LINE);
125         cputag_set_input_line(space->machine, M68008_TAG, M68K_IRQ_2, ASSERT_LINE);
126126         break;
127127
128128      case 3:
129         cpu_set_input_line(space->machine->cpu[0], M68K_IRQ_7, CLEAR_LINE);
129         cputag_set_input_line(space->machine, M68008_TAG, M68K_IRQ_7, CLEAR_LINE);
130130         break;
131131      }
132132
r4228r4229
164164
165165   int irq = (state->ser2_rxd | state->ser1_txd);
166166
167   cpu_set_input_line(space->machine->cpu[1], INPUT_LINE_IRQ0, irq);
167   cputag_set_input_line(space->machine, I8749_TAG, INPUT_LINE_IRQ0, irq);
168168
169169   return (state->comdata << 7) | irq;
170170}
r4228r4229
468468
469469/* ZX8301 Interface */
470470
471static ZX8301_ON_VSYNC_CHANGED( ql_vsync_w )
471static READ8_HANDLER( ql_ram_r )
472472{
473   ql_state *state = device->machine->driver_data;
474
475   zx8302_vsync_w(state->zx8302, level);
473   return mess_ram[offset];
476474}
477475
478static ZX8301_RAM_READ( ql_ram_r )
476static WRITE8_HANDLER( ql_ram_w )
479477{
480   return mess_ram[da];
478   mess_ram[offset] = data;
481479}
482480
483static ZX8301_RAM_WRITE( ql_ram_w )
484{
485   mess_ram[da] = data;
486}
487
488481static ZX8301_INTERFACE( ql_zx8301_intf )
489482{
483   M68008_TAG,
490484   SCREEN_TAG,
491   ql_vsync_w,
492   ql_ram_r,
493   ql_ram_w
485   DEVCB_MEMORY_HANDLER(M68008_TAG, PROGRAM, ql_ram_r),
486   DEVCB_MEMORY_HANDLER(M68008_TAG, PROGRAM, ql_ram_w),
487   DEVCB_DEVICE_LINE(ZX8302, ZX8302_TAG, zx8302_vsync_w)
494488};
495489
496490/* ZX8302 Interface */
497491
498static ZX8302_IRQ_CALLBACK( ql_irq_w )
492static WRITE_LINE_DEVICE_HANDLER( ql_baudx4_w )
499493{
500   cpu_set_input_line(device->machine->cpu[0], M68K_IRQ_2, state);
501}
494   ql_state *driver_state = device->machine->driver_data;
502495
503static ZX8302_ON_BAUDX4_CHANGED( ql_baudx4_w )
504{
505   ql_state *state = device->machine->driver_data;
506
507   state->baudx4 = level;
496   driver_state->baudx4 = state;
508497}
509498
510static ZX8302_COMDATA_WRITE( ql_comdata_w )
499static WRITE_LINE_DEVICE_HANDLER( ql_comdata_w )
511500{
512   ql_state *state = device->machine->driver_data;
501   ql_state *driver_state = device->machine->driver_data;
513502
514   state->comdata = level;
503   driver_state->comdata = state;
515504}
516505
517506static ZX8302_INTERFACE( ql_zx8302_intf )
r4228r4229
519508   X2,
520509   MDV1_TAG,
521510   MDV2_TAG,
522   ql_irq_w,
523   ql_baudx4_w,
524   ql_comdata_w
511   DEVCB_CPU_INPUT_LINE(M68008_TAG, M68K_IRQ_2),
512   DEVCB_LINE(ql_baudx4_w),
513   DEVCB_LINE(ql_comdata_w)
525514};
526515
527516static VIDEO_UPDATE( ql )
r4228r4229
544533   /* configure ROM cartridge */
545534
546535   memory_install_readwrite8_handler(program, 0x00c000, 0x00ffff, 0, 0, SMH_UNMAP, SMH_UNMAP);
547   memory_configure_bank(machine, 1, 0, 1, memory_region(machine, "main") + 0x00c000, 0);
536   memory_configure_bank(machine, 1, 0, 1, memory_region(machine, M68008_TAG) + 0x00c000, 0);
548537   memory_set_bank(machine, 1, 0);
549538
550539   /* configure RAM */
r4228r4229
580569      break;
581570   }
582571
583   memory_configure_bank(machine, 2, 0, 1, memory_region(machine, "main") + 0x050000, 0);
572   memory_configure_bank(machine, 2, 0, 1, memory_region(machine, M68008_TAG) + 0x050000, 0);
584573   memory_set_bank(machine, 2, 0);
585574
586575   // find devices
r4228r4229
603592
604593static DEVICE_IMAGE_LOAD( ql_cart )
605594{
606   UINT8 *ptr = memory_region(image->machine, "main") + 0x00c000;
595   UINT8 *ptr = memory_region(image->machine, M68008_TAG) + 0x00c000;
607596   int   filesize = image_length(image);
608597
609598   if (filesize <= 16 * 1024)
610599   {
611600      if (image_fread(image, ptr, filesize) == filesize)
612601      {
613         memory_install_readwrite8_handler(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x00c000, 0x00ffff, 0, 0, SMH_BANK1, SMH_UNMAP);
602         memory_install_readwrite8_handler(cputag_get_address_space(image->machine, M68008_TAG, ADDRESS_SPACE_PROGRAM), 0x00c000, 0x00ffff, 0, 0, SMH_BANK1, SMH_UNMAP);
614603
615604         return INIT_PASS;
616605      }
r4228r4229
624613
625614   // basic machine hardware
626615
627   MDRV_CPU_ADD("main", M68008, X1/2)
616   MDRV_CPU_ADD(M68008_TAG, M68008, X1/2)
628617   MDRV_CPU_PROGRAM_MAP(ql_map, 0)
629618
630   MDRV_CPU_ADD("ipc", I8749, X4)
619   MDRV_CPU_ADD(I8749_TAG, I8749, X4)
631620   MDRV_CPU_IO_MAP(ipc_io_map, 0)
632621
633622   MDRV_MACHINE_START(ql)
r4228r4229
671660   MDRV_DRIVER_DATA(ql_state)
672661
673662   // basic machine hardware
674   MDRV_CPU_ADD("main", M68008, 7500000)
663   MDRV_CPU_ADD(M68008_TAG, M68008, 7500000)
675664   MDRV_CPU_PROGRAM_MAP(ql_map, 0)
676665
677   MDRV_CPU_ADD("ipc", I8051, X4)
666   MDRV_CPU_ADD(I8051_TAG, I8051, X4)
678667   MDRV_CPU_IO_MAP(ipc_io_map, 0)
679668   
680669   MDRV_CARTSLOT_REMOVE("cart")
r4228r4229
683672static MACHINE_DRIVER_START( ql_ntsc )
684673   MDRV_IMPORT_FROM(ql)
685674
686   MDRV_SCREEN_MODIFY("main")
675   MDRV_SCREEN_MODIFY(SCREEN_TAG)
687676   MDRV_SCREEN_REFRESH_RATE(60)
688677   MDRV_SCREEN_SIZE(960, 262)
689678   MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1)
r4228r4229
692681/* ROMs */
693682
694683#define ROM_IPC   \
695   ROM_REGION( 0x800, "ipc", 0 )\
684   ROM_REGION( 0x800, I8749_TAG, 0 )\
696685   ROM_LOAD( "ipc8049.ic24", 0x0000, 0x0800, CRC(6a0d1f20) SHA1(fcb1c97ee7c66e5b6d8fbb57c06fd2f6509f2e1b) )
697686
698687ROM_START( ql )
699    ROM_REGION( 0x400000, "main", 0 )
688    ROM_REGION( 0x400000, M68008_TAG, 0 )
700689   ROM_SYSTEM_BIOS( 0, "default", "v1.10 (JS)" )
701690   ROMX_LOAD( "ql.js 0000.ic33", 0x000000, 0x008000, CRC(1bbad3b8) SHA1(59fd4372771a630967ee102760f4652904d7d5fa), ROM_BIOS(1) )
702691    ROMX_LOAD( "ql.js 8000.ic34", 0x008000, 0x004000, CRC(c970800e) SHA1(b8c9203026a7de6a44bd0942ec9343e8b222cb41), ROM_BIOS(1) )
r4228r4229
736725ROM_END
737726
738727ROM_START( ql_us )
739    ROM_REGION( 0x400000, "main", 0 )
728    ROM_REGION( 0x400000, M68008_TAG, 0 )
740729    ROM_LOAD( "jsu.ic33", 0x000000, 0x008000, BAD_DUMP CRC(e397f49f) SHA1(c06f92eabaf3e6dd298c51cb7f7535d8ef0ef9c5) )
741730    ROM_LOAD( "jsu.ic34", 0x008000, 0x004000, BAD_DUMP CRC(3debbacc) SHA1(9fbc3e42ec463fa42f9c535d63780ff53a9313ec) )
742731
r4228r4229
744733ROM_END
745734
746735ROM_START( ql_es )
747    ROM_REGION( 0x400000, "main", 0 )
736    ROM_REGION( 0x400000, M68008_TAG, 0 )
748737    ROM_LOAD( "mge.ic33", 0x000000, 0x008000, BAD_DUMP CRC(d5293bde) SHA1(bf5af7e53a472d4e9871f182210787d601db0634) )
749738    ROM_LOAD( "mge.ic34", 0x008000, 0x004000, BAD_DUMP CRC(a694f8d7) SHA1(bd2868656008de85d7c191598588017ae8aa3339) )
750739
r4228r4229
752741ROM_END
753742
754743ROM_START( ql_fr )
755    ROM_REGION( 0x400000, "main", 0 )
744    ROM_REGION( 0x400000, M68008_TAG, 0 )
756745    ROM_LOAD( "mgf.ic33", 0x000000, 0x008000, NO_DUMP )
757746    ROM_LOAD( "mgf.ic34", 0x008000, 0x004000, NO_DUMP )
758747
r4228r4229
760749ROM_END
761750
762751ROM_START( ql_de )
763    ROM_REGION( 0x400000, "main", 0 )
752    ROM_REGION( 0x400000, M68008_TAG, 0 )
764753   ROM_SYSTEM_BIOS( 0, "default", "v1.10 (MG)" )
765754    ROMX_LOAD( "mgg.ic33", 0x000000, 0x008000, BAD_DUMP CRC(b4e468fd) SHA1(cd02a3cd79af90d48b65077d0571efc2f12f146e), ROM_BIOS(1) )
766755    ROMX_LOAD( "mgg.ic34", 0x008000, 0x004000, BAD_DUMP CRC(54959d40) SHA1(ffc0be9649f26019d7be82925c18dc699259877f), ROM_BIOS(1) )
r4228r4229
776765ROM_END
777766
778767ROM_START( ql_it )
779    ROM_REGION( 0x400000, "main", 0 )
768    ROM_REGION( 0x400000, M68008_TAG, 0 )
780769    ROM_LOAD( "mgi.ic33", 0x000000, 0x008000, BAD_DUMP CRC(d5293bde) SHA1(bf5af7e53a472d4e9871f182210787d601db0634) )
781770    ROM_LOAD( "mgi.ic34", 0x008000, 0x004000, BAD_DUMP CRC(a2fdfb83) SHA1(162b1052737500f3c13497cdf0f813ba006bdae9) )
782771
r4228r4229
784773ROM_END
785774
786775ROM_START( ql_se )
787    ROM_REGION( 0x400000, "main", 0 )
776    ROM_REGION( 0x400000, M68008_TAG, 0 )
788777    ROM_LOAD( "mgs.ic33", 0x000000, 0x008000, NO_DUMP )
789778    ROM_LOAD( "mgs.ic34", 0x008000, 0x004000, NO_DUMP )
790779
r4228r4229
792781ROM_END
793782
794783ROM_START( ql_gr )
795    ROM_REGION( 0x400000, "main", 0 )
784    ROM_REGION( 0x400000, M68008_TAG, 0 )
796785    ROM_LOAD( "efp.ic33", 0x000000, 0x008000, BAD_DUMP CRC(eb181641) SHA1(43c1e0215cf540cbbda240b1048910ff55681059) )
797786    ROM_LOAD( "efp.ic34", 0x008000, 0x004000, BAD_DUMP CRC(4c3b34b7) SHA1(f9dc571d2d4f68520b306ecc7516acaeea69ec0d) )
798787
r4228r4229
800789ROM_END
801790
802791ROM_START( ql_dk )
803    ROM_REGION( 0x400000, "main", 0 )
792    ROM_REGION( 0x400000, M68008_TAG, 0 )
804793    ROM_LOAD( "mgd.ic33",  0x000000, 0x008000, BAD_DUMP CRC(f57755eb) SHA1(dc57939ffb8741e17967a1d2479c339750ec7ff6) )
805794    ROM_LOAD( "mgd.ic34",  0x008000, 0x004000, BAD_DUMP CRC(1892465a) SHA1(0ff3046b5276da6639d3fe79b22ae25cc265d540) )
806795   ROM_LOAD( "extra.rom", 0x01c000, 0x004000, NO_DUMP )
r4228r4229
809798ROM_END
810799
811800ROM_START( tonto )
812    ROM_REGION( 0x400000, "main", 0 )
801    ROM_REGION( 0x400000, M68008_TAG, 0 )
813802   ROM_LOAD( "bios-1.rom", 0x000000, 0x008000, NO_DUMP )
814803   ROM_LOAD( "bios-2.rom", 0x008000, 0x008000, NO_DUMP )
815804   ROM_LOAD( "bios-3.rom", 0x010000, 0x008000, NO_DUMP )
816805   ROM_LOAD( "bios-4.rom", 0x018000, 0x008000, NO_DUMP )
817806
818    ROM_REGION( 0x10000, "i8051", 0 )
807    ROM_REGION( 0x10000, I8051_TAG, 0 )
819808   ROM_LOAD( "8051-1.rom", 0x000000, 0x010000, NO_DUMP )
820809
821810    ROM_REGION( 0x10000, "tms5220", 0 )
r4228r4229
830819ROM_END
831820
832821ROM_START( megaopd )
833    ROM_REGION( 0x400000, "main", 0 )
822    ROM_REGION( 0x400000, M68008_TAG, 0 )
834823   ROM_LOAD( "bios-1.rom", 0x000000, 0x008000, NO_DUMP )
835824   ROM_LOAD( "bios-2.rom", 0x008000, 0x008000, NO_DUMP )
836825   ROM_LOAD( "bios-3.rom", 0x010000, 0x008000, NO_DUMP )
837826   ROM_LOAD( "bios-4.rom", 0x018000, 0x008000, NO_DUMP )
838827
839    ROM_REGION( 0x10000, "i8051", 0 )
828    ROM_REGION( 0x10000, I8051_TAG, 0 )
840829   ROM_LOAD( "8051-1.rom", 0x000000, 0x010000, NO_DUMP )
841830
842831    ROM_REGION( 0x10000, "tms5220", 0 )
docs/messnew.txt
r4228r4229
7979
8080- Fixed image loading related memory leaks. [Curt Coder]
8181
82- Refactored the CDP1861, CDP1864, and CDP1871 devices to use devcb callbacks.
83  [Curt Coder]
82- Refactored the following devices to use devcb callbacks:
83  CDP1861, CDP1864, CDP1871, ZX8301, ZX8302 [Curt Coder]
8484
8585
86
87860.129
8887
8988New System Drivers Supported (in no particular order):

Previous 15994 Revisions Next


© 1998-2018 The MESS Team