Previous 15994 Revisions Next

r14865 Saturday 7th April, 2012 at 15:36:59 UTC by R. Belmont
apple3: fix missing a2bus device (nw)
[src/mess/drivers]apple3.c

src/mess/drivers/apple3.c
r14864r14865
1818#include "formats/ap2_dsk.h"
1919#include "machine/6551acia.h"
2020#include "machine/6522via.h"
21#include "machine/a2bus.h"
2122#include "machine/ram.h"
2223#include "devices/appldriv.h"
2324
r14864r14865
4142   DEVCB_NULL            /* port_write_func */
4243};
4344
44#ifdef UNUSED_FUNCTION
45static void apple3_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
46{
47    switch(state)
48    {
49        case MESS_DEVINFO_INT_COUNT:                            info->i = 4; break;
50
51        case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVIDEND:  info->i = 1; break;
52        case MESS_DEVINFO_INT_APPLE525_SPINFRACT_DIVISOR:   info->i = 4; break;
53
54        case MESS_DEVINFO_STR_NAME+0:                       strcpy(info->s = device_temp_str(), "slot6disk1"); break;
55        case MESS_DEVINFO_STR_NAME+1:                       strcpy(info->s = device_temp_str(), "slot6disk2"); break;
56        case MESS_DEVINFO_STR_SHORT_NAME+0:                 strcpy(info->s = device_temp_str(), "s6d1"); break;
57        case MESS_DEVINFO_STR_SHORT_NAME+1:                 strcpy(info->s = device_temp_str(), "s6d2"); break;
58        case MESS_DEVINFO_STR_DESCRIPTION+0:                    strcpy(info->s = device_temp_str(), "Slot 6 Disk #1"); break;
59        case MESS_DEVINFO_STR_DESCRIPTION+1:                    strcpy(info->s = device_temp_str(), "Slot 6 Disk #2"); break;
60
61        default:                                        apple525_device_getinfo(devclass, state, info); break;
62    }
63}
64#endif
65
6645static const floppy_interface apple3_floppy_interface =
6746{
6847   DEVCB_NULL,
r14864r14865
7655   NULL
7756};
7857
58static const struct a2bus_interface a2bus_intf =
59{
60   // interrupt lines
61//   DEVCB_HANDLER(a2bus_irq_w),
62//   DEVCB_HANDLER(a2bus_nmi_w)
63    DEVCB_NULL,
64    DEVCB_NULL
65};
66
7967static MACHINE_CONFIG_START( apple3, apple3_state )
8068   /* basic machine hardware */
8169   MCFG_CPU_ADD("maincpu", M6502, 2000000)        /* 2 MHz */
r14864r14865
9987
10088   MCFG_VIDEO_START( apple3 )
10189
90    /* slot bus */
91    MCFG_A2BUS_BUS_ADD("a2bus", "maincpu", a2bus_intf)
92
10293   /* fdc */
10394   MCFG_APPLEFDC_ADD("fdc", apple3_fdc_interface)
10495   MCFG_LEGACY_FLOPPY_APPLE_4_DRIVES_ADD(apple3_floppy_interface,1,4)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team