1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/***************************************************************************
ISA 8 bit Creative Labs Game Blaster Sound Card
***************************************************************************/
#include "emu.h"
#include "isa_gblaster.h"
#include "sound/speaker.h"
#include "sound/saa1099.h"
/*
creative labs game blaster (CMS creative music system)
2 x saa1099 chips
also on sound blaster 1.0
option on sound blaster 1.5
jumperable? normally 0x220
*/
static MACHINE_CONFIG_FRAGMENT( game_blaster_config )
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SAA1099_ADD("saa1099.1", 4772720)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_SAA1099_ADD("saa1099.2", 4772720)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
static READ8_DEVICE_HANDLER( saa1099_16_r )
{
return 0xff;
}
static WRITE8_DEVICE_HANDLER( saa1099_16_w )
{
switch(offset)
{
case 0 : dynamic_cast<saa1099_device*>(device)->saa1099_control_w( space, offset, data ); break;
case 1 : dynamic_cast<saa1099_device*>(device)->saa1099_data_w( space, offset, data ); break;
}
}
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
const device_type ISA8_GAME_BLASTER = &device_creator<isa8_gblaster_device>;
//-------------------------------------------------
// machine_config_additions - device-specific
// machine configurations
//-------------------------------------------------
machine_config_constructor isa8_gblaster_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( game_blaster_config );
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// isa8_gblaster_device - constructor
//-------------------------------------------------
isa8_gblaster_device::isa8_gblaster_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, ISA8_GAME_BLASTER, "Game Blaster Sound Card", tag, owner, clock, "isa_gblaster", __FILE__),
device_isa8_card_interface(mconfig, *this)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void isa8_gblaster_device::device_start()
{
set_isa_device();
m_isa->install_device(subdevice("saa1099.1"), 0x0220, 0x0221, 0, 0, FUNC(saa1099_16_r), FUNC(saa1099_16_w) );
m_isa->install_device(subdevice("saa1099.2"), 0x0222, 0x0223, 0, 0, FUNC(saa1099_16_r), FUNC(saa1099_16_w) );
}
//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------
void isa8_gblaster_device::device_reset()
{
}
|