Previous 15994 Revisions Next

r3535 Monday 10th November, 2008 at 22:15:29 UTC by Curt Coder
[ABC80X] Added simple daisy chain ABC BUS configuration.
[src/mess/drivers]abc80.c abc80x.c
[src/mess/machine]abcbus.c abcbus.h conkort.c

src/mess/machine/conkort.c
r3534r3535
6969 
7070   TODO:
7171 
72   - install read/write handlers for ABCBUS
72   - "memory_set_bank called for bank 1 with invalid bank entry 0"
7373   - floppy drive selection
7474   - floppy side selection
7575   - DS/DD SS/DS jumpers
7676   - S1-S5 jumpers
77   - read C5 from DS8131 (card address)
7877   - protection device @ 8B
7978   - Z80 wait logic
8079   - everything for fast controller
r3534r3535
8887#include "cpu/z80/z80.h"
8988#include "cpu/z80/z80daisy.h"
9089#include "machine/wd17xx.h"
90#include "machine/abcbus.h"
9191 
9292typedef struct _conkort_t conkort_t;
9393struct _conkort_t
r3534r3535
110110 
111111/* Slow Controller */
112112 
113READ8_HANDLER( luxor_55_10828_data_r )
113static READ8_HANDLER( slow_bus_data_r )
114114{
115115   const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
116116   const device_config *z80pio = devtag_get_device(machine, Z80PIO, CONKORT_Z80PIO_TAG);
r3534r3535
131131   return data;
132132}
133133 
134WRITE8_HANDLER( luxor_55_10828_data_w )
134static WRITE8_HANDLER( slow_bus_data_w )
135135{
136136   const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
137137   const device_config *z80pio = devtag_get_device(machine, Z80PIO, CONKORT_Z80PIO_TAG);
r3534r3535
148148   z80pio_astb_w(z80pio, 1);
149149}
150150 
151READ8_HANDLER( luxor_55_10828_status_r )
151static READ8_HANDLER( slow_bus_stat_r )
152152{
153153   const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
154154   conkort_t *conkort = get_safe_token(device);
r3534r3535
156156   return (conkort->pio_ardy << 7) | conkort->status;
157157}
158158 
159WRITE8_HANDLER( luxor_55_10828_channel_w )
159static WRITE8_HANDLER( slow_bus_c1_w )
160160{
161   cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE);
161162}
162163 
163WRITE8_HANDLER( luxor_55_10828_command_w )
164static WRITE8_HANDLER( slow_bus_c3_w )
164165{
166   cpunum_set_input_line(machine, 0, INPUT_LINE_RESET, PULSE_LINE);
165167}
166168 
167READ8_HANDLER( luxor_55_10828_reset_r )
169static void slow_card_select(const device_config *device, UINT8 data)
168170{
169   // reset Z80 and slow_ctrl lach
171   if (data == 0x2d) // TODO: bit 0 of this is configurable with S1
172   {
173      memory_install_readwrite8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_INP, ABCBUS_OUT, 0x18, 0, slow_bus_data_r, slow_bus_data_w);
174      memory_install_read8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_STAT, ABCBUS_STAT, 0x18, 0, slow_bus_stat_r);
175      memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C1, ABCBUS_C1, 0x18, 0, slow_bus_c1_w);
176      memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C2, ABCBUS_C2, 0x18, 0, SMH_NOP);
177      memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C3, ABCBUS_C3, 0x18, 0, slow_bus_c3_w);
178      memory_install_write8_handler(device->machine, 0, ADDRESS_SPACE_IO, ABCBUS_C4, ABCBUS_C4, 0x18, 0, SMH_NOP);
179   }
170180 
171   return 0xff;
181   cpunum_set_input_line(device->machine, 0, INPUT_LINE_RESET, PULSE_LINE);
172182}
173183 
174184READ8_HANDLER( slow_ctrl_r )
r3534r3535
207217 
208218/* Fast Controller */
209219 
210 
211READ8_HANDLER( luxor_55_21046_data_r )
220static void fast_card_select(const device_config *device, UINT8 data)
212221{
213   return 0;
214222}
215223 
216WRITE8_HANDLER( luxor_55_21046_data_w )
217{
218}
219 
220READ8_HANDLER( luxor_55_21046_status_r )
221{
222   return 0;
223}
224 
225WRITE8_HANDLER( luxor_55_21046_channel_w )
226{
227}
228 
229WRITE8_HANDLER( luxor_55_21046_command_w )
230{
231}
232 
233READ8_HANDLER( luxor_55_21046_reset_r )
234{
235   return 0;
236}
237 
238224/* Memory Maps */
239225 
240226// Slow Controller
241227 
242static ADDRESS_MAP_START( luxor_55_10828_map, ADDRESS_SPACE_PROGRAM, 8 )
228static ADDRESS_MAP_START( slow_map, ADDRESS_SPACE_PROGRAM, 8 )
243229   AM_RANGE(0x0000, 0x0fff) AM_ROM
244230   AM_RANGE(0x1000, 0x13ff) AM_RAM
245231ADDRESS_MAP_END
246232 
247static ADDRESS_MAP_START( luxor_55_10828_io_map, ADDRESS_SPACE_IO, 8 )
233static ADDRESS_MAP_START( slow_io_map, ADDRESS_SPACE_IO, 8 )
248234   ADDRESS_MAP_GLOBAL_MASK(0xff)
249235   AM_RANGE(0x10, 0x10) AM_WRITE(slow_status_w)
250236   AM_RANGE(0x20, 0x20) AM_READWRITE(slow_ctrl_r, slow_ctrl_w)
r3534r3535
254240 
255241// Fast Controller
256242 
257static ADDRESS_MAP_START( luxor_55_21046_map, ADDRESS_SPACE_PROGRAM, 8 )
243static ADDRESS_MAP_START( fast_map, ADDRESS_SPACE_PROGRAM, 8 )
258244   AM_RANGE(0x0000, 0x1fff) AM_ROM
259245   AM_RANGE(0x2000, 0x3fff) AM_RAM
260246ADDRESS_MAP_END
261247 
262static ADDRESS_MAP_START( luxor_55_21046_io_map, ADDRESS_SPACE_IO, 8 )
248static ADDRESS_MAP_START( fast_io_map, ADDRESS_SPACE_IO, 8 )
263249   ADDRESS_MAP_GLOBAL_MASK(0xff)
264250ADDRESS_MAP_END
265251 
r3534r3535
409395   NULL                  /* portB ready active callback */
410396};
411397 
412static const z80_daisy_chain luxor_55_10828_daisy_chain[] =
398static const z80_daisy_chain slow_daisy_chain[] =
413399{
414400   { Z80PIO, CONKORT_Z80PIO_TAG },
415401   { NULL }
r3534r3535
457443   0
458444};
459445 
460static const z80_daisy_chain luxor_55_21046_daisy_chain[] =
446static const z80_daisy_chain fast_daisy_chain[] =
461447{
462448   { Z80DMA, CONKORT_Z80DMA_TAG },
463449   { NULL }
r3534r3535
465451 
466452/* FD1791 */
467453 
468static void wd1791_callback(running_machine *machine, wd17xx_state_t state, void *param)
454static void slow_wd1791_callback(running_machine *machine, wd17xx_state_t state, void *param)
469455{
470456   const device_config *device = devtag_get_device(machine, LUXOR_55_10828, CONKORT_TAG);
471457   conkort_t *conkort = get_safe_token(device);
r3534r3535
487473 
488474/* FD1793 */
489475 
490static void wd1793_callback(running_machine *machine, wd17xx_state_t state, void *param)
476static void fast_wd1793_callback(running_machine *machine, wd17xx_state_t state, void *param)
491477{
492478   switch(state)
493479   {
r3534r3535
504490 
505491/* Machine Start */
506492 
507static MACHINE_START( luxor_55_10828 )
493static MACHINE_START( slow )
508494{
509   wd17xx_init(machine, WD_TYPE_179X, wd1791_callback, NULL); // FD1791-01
495   wd17xx_init(machine, WD_TYPE_179X, slow_wd1791_callback, NULL); // FD1791-01
510496}
511497 
512static MACHINE_START( luxor_55_21046 )
498static MACHINE_START( fast )
513499{
514   wd17xx_init(machine, WD_TYPE_1793, wd1793_callback, NULL); // FD1793-01
500   wd17xx_init(machine, WD_TYPE_1793, fast_wd1793_callback, NULL); // FD1793-01
515501}
516502 
517503/* Machine Driver */
518504 
519MACHINE_DRIVER_START( luxor_55_10828 )
505static MACHINE_DRIVER_START( luxor_55_10828 )
520506   MDRV_CPU_ADD(CONKORT_Z80_TAG, Z80, XTAL_4MHz/2)
521   MDRV_CPU_PROGRAM_MAP(luxor_55_10828_map, 0)
522   MDRV_CPU_IO_MAP(luxor_55_10828_io_map, 0)
523   MDRV_CPU_CONFIG(luxor_55_10828_daisy_chain)
507   MDRV_CPU_PROGRAM_MAP(slow_map, 0)
508   MDRV_CPU_IO_MAP(slow_io_map, 0)
509   MDRV_CPU_CONFIG(slow_daisy_chain)
524510 
525511   MDRV_Z80PIO_ADD(CONKORT_Z80PIO_TAG, pio_intf)
526512   
527   MDRV_MACHINE_START(luxor_55_10828)
513   MDRV_MACHINE_START(slow)
528514MACHINE_DRIVER_END
529515 
530MACHINE_DRIVER_START( luxor_55_21046 )
516static MACHINE_DRIVER_START( luxor_55_21046 )
531517   MDRV_CPU_ADD(CONKORT_Z80_TAG, Z80, XTAL_16MHz/4)
532   MDRV_CPU_PROGRAM_MAP(luxor_55_21046_map, 0)
533   MDRV_CPU_IO_MAP(luxor_55_21046_io_map, 0)
534   MDRV_CPU_CONFIG(luxor_55_21046_daisy_chain)
518   MDRV_CPU_PROGRAM_MAP(fast_map, 0)
519   MDRV_CPU_IO_MAP(fast_io_map, 0)
520   MDRV_CPU_CONFIG(fast_daisy_chain)
535521 
536522   MDRV_DEVICE_ADD(CONKORT_Z80DMA_TAG, Z80DMA)
537523   MDRV_DEVICE_CONFIG(dma_intf)
538524   
539   MDRV_MACHINE_START(luxor_55_21046)
525   MDRV_MACHINE_START(fast)
540526MACHINE_DRIVER_END
541527 
542528/* ROMs */
r3534r3535
609595   }
610596}
611597 
598static DEVICE_RESET( luxor_55_10828 )
599{
600}
601 
612602DEVICE_GET_INFO( luxor_55_10828 )
613603{
614604   switch (state)
r3534r3535
626616      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(luxor_55_10828); break;
627617      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(luxor_55_10828);   break;
628618      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
629      case DEVINFO_FCT_RESET:                     /* Nothing */                        break;
619      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(luxor_55_10828); break;
620      case DEVINFO_FCT_CARD_SELECT:               info->f = (genf *)slow_card_select;         break;
630621 
631622      /* --- the following bits of info are returned as NULL-terminated strings --- */
632623      case DEVINFO_STR_NAME:                     info->s = "Luxor 55 10828";               break;
r3534r3535
670661   }
671662}
672663 
664static DEVICE_RESET( luxor_55_21046 )
665{
666}
667 
673668DEVICE_GET_INFO( luxor_55_21046 )
674669{
675670   switch (state)
r3534r3535
685680 
686681      /* --- the following bits of info are returned as pointers to data or functions --- */
687682      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(luxor_55_21046); break;
688      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(luxor_55_21046);   break;
683      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(luxor_55_21046); break;
689684      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
690      case DEVINFO_FCT_RESET:                     /* Nothing */                        break;
685      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(luxor_55_21046); break;
686      case DEVINFO_FCT_CARD_SELECT:               info->f = (genf *)fast_card_select;         break;
691687 
692688      /* --- the following bits of info are returned as NULL-terminated strings --- */
693689      case DEVINFO_STR_NAME:                     info->s = "Luxor Conkort 55 21046";         break;
src/mess/machine/abcbus.c
r3534r3535
22#include "abcbus.h"
33#include "devices/basicdsk.h"
44
5static int abcbus_strobe;
6static int abcbus_channel;
7
8READ8_HANDLER( abcbus_data_r )
5typedef struct _abcbus_daisy_state abcbus_daisy_state;
6struct _abcbus_daisy_state
97{
10   return 0xff;
11}
8   abcbus_daisy_state *      next;         /* next device */
9   const device_config *   device;         /* associated device */
10   abcbus_card_select      card_select;   /* card select callback */
11};
1212
13WRITE8_HANDLER( abcbus_data_w )
13static abcbus_daisy_state *daisy;
14
15void *abcbus_init(running_machine *machine, const char *cputag, const abcbus_daisy_chain *daisy)
1416{
15}
17   astring *tempstring = astring_alloc();
18   abcbus_daisy_state *head = NULL;
19   abcbus_daisy_state **tailptr = &head;
1620
17READ8_HANDLER( abcbus_status_r )
18{
19   return 0xff;
21   /* create a linked list of devices */
22   for ( ; daisy->devtype != NULL; daisy++)
23   {
24      *tailptr = auto_malloc(sizeof(**tailptr));
25      (*tailptr)->next = NULL;
26      (*tailptr)->device = devtag_get_device(machine, daisy->devtype, device_inherit_tag(tempstring, cputag, daisy->devname));
27      if ((*tailptr)->device == NULL)
28         fatalerror("Unable to locate device '%s'", daisy->devname);
29      (*tailptr)->card_select = (abcbus_card_select)device_get_info_fct((*tailptr)->device, DEVINFO_FCT_CARD_SELECT);
30      tailptr = &(*tailptr)->next;
31   }
32
33   astring_free(tempstring);
34   return head;
2035}
2136
2237WRITE8_HANDLER( abcbus_channel_w )
2338{
24   abcbus_channel = data;
39   /* loop over all devices and call their card select function */
40   for ( ; daisy != NULL; daisy = daisy->next)
41      (*daisy->card_select)(daisy->device, data);
2542}
2643
27WRITE8_HANDLER( abcbus_command_w )
28{
29}
30
3144READ8_HANDLER( abcbus_reset_r )
3245{
33   abcbus_strobe = CLEAR_LINE;
46   /* loop over all devices and call their reset function */
47   for ( ; daisy != NULL; daisy = daisy->next)
48      device_reset(daisy->device);
3449
3550   return 0xff;
3651}
3752
38READ8_HANDLER( abcbus_strobe_r )
39{
40   abcbus_strobe = ASSERT_LINE;
41
42   return 0xff;
43}
44
45WRITE8_HANDLER( abcbus_strobe_w )
46{
47   abcbus_strobe = ASSERT_LINE;
48}
49
5053DEVICE_IMAGE_LOAD( abc_floppy )
5154{
5255   int size, tracks, heads, sectors;
src/mess/machine/abcbus.h
r3534r3535
3838
3939/*
4040
41   OUT 0   _OUT   data output
42   OUT 1   _CS      card select
43   OUT 2   _C1      command 1
44   OUT 3   _C2      command 2
45   OUT 4   _C3      command 3
46   OUT 5   _C4      command 4
47
48   IN 0   _INP   data input
49   IN 1   _STAT   status in
50   IN 7   RST      reset
51
52*/
53
54/*
55
4156   Type               Size      Tracks   Sides   Sectors/track   Sectors      Speed         Drives
4257
4358   ABC-830      Floppy      160 KB      40      1      16            640         250 Kbps      MPI 51, BASF 6106
r3534r3535
5671
5772*/
5873
74#ifndef __ABCBUS__
75#define __ABCBUS__
76
5977enum
6078{
79   DEVINFO_FCT_CARD_SELECT = DEVINFO_FCT_DEVICE_SPECIFIC,   /* R/O: abcbus_daisy_cs */
80};
81
82enum
83{
6184   ABCBUS_CHANNEL_ABC850_852_856 = 36,
6285   ABCBUS_CHANNEL_ABC832_834_850 = 44,
6386   ABCBUS_CHANNEL_ABC830 = 45,
6487   ABCBUS_CHANNEL_ABC838 = 46
6588};
6689
67READ8_HANDLER( abcbus_data_r );
68WRITE8_HANDLER( abcbus_data_w );
69READ8_HANDLER( abcbus_status_r );
90enum
91{
92   ABCBUS_OUT = 0,
93   ABCBUS_INP = 0,
94   ABCBUS_CS = 1,
95   ABCBUS_STAT = 1,
96   ABCBUS_C1,
97   ABCBUS_C2,
98   ABCBUS_C3,
99   ABCBUS_C4,
100   ABCBUS_RST = 7
101};
102
103/* per-device callback functions */
104typedef void (*abcbus_card_select)(const device_config *device, UINT8 data);
105
106/* opaque internal daisy chain state */
107
108/* daisy chain structure */
109typedef struct _abcbus_daisy_chain abcbus_daisy_chain;
110struct _abcbus_daisy_chain
111{
112   device_type      devtype;               /* type of device */
113   const char *   devname;               /* name of the device */
114};
115#define ABCBUS_CONFIG(name) const abcbus_daisy_chain (name)[] =
116
117void *abcbus_init(running_machine *machine, const char *cputag, const abcbus_daisy_chain *daisy);
118
70119WRITE8_HANDLER( abcbus_channel_w );
71WRITE8_HANDLER( abcbus_command_w );
72120READ8_HANDLER( abcbus_reset_r );
73READ8_HANDLER( abcbus_strobe_r );
74WRITE8_HANDLER( abcbus_strobe_w );
121
75122DEVICE_IMAGE_LOAD( abc_floppy );
123
124#endif
src/mess/drivers/abc80.c
r3534r3535
8484#include "machine/z80pio.h"
8585#include "sound/sn76477.h"
8686#include "machine/abcbus.h"
87#include "machine/conkort.h"
8788
8889/* Devices */
8990#include "devices/basicdsk.h"
r3534r3535
231232static ADDRESS_MAP_START( abc80_io_map, ADDRESS_SPACE_IO, 8 )
232233   ADDRESS_MAP_UNMAP_HIGH
233234   ADDRESS_MAP_GLOBAL_MASK(0xff)
234   AM_RANGE(0x00, 0x00) AM_READWRITE(abcbus_data_r, abcbus_data_w)
235   AM_RANGE(0x01, 0x01) AM_READWRITE(abcbus_status_r, abcbus_channel_w)
236   AM_RANGE(0x02, 0x05) AM_WRITE(abcbus_command_w)
235   AM_RANGE(0x01, 0x01) AM_WRITE(abcbus_channel_w)
237236   AM_RANGE(0x06, 0x06) AM_WRITE(abc80_sound_w)
238237   AM_RANGE(0x07, 0x07) AM_READ(abcbus_reset_r)
239238   AM_RANGE(0x38, 0x3b) AM_DEVREADWRITE(Z80PIO, Z80PIO_TAG, z80pio_alt_r, z80pio_alt_w)
r3534r3535
352351   cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE);
353352}
354353
355/* Z80 PIO Interface */
354/* Z80 PIO */
356355
357356static TIMER_DEVICE_CALLBACK( z80pio_astb_tick )
358357{
r3534r3535
459458   { NULL }
460459};
461460
461/* ABC BUS */
462
463static ABCBUS_CONFIG( abcbus_config )
464{
465//   { luxor_55_10828, CONKORT_TAG },
466   { NULL }
467};
468
462469/* Machine Initialization */
463470
464471static MACHINE_START( abc80 )
r3534r3535
485492
486493   state->z80pio = devtag_get_device(machine, Z80PIO, Z80PIO_TAG);
487494
495   /* initialize the ABC BUS */
496
497   abcbus_init(machine, Z80_TAG, abcbus_config);
498
488499   /* register for state saving */
489500
490501   state_save_register_global(state->key_data);
r3534r3535
513524   MDRV_TIMER_ADD_SCANLINE("pio_astb", z80pio_astb_tick, SCREEN_TAG, 0, 1)
514525   MDRV_Z80PIO_ADD(Z80PIO_TAG, abc80_pio_intf)
515526
527   /* Luxor Conkort 55-10828 */
528//   MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_10828)
529
516530   /* video hardware */
517531   MDRV_IMPORT_FROM(abc80_video)
518532
src/mess/drivers/abc80x.c
r3534r3535
484484static ADDRESS_MAP_START( abc800m_io_map, ADDRESS_SPACE_IO, 8 )
485485   ADDRESS_MAP_UNMAP_HIGH
486486   ADDRESS_MAP_GLOBAL_MASK(0xff)
487   AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w)
488   AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w)
489   AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w)
487   AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_WRITE(abcbus_channel_w)
490488   AM_RANGE(0x05, 0x05) AM_MIRROR(0x18) AM_READ(abc800_pling_r)
491489   AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(abc800_hrs_w)
492490   AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800_hrc_w)
r3534r3535
512510static ADDRESS_MAP_START( abc800c_io_map, ADDRESS_SPACE_IO, 8 )
513511   ADDRESS_MAP_UNMAP_HIGH
514512   ADDRESS_MAP_GLOBAL_MASK(0xff)
515   AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w)
516   AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w)
517   AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w)
513   AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_WRITE(abcbus_channel_w)
518514   AM_RANGE(0x05, 0x05) AM_MIRROR(0x18) AM_READ(abc800_pling_r)
519515   AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(abc800_hrs_w)
520516   AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800_hrc_w)
r3534r3535
534530static ADDRESS_MAP_START( abc802_io_map, ADDRESS_SPACE_IO, 8 )
535531   ADDRESS_MAP_UNMAP_HIGH
536532   ADDRESS_MAP_GLOBAL_MASK(0xff)
537   AM_RANGE(0x00, 0x00) AM_MIRROR(0x08) AM_READWRITE(abcbus_data_r, abcbus_data_w)
538   AM_RANGE(0x01, 0x01) AM_MIRROR(0x08) AM_READWRITE(abcbus_status_r, abcbus_channel_w)
539   AM_RANGE(0x02, 0x05) AM_MIRROR(0x08) AM_WRITE(abcbus_command_w)
533   AM_RANGE(0x01, 0x01) AM_MIRROR(0x08) AM_WRITE(abcbus_channel_w)
540534   AM_RANGE(0x05, 0x05) AM_MIRROR(0x08) AM_READ(abc802_pling_r)
541535   AM_RANGE(0x07, 0x07) AM_MIRROR(0x08) AM_READ(abcbus_reset_r)
542536   AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_DEVREADWRITE(Z80DART, Z80DART_TAG, z80dart_alt_r, z80dart_alt_w)
r3534r3535
571565
572566static ADDRESS_MAP_START( abc806_io_map, ADDRESS_SPACE_IO, 8 )
573567   ADDRESS_MAP_UNMAP_HIGH
574   AM_RANGE(0x00, 0x00) AM_MIRROR(0xff18) AM_READWRITE(abcbus_data_r, abcbus_data_w)
575   AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_READWRITE(abcbus_status_r, abcbus_channel_w)
576   AM_RANGE(0x02, 0x05) AM_MIRROR(0xff18) AM_WRITE(abcbus_command_w)
568   AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_WRITE(abcbus_channel_w)
577569   AM_RANGE(0x06, 0x06) AM_MIRROR(0xff18) AM_WRITE(abc806_hrs_w)
578570   AM_RANGE(0x07, 0x07) AM_MIRROR(0xff18) AM_MASK(0xff00) AM_READWRITE(abcbus_reset_r, abc806_hrc_w)
579571   AM_RANGE(0x20, 0x23) AM_MIRROR(0xff0c) AM_DEVREADWRITE(Z80DART, Z80DART_TAG, z80dart_alt_r, z80dart_alt_w)
r3534r3535
10811073   { NULL }
10821074};
10831075
1076/* ABC BUS */
1077
1078static ABCBUS_CONFIG( abcbus_config )
1079{
1080//   { LUXOR_55_21046, CONKORT_TAG },
1081   { NULL }
1082};
1083
10841084/* Machine Initialization */
10851085
10861086static MACHINE_START( abc800 )
r3534r3535
10941094   state->z80sio = devtag_get_device(machine, Z80SIO, Z80SIO_TAG);
10951095   //state->abc77 = devtag_get_device(machine, ABC77, ABC77_TAG);
10961096
1097   /* initialize the ABC BUS */
1098
1099   abcbus_init(machine, Z80_TAG, abcbus_config);
1100
10971101   /* configure memory */
10981102
10991103   state->videoram = auto_malloc(ABC800_VIDEO_RAM_SIZE);
r3534r3535
11251129   state->z80sio = devtag_get_device(machine, Z80SIO, Z80SIO_TAG);
11261130//   state->abc77 = devtag_get_device(machine, ABC77, ABC77_TAG);
11271131
1132   /* initialize the ABC BUS */
1133
1134   abcbus_init(machine, Z80_TAG, abcbus_config);
1135
11281136   /* configure memory */
11291137
11301138   memory_configure_bank(1, 0, 1, mess_ram, 0);
r3534r3535
11751183   state->e0516 = devtag_get_device(machine, E0516, E0516_TAG);
11761184   //state->abc77 = devtag_get_device(machine, ABC77, ABC77_TAG);
11771185
1186   /* initialize the ABC BUS */
1187
1188   abcbus_init(machine, Z80_TAG, abcbus_config);
1189
11781190   /* setup memory banking */
11791191
11801192   state->videoram = auto_malloc(videoram_size);
r3534r3535
12471259//   MDRV_ABC77_ADD(abc800_abc77_intf)
12481260
12491261   /* Luxor Conkort 55-21046 */
1250   MDRV_DEVICE_ADD("conkort", LUXOR_CONKORT)
1262//   MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046)
12511263
12521264   /* video hardware */
12531265   MDRV_IMPORT_FROM(abc800m_video)
r3534r3535
12931305   /* ABC-77 keyboard */
12941306//   MDRV_ABC77_ADD(abc800_abc77_intf)
12951307
1308   /* Luxor Conkort 55-21046 */
1309//   MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046)
1310
12961311   /* video hardware */
12971312   MDRV_IMPORT_FROM(abc800c_video)
12981313
r3534r3535
13371352   /* ABC-77 keyboard */
13381353//   MDRV_ABC77_ADD(abc802_abc77_intf)
13391354
1355   /* Luxor Conkort 55-21046 */
1356//   MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046)
1357
13401358   /* video hardware */
13411359   MDRV_IMPORT_FROM(abc802_video)
13421360
r3534r3535
13811399   /* ABC-77 keyboard */
13821400   //MDRV_ABC77_ADD(abc806_abc77_intf)
13831401
1402   /* Luxor Conkort 55-21046 */
1403//   MDRV_DEVICE_ADD(CONKORT_TAG, LUXOR_55_21046)
1404
13841405   /* video hardware */
13851406   MDRV_IMPORT_FROM(abc806_video)
13861407

Previous 15994 Revisions Next


© 1998-2018 The MESS Team