Previous 15994 Revisions Next

r12007 Monday 20th June, 2011 at 16:51:52 UTC by Curt Coder
[MPZ80] Added DJ/DMA floppy controller board skeleton. (nw)
[src/mess]mess.mak
[src/mess/drivers]mpz80.c
[src/mess/includes]mpz80.h
[src/mess/machine]s100_djdma.c* s100_djdma.h*

src/mess/machine/s100_djdma.c
r0r12007
1/**********************************************************************
2
3    Morrow Designs Disk Jockey/DMA floppy controller board emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10#include "s100_djdma.h"
11
12
13
14//**************************************************************************
15//  MACROS/CONSTANTS
16//**************************************************************************
17
18#define Z80_TAG      "14a"
19
20
21
22//**************************************************************************
23//  DEVICE DEFINITIONS
24//**************************************************************************
25
26const device_type S100_DJDMA = &device_creator<s100_djdma_device>;
27
28
29//-------------------------------------------------
30//  ROM( djdma )
31//-------------------------------------------------
32
33ROM_START( djdma )
34   ROM_REGION( 0x1000, Z80_TAG, 0 )
35   ROM_LOAD( "djdma 2.5 26c2.16d", 0x0000, 0x1000, CRC(71ff1924) SHA1(6907575954836364826b8fdef3c108bb93bf3d25) )
36
37   ROM_REGION( 0x500, "proms", 0 )
38   ROM_LOAD( "djdma2x.3d", 0x000, 0x200, CRC(f9b1648b) SHA1(1ebe6dc8ccfbfa6c7dc98cb65fbc9fa21e3b687f) )
39   ROM_LOAD( "dj-11c-a.11c", 0x200, 0x200, CRC(0c6c4af0) SHA1(8fdcd34e3d07add793ff9ba27c77af864e1731bb) )
40   ROM_LOAD( "dja-12b.12b", 0x400, 0x100, CRC(040044af) SHA1(d069dc0e6b680cb8848d165aff6681ed2d750961) )
41
42   ROM_REGION( 0x104, "plds", 0 )
43   ROM_LOAD( "djdma-2b.2b", 0x000, 0x104, CRC(d6925f2c) SHA1(1e58dfb7b8a2a5bbaa6589d4018042626fd5ceaf) ) // PAL16R4
44   ROM_LOAD( "djdma 2c 81d5.2c", 0x0000, 0x10, NO_DUMP ) // ?
45ROM_END
46
47
48//-------------------------------------------------
49//  rom_region - device-specific ROM region
50//-------------------------------------------------
51
52const rom_entry *s100_djdma_device::device_rom_region() const
53{
54   return ROM_NAME( djdma );
55}
56
57
58//-------------------------------------------------
59//  ADDRESS_MAP( djdma_mem )
60//-------------------------------------------------
61
62static ADDRESS_MAP_START( djdma_mem, AS_PROGRAM, 8, s100_djdma_device )
63   AM_RANGE(0x0000, 0x0fff) AM_ROM AM_REGION("s100_3:djdma:14a", 0)
64ADDRESS_MAP_END
65
66
67//-------------------------------------------------
68//  ADDRESS_MAP( djdma_io )
69//-------------------------------------------------
70
71static ADDRESS_MAP_START( djdma_io, AS_IO, 8, s100_djdma_device )
72ADDRESS_MAP_END
73
74
75//-------------------------------------------------
76//  MACHINE_CONFIG_FRAGMENT( s100_djdma )
77//-------------------------------------------------
78
79static MACHINE_CONFIG_FRAGMENT( s100_djdma )
80   MCFG_CPU_ADD(Z80_TAG, Z80, XTAL_4MHz)
81   MCFG_CPU_PROGRAM_MAP(djdma_mem)
82   MCFG_CPU_IO_MAP(djdma_io)
83MACHINE_CONFIG_END
84
85
86//-------------------------------------------------
87//  machine_config_additions - device-specific
88//  machine configurations
89//-------------------------------------------------
90
91machine_config_constructor s100_djdma_device::device_mconfig_additions() const
92{
93   return MACHINE_CONFIG_NAME( s100_djdma );
94}
95
96
97
98//**************************************************************************
99//  LIVE DEVICE
100//**************************************************************************
101
102//-------------------------------------------------
103//  s100_djdma_device - constructor
104//-------------------------------------------------
105
106s100_djdma_device::s100_djdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
107   device_t(mconfig, S100_DJDMA, "DJDMA", tag, owner, clock),
108   device_s100_card_interface(mconfig, *this),
109   device_slot_card_interface(mconfig, *this)
110{
111}
112
113
114//-------------------------------------------------
115//  device_start - device-specific startup
116//-------------------------------------------------
117
118void s100_djdma_device::device_start()
119{
120   m_s100 = machine().device<s100_device>("s100");
121}
122
123
124//-------------------------------------------------
125//  device_reset - device-specific reset
126//-------------------------------------------------
127
128void s100_djdma_device::device_reset()
129{
130}
src/mess/machine/s100_djdma.h
r0r12007
1/**********************************************************************
2
3    Morrow Designs Disk Jockey/DMA floppy controller board emulation
4
5    Copyright MESS Team.
6    Visit http://mamedev.org for licensing and usage restrictions.
7
8**********************************************************************/
9
10#pragma once
11
12#ifndef __S100_DJDMA__
13#define __S100_DJDMA__
14
15#define ADDRESS_MAP_MODERN
16
17#include "emu.h"
18#include "cpu/z80/z80.h"
19#include "machine/s100.h"
20
21
22
23//**************************************************************************
24//  TYPE DEFINITIONS
25//**************************************************************************
26
27// ======================> s100_djdma_device
28
29class s100_djdma_device : public device_t,
30                    public device_s100_card_interface,
31                    public device_slot_card_interface
32{
33public:
34   // construction/destruction
35   s100_djdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
36
37   // optional information overrides
38   virtual machine_config_constructor device_mconfig_additions() const;
39   virtual const rom_entry *device_rom_region() const;
40
41protected:
42   // device-level overrides
43   virtual void device_start();
44   virtual void device_reset();
45    virtual void device_config_complete() { m_shortname = "djdma"; }
46
47private:
48   // internal state
49};
50
51
52// device type definition
53extern const device_type S100_DJDMA;
54
55
56#endif
src/mess/includes/mpz80.h
r12006r12007
1111#include "imagedev/flopdrv.h"
1212#include "machine/ram.h"
1313#include "machine/s100.h"
14#include "machine/s100_djdma.h"
1415#include "machine/s100_mm65k16s.h"
1516#include "machine/s100_wunderbus.h"
1617#include "machine/terminal.h"
src/mess/drivers/mpz80.c
r12006r12007
713713static SLOT_INTERFACE_START( mpz80_s100_cards )
714714   SLOT_INTERFACE("mm65k16s", S100_MM65K16S)
715715   SLOT_INTERFACE("wunderbus", S100_WUNDERBUS)
716   SLOT_INTERFACE("djdma", S100_DJDMA)
716717//  SLOT_INTERFACE("multio", S100_MULTIO)
717//  SLOT_INTERFACE("djdma", S100_DJDMA)
718718//  SLOT_INTERFACE("dj2db", S100_DJ2DB)
719719//  SLOT_INTERFACE("hdcdma", S100_HDCDMA)
720720//  SLOT_INTERFACE("hdca", S100_HDCA)
r12006r12007
774774   MCFG_S100_BUS_ADD(Z80_TAG, s100_intf)
775775   MCFG_S100_SLOT_ADD( 1,  "s100_1", mpz80_s100_cards, "mm65k16s")
776776   MCFG_S100_SLOT_ADD( 2,  "s100_2", mpz80_s100_cards, "wunderbus")
777   MCFG_S100_SLOT_ADD( 3,  "s100_3", mpz80_s100_cards, NULL)//"djdma")
777   MCFG_S100_SLOT_ADD( 3,  "s100_3", mpz80_s100_cards, "djdma")
778778   MCFG_S100_SLOT_ADD( 4,  "s100_4", mpz80_s100_cards, NULL)//"hdcdma")
779779   MCFG_S100_SLOT_ADD( 5,  "s100_5", mpz80_s100_cards, NULL)
780780   MCFG_S100_SLOT_ADD( 6,  "s100_6", mpz80_s100_cards, NULL)
src/mess/mess.mak
r12006r12007
11221122
11231123$(MESSOBJ)/morrow.a:         \
11241124   $(MESS_DRIVERS)/mpz80.o      \
1125   $(MESS_MACHINE)/s100_djdma.o      \
11251126   $(MESS_MACHINE)/s100_mm65k16s.o      \
11261127   $(MESS_MACHINE)/s100_wunderbus.o   \
11271128

Previous 15994 Revisions Next


© 1998-2018 The MESS Team