summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/toaplan2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/toaplan2.c')
-rw-r--r--src/mame/audio/toaplan2.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/audio/toaplan2.c b/src/mame/audio/toaplan2.c
index 45d34a564a9..0c1a9962a97 100644
--- a/src/mame/audio/toaplan2.c
+++ b/src/mame/audio/toaplan2.c
@@ -71,77 +71,77 @@ static const UINT8 fixeight_cmd_snd[128] =
/*78*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
-static void play_oki_sound(const address_space *space, int game_sound, int data)
+static void play_oki_sound(const device_config *device, int game_sound, int data)
{
- int status = okim6295_status_0_r(space,0);
+ int status = okim6295_r(device,0);
logerror("Playing sample %02x from command %02x\n",game_sound,data);
if (game_sound != 0)
{
if ((status & 0x01) == 0) {
- okim6295_data_0_w(space,0,(0x80 | game_sound));
- okim6295_data_0_w(space,0,0x11);
+ okim6295_w(device,0,(0x80 | game_sound));
+ okim6295_w(device,0,0x11);
}
else if ((status & 0x02) == 0) {
- okim6295_data_0_w(space,0,(0x80 | game_sound));
- okim6295_data_0_w(space,0,0x21);
+ okim6295_w(device,0,(0x80 | game_sound));
+ okim6295_w(device,0,0x21);
}
else if ((status & 0x04) == 0) {
- okim6295_data_0_w(space,0,(0x80 | game_sound));
- okim6295_data_0_w(space,0,0x41);
+ okim6295_w(device,0,(0x80 | game_sound));
+ okim6295_w(device,0,0x41);
}
else if ((status & 0x08) == 0) {
- okim6295_data_0_w(space,0,(0x80 | game_sound));
- okim6295_data_0_w(space,0,0x81);
+ okim6295_w(device,0,(0x80 | game_sound));
+ okim6295_w(device,0,0x81);
}
}
}
-void dogyuun_okisnd_w(const address_space *space, int data)
+void dogyuun_okisnd_w(const device_config *device, int data)
{
/* Need a board to determine the sound commands */
// popmessage("Writing %04x to Sound CPU",data);
}
-void kbash_okisnd_w(const address_space *space, int data)
+void kbash_okisnd_w(const device_config *device, int data)
{
// popmessage("Writing %04x to Sound CPU",data);
if (data == 0)
{
- okim6295_data_0_w(space,0,0x78); /* Stop playing effects */
+ okim6295_w(device,0,0x78); /* Stop playing effects */
}
else if ((data > 0) && (data < 128))
{
- play_oki_sound(space, kbash_cmd_snd[data], data);
+ play_oki_sound(device, kbash_cmd_snd[data], data);
}
}
-void fixeight_okisnd_w(const address_space *space, int data)
+void fixeight_okisnd_w(const device_config *device, int data)
{
// popmessage("Writing %04x to Sound CPU",data);
if (data == 0)
{
- okim6295_data_0_w(space,0,0x78); /* Stop playing effects */
+ okim6295_w(device,0,0x78); /* Stop playing effects */
}
else if ((data > 0) && (data < 128))
{
- play_oki_sound(space, fixeight_cmd_snd[data], data);
+ play_oki_sound(device, fixeight_cmd_snd[data], data);
}
}
-void batsugun_okisnd_w(const address_space *space, int data)
+void batsugun_okisnd_w(const device_config *device, int data)
{
// popmessage("Writing %04x to Sound CPU",data);
if (data == 0)
{
- okim6295_data_0_w(space,0,0x78); /* Stop playing effects */
+ okim6295_w(device,0,0x78); /* Stop playing effects */
}
else if ((data > 0) && (data < 64))
{
- play_oki_sound(space, batsugun_cmd_snd[data], data);
+ play_oki_sound(device, batsugun_cmd_snd[data], data);
}
}