Previous 15994 Revisions Next

r14114 Saturday 21st January, 2012 at 14:46:47 UTC by Angelo Salese
Added skeleton for ISA MPU-401, just to realize that those ports aren't checked anymore by Heroes of Might & Magic ...?
[src/mess]mess.mak
[src/mess/drivers]at.c genpc.c ibmpc.c
[src/mess/includes]at.h
[src/mess/machine]isa_mpu401.c* isa_mpu401.h*

src/mess/machine/isa_mpu401.c
r0r14114
1/***************************************************************************
2
3   MPU-401 MIDI device interface
4
5   TODO:
6   - skeleton, doesn't do anything
7
8***************************************************************************/
9
10#include "emu.h"
11#include "isa_mpu401.h"
12
13
14
15READ8_MEMBER( isa8_mpu401_device::mpu401_r )
16{
17   return 0xff;
18}
19
20WRITE8_MEMBER( isa8_mpu401_device::mpu401_w )
21{
22   // ...
23}
24
25//**************************************************************************
26//  GLOBAL VARIABLES
27//**************************************************************************
28
29const device_type ISA8_MPU401 = &device_creator<isa8_mpu401_device>;
30
31
32//**************************************************************************
33//  LIVE DEVICE
34//**************************************************************************
35
36//-------------------------------------------------
37//  isa8_adlib_device - constructor
38//-------------------------------------------------
39
40isa8_mpu401_device::isa8_mpu401_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
41      : device_t(mconfig, ISA8_MPU401, "mpu401", tag, owner, clock),
42      device_isa8_card_interface( mconfig, *this )
43{
44}
45
46//-------------------------------------------------
47//  device_start - device-specific startup
48//-------------------------------------------------
49
50void isa8_mpu401_device::device_start()
51{
52   set_isa_device();
53   m_isa->install_device(0x330, 0x0331, 0, 0, read8_delegate(FUNC(isa8_mpu401_device::mpu401_r), this), write8_delegate(FUNC(isa8_mpu401_device::mpu401_w), this));
54}
55
56//-------------------------------------------------
57//  device_reset - device-specific reset
58//-------------------------------------------------
59
60void isa8_mpu401_device::device_reset()
61{
62}
src/mess/machine/isa_mpu401.h
r0r14114
1#pragma once
2
3#ifndef __ISA_MPU401_H__
4#define __ISA_MPU401_H__
5
6#include "emu.h"
7#include "machine/isa.h"
8
9//**************************************************************************
10//  TYPE DEFINITIONS
11//**************************************************************************
12
13// ======================> isa8_mpu401_device
14
15class isa8_mpu401_device :
16      public device_t,
17      public device_isa8_card_interface
18{
19public:
20      // construction/destruction
21        isa8_mpu401_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
22
23        DECLARE_READ8_MEMBER(mpu401_r);
24        DECLARE_WRITE8_MEMBER(mpu401_w);
25      // optional information overrides
26protected:
27        // device-level overrides
28        virtual void device_start();
29        virtual void device_reset();
30
31private:
32        // internal state
33};
34
35
36// device type definition
37extern const device_type ISA8_MPU401;
38
39#endif  /* __ISA_MPU401_H__ */
src/mess/includes/at.h
r14113r14114
5252#include "machine/ne1000.h"
5353#include "machine/ne2000.h"
5454#include "video/isa_mda.h"
55#include "machine/isa_mpu401.h"
5556
5657#include "machine/isa_ide.h"
5758
src/mess/mess.mak
r14113r14114
13001300   $(MESS_MACHINE)/isa_fdc.o   \
13011301   $(MESS_MACHINE)/isa_gblaster.o   \
13021302   $(MESS_MACHINE)/isa_hdc.o   \
1303   $(MESS_MACHINE)/isa_mpu401.o   \
13031304   $(MESS_MACHINE)/isa_sblaster.o   \
13041305   $(MESS_MACHINE)/isa_ide.o   \
13051306   $(MESS_VIDEO)/isa_mda.o      \
src/mess/drivers/genpc.c
r14113r14114
2828#include "machine/isa_gblaster.h"
2929#include "machine/isa_hdc.h"
3030#include "machine/isa_sblaster.h"
31#include "machine/isa_mpu401.h"
3132#include "machine/3c503.h"
3233#include "machine/ne1000.h"
3334
r14113r14114
117118   SLOT_INTERFACE("gblaster", ISA8_GAME_BLASTER)
118119   SLOT_INTERFACE("sblaster1_0", ISA8_SOUND_BLASTER_1_0)
119120   SLOT_INTERFACE("sblaster1_5", ISA8_SOUND_BLASTER_1_5)
121   SLOT_INTERFACE("mpu401", ISA8_MPU401)
120122   SLOT_INTERFACE("ne1000", NE1000)
121123   SLOT_INTERFACE("3c503", EL2_3C503)
122124SLOT_INTERFACE_END
src/mess/drivers/at.c
r14113r14114
356356   SLOT_INTERFACE("sblaster1_5", ISA8_SOUND_BLASTER_1_5)
357357   SLOT_INTERFACE("ne1000", NE1000)
358358   SLOT_INTERFACE("3c503", EL2_3C503)
359   SLOT_INTERFACE("mpu401", ISA8_MPU401)
359360   // ISA 16 bit
360361   SLOT_INTERFACE("ide", ISA16_IDE)
361362   SLOT_INTERFACE("ne2000", NE2000)
src/mess/drivers/ibmpc.c
r14113r14114
265265#include "machine/isa_sblaster.h"
266266#include "machine/3c503.h"
267267#include "machine/ne1000.h"
268#include "machine/isa_mpu401.h"
268269
269270#include "machine/kb_keytro.h"
270271#include "video/pc_cga.h"
r14113r14114
327328   SLOT_INTERFACE("sblaster1_5", ISA8_SOUND_BLASTER_1_5)
328329   SLOT_INTERFACE("ne1000", NE1000)
329330   SLOT_INTERFACE("3c503", EL2_3C503)
331   SLOT_INTERFACE("mpu401", ISA8_MPU401)
330332SLOT_INTERFACE_END
331333
332334static MACHINE_CONFIG_START( ibm5150, ibmpc_state )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team