Previous 15994 Revisions Next

r3511 Friday 31st October, 2008 at 13:45:43 UTC by Curt Coder
[ABC80X] Moved floppy controller to own device.
[src/mess]mess.mak
[src/mess/drivers]abc80x.c
[src/mess/machine]conkort.c* conkort.h*

src/mess/machine/conkort.c
r0r3511
1#include "driver.h"
2#include "conkort.h"
3 
4typedef struct _conkort_t conkort_t;
5struct _conkort_t
6{
7   int cpunum;                  /* CPU index of the  */
8};
9 
10INLINE conkort_t *get_safe_token(const device_config *device)
11{
12   assert(device != NULL);
13   assert(device->token != NULL);
14 
15   return (conkort_t *)device->token;
16}
17 
18READ8_HANDLER( conkort_abcbus_data_r )
19{
20   return 0;
21}
22 
23WRITE8_HANDLER( conkort_abcbus_data_w )
24{
25}
26 
27READ8_HANDLER( conkort_abcbus_status_r )
28{
29   return 0;
30}
31 
32WRITE8_HANDLER( conkort_abcbus_channel_w )
33{
34}
35 
36WRITE8_HANDLER( conkort_abcbus_command_w )
37{
38}
39 
40READ8_HANDLER( conkort_abcbus_reset_r )
41{
42   return 0;
43}
44 
45/* Memory Maps */
46 
47static ADDRESS_MAP_START( conkort_map, ADDRESS_SPACE_PROGRAM, 8 )
48   AM_RANGE(0x0000, 0x1fff) AM_ROM
49   AM_RANGE(0x2000, 0x3fff) AM_RAM
50ADDRESS_MAP_END
51 
52static ADDRESS_MAP_START( conkort_io_map, ADDRESS_SPACE_IO, 8 )
53   ADDRESS_MAP_GLOBAL_MASK(0xff)
54ADDRESS_MAP_END
55 
56/* Input Ports */
57 
58INPUT_PORTS_START( conkort )
59   PORT_START("SW1")
60   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
61   PORT_DIPNAME( 0x05, 0x00, "Drive 0" ) PORT_DIPLOCATION("SW1:1,3") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
62   PORT_DIPSETTING(    0x00, "SS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
63   PORT_DIPSETTING(    0x04, "SS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
64   PORT_DIPSETTING(    0x01, "DS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
65   PORT_DIPSETTING(    0x05, "DS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
66   PORT_DIPNAME( 0x0a, 0x00, "Drive 1" ) PORT_DIPLOCATION("SW1:2,4") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
67   PORT_DIPSETTING(    0x00, "SS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
68   PORT_DIPSETTING(    0x08, "SS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
69   PORT_DIPSETTING(    0x02, "DS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
70   PORT_DIPSETTING(    0x0a, "DS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
71   PORT_DIPNAME( 0x05, 0x01, "Drive 0" ) PORT_DIPLOCATION("SW1:1,3") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
72   PORT_DIPSETTING(    0x00, "SS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
73   PORT_DIPSETTING(    0x04, "SS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
74   PORT_DIPSETTING(    0x01, "DS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
75   PORT_DIPSETTING(    0x05, "DS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
76   PORT_DIPNAME( 0x0a, 0x02, "Drive 1" ) PORT_DIPLOCATION("SW1:2,4") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
77   PORT_DIPSETTING(    0x00, "SS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
78   PORT_DIPSETTING(    0x08, "SS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
79   PORT_DIPSETTING(    0x02, "DS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
80   PORT_DIPSETTING(    0x0a, "DS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
81 
82   PORT_START("SW2")
83   PORT_DIPNAME( 0x0f, 0x08, "Disk Drive" ) PORT_DIPLOCATION("SW2:1,2,3,4")
84   PORT_DIPSETTING(    0x08, "BASF 6106/08 (ABC 830, 190 9206-16)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
85   PORT_DIPSETTING(    0x09, "MPI 51 (ABC 830, 190 9206-16)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
86   PORT_DIPSETTING(    0x04, "BASF 6118 (ABC 832, 190 9711-16)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
87   PORT_DIPSETTING(    0x03, "Micropolis 1015F (ABC 832, 190 9711-15)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
88   PORT_DIPSETTING(    0x05, "Micropolis 1115F (ABC 832, 190 9711-17)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
89   PORT_DIPSETTING(    0x01, "TEAC FD55F (ABC 834, 230 7802-01)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
90   PORT_DIPSETTING(    0x02, "BASF 6138 (ABC 850, 230 8440-15)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
91   PORT_DIPSETTING(    0x0e, "BASF 6105" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
92   PORT_DIPSETTING(    0x0f, "BASF 6106 (ABC 838, 230 8838-15)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
93 
94   PORT_START("SW3")
95   PORT_DIPNAME( 0x7f, 0x2d, "Disk Drive" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7")
96   PORT_DIPSETTING(    0x2c, "ABC 832/834/850" )
97   PORT_DIPSETTING(    0x2d, "ABC 830" )
98   PORT_DIPSETTING(    0x2e, "ABC 838" )
99INPUT_PORTS_END
100 
101/* Machine Driver */
102 
103MACHINE_DRIVER_START( conkort )
104   MDRV_CPU_ADD("main", Z80, 4000000)
105   MDRV_CPU_PROGRAM_MAP(conkort_map, 0)
106   MDRV_CPU_IO_MAP(conkort_io_map, 0)
107MACHINE_DRIVER_END
108 
109/* ROMs */
110 
111ROM_START( conkort )
112   ROM_REGION( 0x10000, "main", 0 )
113   ROM_LOAD( "64 90318-07.bin", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
114   ROM_LOAD( "fast108.bin",    0x0000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
115   ROM_LOAD( "fast207.bin",    0x0000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
116ROM_END
117 
118/* Device Interface */
119 
120static DEVICE_START( conkort )
121{
122   conkort_t *conkort = device->token;
123   char unique_tag[30];
124   astring *tempstring = astring_alloc();
125 
126   /* validate arguments */
127 
128   assert(device->machine != NULL);
129   assert(device->tag != NULL);
130   assert(strlen(device->tag) < 20);
131 
132   /* find our CPU */
133 
134   astring_printf(tempstring, "%s:%s", device->tag, I8035_TAG);
135   conkort->cpunum = mame_find_cpu_index(device->machine, astring_c(tempstring));
136   astring_free(tempstring);
137 
138   /* register for state saving */
139 
140   state_save_combine_module_and_tag(unique_tag, "conkort", device->tag);
141 
142   return DEVICE_START_OK;
143}
144 
145static DEVICE_SET_INFO( conkort )
146{
147   switch (state)
148   {
149      /* no parameters to set */
150   }
151}
152 
153DEVICE_GET_INFO( conkort )
154{
155   switch (state)
156   {
157      /* --- the following bits of info are returned as 64-bit signed integers --- */
158      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = 0;                        break;
159      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL;         break;
160      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(conkort_t);            break;
161 
162      /* --- the following bits of info are returned as pointers --- */
163      case DEVINFO_PTR_ROM_REGION:               info->romregion = rom_conkort;            break;
164      case DEVINFO_PTR_MACHINE_CONFIG:            info->machine_config = machine_config_conkort; break;
165 
166      /* --- the following bits of info are returned as pointers to data or functions --- */
167      case DEVINFO_FCT_SET_INFO:                  info->set_info = DEVICE_SET_INFO_NAME(conkort); break;
168      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(conkort);   break;
169      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
170      case DEVINFO_FCT_RESET:                     /* Nothing */                        break;
171 
172      /* --- the following bits of info are returned as NULL-terminated strings --- */
173      case DEVINFO_STR_NAME:                     info->s = "Luxor Conkort 55-21046";         break;
174      case DEVINFO_STR_FAMILY:                  info->s = "Luxor ABC";                  break;
175      case DEVINFO_STR_VERSION:                  info->s = "1.0";                     break;
176      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__;                     break;
177      case DEVINFO_STR_CREDITS:                  info->s = "Copyright the MESS Team";       break;
178   }
179}
src/mess/machine/conkort.h
r0r3511
1#ifndef __CONKORT__
2#define __CONKORT__
3 
4#include "driver.h"
5 
6#define CONKORT_TAG   "55-21046"
7 
8#define LUXOR_CONKORT DEVICE_GET_INFO_NAME( conkort )
9 
10/* device interface */
11DEVICE_GET_INFO( conkort );
12 
13/* configuration dips */
14INPUT_PORTS_EXTERN( conkort );
15 
16/* ABCBUS interface */
17READ8_HANDLER( conkort_abcbus_data_r );
18WRITE8_HANDLER( conkort_abcbus_data_w );
19READ8_HANDLER( conkort_abcbus_status_r );
20WRITE8_HANDLER( conkort_abcbus_channel_w );
21WRITE8_HANDLER( conkort_abcbus_command_w );
22READ8_HANDLER( conkort_abcbus_reset_r );
23 
24#endif
src/mess/mess.mak
r3510r3511
11691169   $(MESS_MACHINE)/abc77.o   \
11701170   $(MESS_MACHINE)/abc99.o   \
11711171   $(MESS_MACHINE)/e0516.o   \
1172   $(MESS_MACHINE)/conkort.o \
11721173
11731174$(MESSOBJ)/sgi.a:                  \
11741175   $(MESS_MACHINE)/sgi.o      \
src/mess/drivers/abc80x.c
r3510r3511
7676#include "machine/abcbus.h"
7777#include "machine/e0516.h"
7878#include "machine/abc77.h"
79#include "machine/conkort.h"
7980#include "video/mc6845.h"
8081#include "sound/discrete.h"
8182
r3510r3511
714715   PORT_INCLUDE(abc800)
715716INPUT_PORTS_END
716717
717static INPUT_PORTS_START( luxor_55_21046 )
718   PORT_START("SW1")
719   PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
720   PORT_DIPNAME( 0x05, 0x00, "Drive 0" ) PORT_DIPLOCATION("SW1:1,3") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
721   PORT_DIPSETTING(    0x00, "SS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
722   PORT_DIPSETTING(    0x04, "SS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
723   PORT_DIPSETTING(    0x01, "DS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
724   PORT_DIPSETTING(    0x05, "DS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
725   PORT_DIPNAME( 0x0a, 0x00, "Drive 1" ) PORT_DIPLOCATION("SW1:2,4") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
726   PORT_DIPSETTING(    0x00, "SS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
727   PORT_DIPSETTING(    0x08, "SS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
728   PORT_DIPSETTING(    0x02, "DS SD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
729   PORT_DIPSETTING(    0x0a, "DS DD" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
730   PORT_DIPNAME( 0x05, 0x01, "Drive 0" ) PORT_DIPLOCATION("SW1:1,3") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
731   PORT_DIPSETTING(    0x00, "SS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
732   PORT_DIPSETTING(    0x04, "SS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
733   PORT_DIPSETTING(    0x01, "DS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
734   PORT_DIPSETTING(    0x05, "DS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
735   PORT_DIPNAME( 0x0a, 0x02, "Drive 1" ) PORT_DIPLOCATION("SW1:2,4") PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
736   PORT_DIPSETTING(    0x00, "SS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
737   PORT_DIPSETTING(    0x08, "SS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
738   PORT_DIPSETTING(    0x02, "DS DD 80" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
739   PORT_DIPSETTING(    0x0a, "DS DD 40" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
740
741   PORT_START("SW2")
742   PORT_DIPNAME( 0x0f, 0x08, "Disk Drive" ) PORT_DIPLOCATION("SW2:1,2,3,4")
743   PORT_DIPSETTING(    0x08, "BASF 6106/08 (ABC 830, 190 9206-16)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
744   PORT_DIPSETTING(    0x09, "MPI 51 (ABC 830, 190 9206-16)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2d)
745   PORT_DIPSETTING(    0x04, "BASF 6118 (ABC 832, 190 9711-16)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
746   PORT_DIPSETTING(    0x03, "Micropolis 1015F (ABC 832, 190 9711-15)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
747   PORT_DIPSETTING(    0x05, "Micropolis 1115F (ABC 832, 190 9711-17)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
748   PORT_DIPSETTING(    0x01, "TEAC FD55F (ABC 834, 230 7802-01)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
749   PORT_DIPSETTING(    0x02, "BASF 6138 (ABC 850, 230 8440-15)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2c)
750   PORT_DIPSETTING(    0x0e, "BASF 6105" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
751   PORT_DIPSETTING(    0x0f, "BASF 6106 (ABC 838, 230 8838-15)" ) PORT_CONDITION("SW3", 0x7f, PORTCOND_EQUALS, 0x2e)
752
753   PORT_START("SW3")
754   PORT_DIPNAME( 0x7f, 0x2d, "Disk Drive" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7")
755   PORT_DIPSETTING(    0x2c, "ABC 832/834/850" )
756   PORT_DIPSETTING(    0x2d, "ABC 830" )
757   PORT_DIPSETTING(    0x2e, "ABC 838" )
758INPUT_PORTS_END
759
760718/* ABC 77 */
761719
762720static ABC77_ON_TXD_CHANGED( abc800_abc77_txd_changed )
r3510r3511
12881246   /* ABC-77 keyboard */
12891247//   MDRV_ABC77_ADD(abc800_abc77_intf)
12901248
1249   /* Luxor Conkort 55-21046 */
1250   MDRV_DEVICE_ADD("conkort", LUXOR_CONKORT)
1251
12911252   /* video hardware */
12921253   MDRV_IMPORT_FROM(abc800m_video)
12931254   
r3510r3511
15671528   ROM_LOAD( "64 90240-01.2d", 0x0000, 0x0400, NO_DUMP ) // "ABC P4-11" PAL16L8, memory mapper
15681529ROM_END
15691530
1570ROM_START( luxor_55_21046 )
1571   /* Luxor Fast Controller */
1572
1573   ROM_REGION( 0x6000, "fast", 0 )
1574   ROM_LOAD( "64 90318-07.bin", 0x0000, 0x2000, CRC(06ae1fe8) SHA1(ad1d9d0c192539af70cb95223263915a09693ef8) ) // PROM v1.07, Art N/O 6490318-07. Luxor Styrkort Art. N/O 55 21046-41. Date 1985-07-03
1575   ROM_LOAD( "fast108.bin",    0x2000, 0x2000, CRC(229764cb) SHA1(a2e2f6f49c31b827efc62f894de9a770b65d109d) ) // Luxor v1.08
1576   ROM_LOAD( "fast207.bin",    0x4000, 0x2000, CRC(86622f52) SHA1(61ad271de53152c1640c0b364fce46d1b0b4c7e2) ) // DIAB v2.07
1577   
1531ROM_START( floppy_roms )
15781532   /* MyAB Turbo-Kontroller */
15791533
15801534   ROM_REGION( 0x3000, "myab", 0 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team