Previous 15994 Revisions Next

r2406 Tuesday 15th April, 2008 at 20:57:41 UTC by Curt Coder
[ABC806] Added preliminary emulation of the E05-16 RTC chip.
[src/mess]mess.mak
[src/mess/drivers]abc80x.c
[src/mess/includes]abc80x.h
[src/mess/machine]e0516.c* e0516.h*
[src/mess/video]abc80x.c

src/mess/includes/abc80x.h
r2405r2406
1010#define ABC800_X01   XTAL_12MHz
1111#define ABC806_X02   XTAL_32_768kHz
1212
13#define SCREEN_TAG   "main"
14#define E0516_TAG   "j13"
15#define MC6845_TAG   "mc6845"
16
1317/*----------- defined in video/abc80x.c -----------*/
1418
1519MACHINE_DRIVER_EXTERN(abc800m_video);
src/mess/video/abc80x.c
r2405r2406
249249
250250#include "driver.h"
251251#include "includes/abc80x.h"
252#include "machine/z80dart.h"
253#include "machine/e0516.h"
252254#include "video/mc6845.h"
253#include "machine/z80dart.h"
254255
255256#define ABC800_CHAR_WIDTH   6
256257
r2405r2406
356357
357358READ8_HANDLER( abc806_fgctlprom_r )
358359{
360   const device_config *e0516 = device_list_find_by_tag(machine->config->devicelist, E0516, E0516_TAG);
361
359362   /*
360363
361364      bit      description
r2405r2406
373376
374377   UINT8 data = 0;
375378
376   //data |= e0516_dio_r() << 7;
379   data |= e0516_dio_r(e0516) << 7;
377380
378381   return data;
379382}
380383
381384WRITE8_HANDLER( abc806_fgctlprom_w )
382385{
383}
386   const device_config *e0516 = device_list_find_by_tag(machine->config->devicelist, E0516, E0516_TAG);
384387
385WRITE8_HANDLER( abc806_sync_w )
386{
387388   /*
388389
389390      bit      description
r2405r2406
400401   */
401402
402403   abc806_eme = BIT(data, 0);
403   abc806_40 = BIT(data, 1);
404   abc806_40 = !BIT(data, 1);
404405   abc806_txoff = BIT(data, 4);
405406
406   //e0516_cs_w(BIT(data, 5));
407   //e0516_clk_w(BIT(data, 6));
408   //e0516_dio_w(BIT(data, 7));
407   e0516_cs_w(e0516, BIT(data, 5));
408   e0516_clk_w(e0516, BIT(data, 6));
409   e0516_dio_w(e0516, BIT(data, 7));
409410}
410411
412WRITE8_HANDLER( abc806_sync_w )
413{
414}
415
411416/* Timer Callbacks */
412417
413418static TIMER_CALLBACK( abc802_flash_tick )
r2405r2406
637642
638643/* MC6845 Interfaces */
639644
640static const mc6845_interface abc800m_crtc6845_interface = {
641   "main",
645static const mc6845_interface abc800m_mc6845_interface = {
646   SCREEN_TAG,
642647   ABC800_CCLK,
643648   ABC800_CHAR_WIDTH,
644649   NULL,
r2405r2406
649654   abc800_vsync_changed
650655};
651656
652static const mc6845_interface abc800c_crtc6845_interface = {
653   "main",
657static const mc6845_interface abc800c_mc6845_interface = {
658   SCREEN_TAG,
654659   ABC800_CCLK,
655660   ABC800_CHAR_WIDTH,
656661   NULL,
r2405r2406
661666   abc800_vsync_changed
662667};
663668
664static const mc6845_interface abc802_crtc6845_interface = {
665   "main",
669static const mc6845_interface abc802_mc6845_interface = {
670   SCREEN_TAG,
666671   ABC800_CCLK,
667672   ABC800_CHAR_WIDTH,
668673   NULL,
r2405r2406
673678   abc802_vsync_changed
674679};
675680
676static const mc6845_interface abc806_crtc6845_interface = {
677   "main",
681static const mc6845_interface abc806_mc6845_interface = {
682   SCREEN_TAG,
678683   ABC800_CCLK,
679684   ABC800_CHAR_WIDTH,
680685   NULL,
r2405r2406
717722
718723static VIDEO_UPDATE( abc800m )
719724{
720   const device_config *abc800_mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, "crtc");
721   mc6845_update(abc800_mc6845, bitmap, cliprect);
725   const device_config *mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, MC6845_TAG);
726   
727   mc6845_update(mc6845, bitmap, cliprect);
728   
722729   return 0;
723730}
724731
725732static VIDEO_UPDATE( abc800c )
726733{
727   const device_config *abc800_mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, "crtc");
728   mc6845_update(abc800_mc6845, bitmap, cliprect);
734   const device_config *mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, MC6845_TAG);
735   
736   mc6845_update(mc6845, bitmap, cliprect);
737   
729738   return 0;
730739}
731740
732741static VIDEO_UPDATE( abc802 )
733742{
734   const device_config *abc800_mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, "crtc");
735   mc6845_update(abc800_mc6845, bitmap, cliprect);
743   const device_config *mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, MC6845_TAG);
744   
745   mc6845_update(mc6845, bitmap, cliprect);
746   
736747   return 0;
737748}
738749
739750static VIDEO_UPDATE( abc806 )
740751{
741   const device_config *abc800_mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, "crtc");
742   mc6845_update(abc800_mc6845, bitmap, cliprect);
752   const device_config *mc6845 = device_list_find_by_tag(screen->machine->config->devicelist, MC6845, MC6845_TAG);
753   
754   mc6845_update(mc6845, bitmap, cliprect);
755   
743756   return 0;
744757}
745758
r2405r2406
747760
748761MACHINE_DRIVER_START( abc800m_video )
749762   // device interface
750   MDRV_DEVICE_ADD("crtc", MC6845)
751   MDRV_DEVICE_CONFIG(abc800m_crtc6845_interface)
763   MDRV_DEVICE_ADD(MC6845_TAG, MC6845)
764   MDRV_DEVICE_CONFIG(abc800m_mc6845_interface)
752765
753766   // video hardware
754   MDRV_SCREEN_ADD("main", RASTER)
767   MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
755768   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
756769
757770   MDRV_SCREEN_REFRESH_RATE(60)
r2405r2406
768781
769782MACHINE_DRIVER_START( abc800c_video )
770783   // device interface
771   MDRV_DEVICE_ADD("crtc", MC6845)
772   MDRV_DEVICE_CONFIG(abc800c_crtc6845_interface)
784   MDRV_DEVICE_ADD(MC6845_TAG, MC6845)
785   MDRV_DEVICE_CONFIG(abc800c_mc6845_interface)
773786
774787   // video hardware
775   MDRV_SCREEN_ADD("main", RASTER)
788   MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
776789   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
777790
778791   MDRV_SCREEN_REFRESH_RATE(60)
r2405r2406
789802
790803MACHINE_DRIVER_START( abc802_video )
791804   // device interface
792   MDRV_DEVICE_ADD("crtc", MC6845)
793   MDRV_DEVICE_CONFIG(abc802_crtc6845_interface)
805   MDRV_DEVICE_ADD(MC6845_TAG, MC6845)
806   MDRV_DEVICE_CONFIG(abc802_mc6845_interface)
794807
795808   // video hardware
796   MDRV_SCREEN_ADD("main", RASTER)
809   MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
797810   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
798811
799812   MDRV_SCREEN_REFRESH_RATE(60)
r2405r2406
810823
811824MACHINE_DRIVER_START( abc806_video )
812825   // device interface
813   MDRV_DEVICE_ADD("crtc", MC6845)
814   MDRV_DEVICE_CONFIG(abc806_crtc6845_interface)
826   MDRV_DEVICE_ADD(MC6845_TAG, MC6845)
827   MDRV_DEVICE_CONFIG(abc806_mc6845_interface)
815828
816829   // video hardware
817   MDRV_SCREEN_ADD("main", RASTER)
830   MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
818831   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
819832
820833   MDRV_SCREEN_REFRESH_RATE(60)
src/mess/machine/e0516.c
r0r2406
1#include "driver.h"
2#include "e0516.h"
3 
4enum {
5   E0516_REGISTER_SECOND = 0,
6   E0516_REGISTER_MINUTE,
7   E0516_REGISTER_HOUR,
8   E0516_REGISTER_DAY,
9   E0516_REGISTER_MONTH,
10   E0516_REGISTER_DAY_OF_WEEK,
11   E0516_REGISTER_YEAR,
12   E0516_REGISTER_ALL
13};
14 
15typedef struct _e0516_t e0516_t;
16struct _e0516_t
17{
18   const e0516_interface *intf;   /* interface */
19   
20   int cs;                     /* chip select */
21   int data_latch;               /* data latch */
22   int reg_latch;               /* register latch */
23   int read_write;               /* read/write data */
24   int state;                  /* state */
25   int bits;                  /* number of bits transferred */
26   int dio;                  /* data pin */
27 
28   UINT8 reg[8];               /* registers */
29 
30   /* timers */
31   emu_timer *clock_timer;      /* clock timer */
32};
33 
34INLINE e0516_t *get_safe_token(const device_config *device)
35{
36   assert(device != NULL);
37   assert(device->token != NULL);
38 
39   return (e0516_t *)device->token;
40}
41 
42/* Timer Callbacks */
43 
44static TIMER_CALLBACK(clock_tick)
45{
46   const device_config *device = ptr;
47   e0516_t *e0516 = get_safe_token(device);
48 
49   e0516->reg[E0516_REGISTER_SECOND]++;
50   
51   if (e0516->reg[E0516_REGISTER_SECOND] == 60)
52   {
53      e0516->reg[E0516_REGISTER_SECOND] = 0;
54      e0516->reg[E0516_REGISTER_MINUTE]++;
55   }
56 
57   if (e0516->reg[E0516_REGISTER_MINUTE] == 60)
58   {
59      e0516->reg[E0516_REGISTER_MINUTE] = 0;
60      e0516->reg[E0516_REGISTER_HOUR]++;
61   }
62 
63   if (e0516->reg[E0516_REGISTER_HOUR] == 24)
64   {
65      e0516->reg[E0516_REGISTER_HOUR] = 0;
66      e0516->reg[E0516_REGISTER_DAY]++;
67      e0516->reg[E0516_REGISTER_DAY_OF_WEEK]++;
68   }
69 
70   if (e0516->reg[E0516_REGISTER_DAY_OF_WEEK] == 8)
71   {
72      e0516->reg[E0516_REGISTER_DAY_OF_WEEK] = 1;
73   }
74 
75   if (e0516->reg[E0516_REGISTER_DAY] == 32)
76   {
77      e0516->reg[E0516_REGISTER_DAY] = 1;
78      e0516->reg[E0516_REGISTER_MONTH]++;
79   }
80 
81   if (e0516->reg[E0516_REGISTER_MONTH] == 13)
82   {
83      e0516->reg[E0516_REGISTER_MONTH] = 1;
84      e0516->reg[E0516_REGISTER_YEAR]++;
85   }
86}
87 
88/* Serial Data Input/Output */
89 
90int e0516_dio_r(const device_config *device)
91{
92   e0516_t *e0516 = get_safe_token(device);
93 
94   return e0516->dio;
95}
96 
97void e0516_dio_w(const device_config *device, int level)
98{
99   e0516_t *e0516 = get_safe_token(device);
100 
101   e0516->dio = level;
102}
103 
104/* Clock */
105 
106void e0516_clk_w(const device_config *device, int level)
107{
108   e0516_t *e0516 = get_safe_token(device);
109 
110   if (e0516->cs == 1) return;
111 
112   if (level == 0)
113   {
114      e0516->bits++;
115 
116      if (e0516->state == 0)
117      {
118         // command
119 
120         e0516->reg_latch |= e0516->dio << 3;
121         e0516->reg_latch >>= 1;
122 
123         if (e0516->bits == 4)
124         {
125            e0516->state = 1;
126            e0516->bits = 0;
127 
128            if (BIT(e0516->reg_latch, 0))
129            {
130               // load register value to data latch
131               e0516->data_latch = e0516->reg[e0516->reg_latch >> 1];
132            }
133         }
134      }
135      else
136      {
137         // data
138 
139         if (BIT(e0516->reg_latch, 0))
140         {
141            // read
142 
143            e0516->dio = BIT(e0516->data_latch, 0);
144            e0516->data_latch >>= 1;
145         }
146         else
147         {
148            // write
149 
150            e0516->data_latch |= e0516->dio << 7;
151            e0516->data_latch >>= 1;
152         }
153         
154         if (e0516->bits == 8)
155         {
156            e0516->state = 0;
157            e0516->bits = 0;
158 
159            if (!BIT(e0516->reg_latch, 0))
160            {
161               // write latched data to register
162               e0516->reg[e0516->reg_latch >> 1] = e0516->data_latch;
163            }
164         }
165      }
166   }
167}
168 
169/* Chip Select */
170 
171void e0516_cs_w(const device_config *device, int level)
172{
173   e0516_t *e0516 = get_safe_token(device);
174 
175   e0516->cs = level;
176 
177   if (level == 1)
178   {
179      e0516->data_latch = 0;
180      e0516->reg_latch = 0;
181      e0516->bits = 0;
182      e0516->state = 0;
183   }
184}
185 
186/* Device Interface */
187 
188static DEVICE_START( e0516 )
189{
190   e0516_t *e0516 = get_safe_token(device);
191   char unique_tag[30];
192 
193   /* validate arguments */
194   assert(device != NULL);
195   assert(device->tag != NULL);
196   assert(strlen(device->tag) < 20);
197 
198   e0516->intf = device->static_config;
199 
200   assert(e0516->intf != NULL);
201   assert(e0516->intf->clock > 0);
202 
203   /* create the timers */
204   e0516->clock_timer = timer_alloc(clock_tick, (void *)device);
205   timer_adjust_periodic(e0516->clock_timer, attotime_zero, 0, ATTOTIME_IN_HZ(e0516->intf->clock / 32768));
206 
207   /* register for state saving */
208   state_save_combine_module_and_tag(unique_tag, "E0516", device->tag);
209 
210   state_save_register_item(unique_tag, 0, e0516->cs);
211   state_save_register_item(unique_tag, 0, e0516->data_latch);
212   state_save_register_item(unique_tag, 0, e0516->reg_latch);
213   state_save_register_item(unique_tag, 0, e0516->read_write);
214   state_save_register_item(unique_tag, 0, e0516->state);
215   state_save_register_item(unique_tag, 0, e0516->bits);
216   state_save_register_item(unique_tag, 0, e0516->dio);
217 
218   state_save_register_item_array(unique_tag, 0, e0516->reg);
219}
220 
221static DEVICE_SET_INFO( e0516 )
222{
223   switch (state)
224   {
225      /* no parameters to set */
226   }
227}
228 
229DEVICE_GET_INFO( e0516 )
230{
231   switch (state)
232   {
233      /* --- the following bits of info are returned as 64-bit signed integers --- */
234      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(e0516_t);               break;
235      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                        break;
236      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;         break;
237 
238      /* --- the following bits of info are returned as pointers to data or functions --- */
239      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(e0516); break;
240      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(e0516);      break;
241      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
242      case DEVINFO_FCT_RESET:                     /* Nothing */                        break;
243 
244      /* --- the following bits of info are returned as NULL-terminated strings --- */
245      case DEVINFO_STR_NAME:                     info->s = "E05-16";                     break;
246      case DEVINFO_STR_FAMILY:                  info->s = "E05-16";                     break;
247      case DEVINFO_STR_VERSION:                  info->s = "1.0";                     break;
248      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__;                     break;
249      case DEVINFO_STR_CREDITS:                  info->s = "Copyright MESS Team";         break;
250   }
251}
src/mess/machine/e0516.h
r0r2406
1#ifndef __E0516__
2#define __E0516__
3 
4#define E0516   DEVICE_GET_INFO_NAME(e0516)
5 
6/* interface */
7typedef struct _e0516_interface e0516_interface;
8struct _e0516_interface
9{
10   int clock;               /* the clock (pin 15) of the chip */
11   
12   int *dio_pin;            /* the DI/O (pin 13) of the chip */
13};
14 
15/* device interface */
16DEVICE_GET_INFO( e0516 );
17 
18/* serial data input/output */
19int e0516_dio_r(const device_config *device);
20void e0516_dio_w(const device_config *device, int level);
21 
22/* clock */
23void e0516_clk_w(const device_config *device, int level);
24 
25/* chip select */
26void e0516_cs_w(const device_config *device, int level);
27 
28#endif
src/mess/mess.mak
r2405r2406
11171117   $(MESS_DRIVERS)/abc80x.o   \
11181118   $(MESS_VIDEO)/abc80x.o   \
11191119   $(MESS_MACHINE)/abcbus.o   \
1120   $(MESS_MACHINE)/e0516.o   \
11201121
11211122$(MESSOBJ)/sgi.a:                  \
11221123   $(MESS_MACHINE)/sgi.o      \
src/mess/drivers/abc80x.c
r2405r2406
5555
5656    TODO:
5757
58   - pass mc6854 around in machine->driver_data
59    - keyboard ROM dump is needed!
58    - ABC77 keyboard ROM dump is needed!
59   - refactor ABC77/99 keyboards into devices?
6060   - rewrite Z80DART for bit level serial I/O
6161   - ABC806 memory banking for 0x7000-0x7fff
6262    - keyboard NE556 discrete beeper
r2405r2406
8282#include "machine/z80sio.h"
8383#include "machine/z80dart.h"
8484#include "machine/abcbus.h"
85#include "machine/e0516.h"
8586#include "video/mc6845.h"
8687
8788/* Devices */
r2405r2406
101102
102103// ABC 806
103104
104static UINT8 abc806_bank[0xf] = { 0 };
105static UINT8 abc806_bank[16] = { 0 };
105106
106107static READ8_HANDLER( abc806_bankswitch_r )
107108{
r2405r2406
340341   AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800m_hrc_w)
341342   AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_READWRITE(dart_r, dart_w)
342343   AM_RANGE(0x30, 0x32) AM_WRITE(abc800_ram_ctrl_w)
343   AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r)
344   AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w)
345   AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w)
344   AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, MC6845_TAG, mc6845_register_r)
345   AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_address_w)
346   AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_register_w)
346347   AM_RANGE(0x40, 0x43) AM_MIRROR(0x1c) AM_READWRITE(sio2_r, sio2_w)
347348   AM_RANGE(0x50, 0x53) AM_MIRROR(0x1c) AM_READWRITE(z80ctc_0_r, z80ctc_0_w)
348349   AM_RANGE(0x80, 0x80) AM_MIRROR(0x7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w)
r2405r2406
368369   AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800c_hrc_w)
369370   AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_READWRITE(dart_r, dart_w)
370371   AM_RANGE(0x30, 0x32) AM_WRITE(abc800_ram_ctrl_w)
371   AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r)
372   AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w)
373   AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w)
372   AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, MC6845_TAG, mc6845_register_r)
373   AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_address_w)
374   AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_register_w)
374375   AM_RANGE(0x40, 0x43) AM_MIRROR(0x1c) AM_READWRITE(sio2_r, sio2_w)
375376   AM_RANGE(0x50, 0x53) AM_MIRROR(0x1c) AM_READWRITE(z80ctc_0_r, z80ctc_0_w)
376377   AM_RANGE(0x80, 0x80) AM_MIRROR(0x7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w)
r2405r2406
393394   AM_RANGE(0x02, 0x05) AM_WRITE(abcbus_command_w)
394395   AM_RANGE(0x07, 0x07) AM_READ(abcbus_reset_r)
395396   AM_RANGE(0x20, 0x23) AM_READWRITE(dart_r, dart_w)
396   AM_RANGE(0x31, 0x31) AM_DEVREAD(MC6845, "crtc", mc6845_register_r)
397   AM_RANGE(0x31, 0x31) AM_DEVREAD(MC6845, MC6845_TAG, mc6845_register_r)
397398   AM_RANGE(0x32, 0x35) AM_READWRITE(sio2_r, sio2_w)
398   AM_RANGE(0x38, 0x38) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w)
399   AM_RANGE(0x39, 0x39) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w)
399   AM_RANGE(0x38, 0x38) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_address_w)
400   AM_RANGE(0x39, 0x39) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_register_w)
400401   AM_RANGE(0x60, 0x63) AM_READWRITE(z80ctc_0_r, z80ctc_0_w)
401402   AM_RANGE(0x80, 0xff) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w)
402403ADDRESS_MAP_END
r2405r2406
435436   AM_RANGE(0x06, 0x06) AM_MIRROR(0xff18) AM_WRITE(abc806_hrs_w)
436437   AM_RANGE(0x07, 0x07) AM_MIRROR(0xff18) AM_READWRITE(abcbus_reset_r, abc806_hrc_w)
437438   AM_RANGE(0x20, 0x23) AM_MIRROR(0xff0c) AM_READWRITE(dart_r, dart_w)
438   AM_RANGE(0x31, 0x31) AM_MIRROR(0xff06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r)
439   AM_RANGE(0x31, 0x31) AM_MIRROR(0xff06) AM_DEVREAD(MC6845, MC6845_TAG, mc6845_register_r)
439440   AM_RANGE(0x34, 0x34) AM_MIRROR(0xff00) AM_MASK(0xff00) AM_READWRITE(abc806_bankswitch_r, abc806_bankswitch_w)
440441   AM_RANGE(0x35, 0x35) AM_MIRROR(0xff00) AM_READWRITE(abc806_colorram_r, abc806_colorram_w)
441442   AM_RANGE(0x36, 0x36) AM_MIRROR(0xff00) AM_WRITE(abc806_fgctlprom_w)
442443   AM_RANGE(0x37, 0x37) AM_MIRROR(0xff00) AM_READWRITE(abc806_fgctlprom_r, abc806_sync_w)
443   AM_RANGE(0x38, 0x38) AM_MIRROR(0xff06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w)
444   AM_RANGE(0x39, 0x39) AM_MIRROR(0xff06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w)
444   AM_RANGE(0x38, 0x38) AM_MIRROR(0xff06) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_address_w)
445   AM_RANGE(0x39, 0x39) AM_MIRROR(0xff06) AM_DEVWRITE(MC6845, MC6845_TAG, mc6845_register_w)
445446   AM_RANGE(0x40, 0x41) AM_MIRROR(0xff1c) AM_READWRITE(sio2_r, sio2_w)
446447   AM_RANGE(0x60, 0x63) AM_MIRROR(0xff1c) AM_READWRITE(z80ctc_0_r, z80ctc_0_w)
447448   AM_RANGE(0x80, 0x80) AM_MIRROR(0xff7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w)
r2405r2406
730731   memory_set_bank(1, 0);
731732}
732733
734static const e0516_interface abc806_e0516_intf =
735{
736   ABC806_X02
737};
738
733739static MACHINE_START( abc806 )
734740{
735741   int bank;
r2405r2406
797803   MDRV_MACHINE_START(abc800)
798804
799805   MDRV_IMPORT_FROM(abc800m_video)
806
800807   MDRV_DEVICE_ADD("printer", PRINTER)
801808MACHINE_DRIVER_END
802809
r2405r2406
815822   MDRV_MACHINE_START(abc800)
816823
817824   MDRV_IMPORT_FROM(abc800c_video)
825
818826   MDRV_DEVICE_ADD("printer", PRINTER)
819827MACHINE_DRIVER_END
820828
r2405r2406
834842   MDRV_MACHINE_RESET(abc802)
835843
836844   MDRV_IMPORT_FROM(abc802_video)
845
837846   MDRV_DEVICE_ADD("printer", PRINTER)
838847MACHINE_DRIVER_END
839848
r2405r2406
853862   MDRV_MACHINE_RESET(abc806)
854863
855864   MDRV_IMPORT_FROM(abc806_video)
865
856866   MDRV_DEVICE_ADD("printer", PRINTER)
867
868   MDRV_DEVICE_ADD(E0516_TAG, E0516)
869   MDRV_DEVICE_CONFIG(abc806_e0516_intf)
857870MACHINE_DRIVER_END
858871
859872/* ROMs */
r2405r2406
879892
880893#define ROM_ABC99 \
881894   ROM_REGION( 0x1000, REGION_CPU2, 0 ) \
882   ROM_LOAD( "abc99.bin", 0x0000, 0x0800, CRC(d48310fc) SHA1(17A2FFC0EC00D395C2B9CAF3D57FED575BA2B137) )
895   ROM_LOAD( "abc99.bin", 0x0000, 0x0800, CRC(d48310fc) SHA1(17a2ffc0ec00d395c2b9caf3d57fed575ba2b137) )
883896
897#define ROM_ABC99_2 \
898   ROM_REGION( 0x1800, REGION_CPU2, 0 ) \
899   ROM_LOAD( "10681909", 0x0000, 0x1000, CRC(ffe32a71) SHA1(fa2ce8e0216a433f9bbad0bdd6e3dc0b540f03b7) ) \
900   ROM_LOAD( "10726864", 0x1000, 0x0800, CRC(e33683ae) SHA1(0c1d9e320f82df05f4804992ef6f6f6cd20623f3) )
901
884902#define ROM_KEYBOARD ROM_ABC77
885903
886904ROM_START( abc800c )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team