summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/m10.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-17 07:43:37 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-17 07:43:37 +0000
commitcc16777cce9c5a2cac9d88c595b6b5f4ee70a2ea (patch)
tree496c31635729f6af1e37f3337b50e91b1f9fde97 /src/mame/drivers/m10.c
parente25c13f2532730ebf50d0cffa0147393fd8e0228 (diff)
Memory handler normalization, part 1.
READ/WRITE_DEVICE*_HANDLERs are now passed an address_space &, and the 8-bit variants get a mem_mask as well. This means they are now directly compatible with the member function delegates. Added a generic address space to the driver_device that can be used when no specific address space is available. Also added DECLARE_READ/WRITE_DEVICE*_HANDLER macros to declare device callbacks with default mem_mask parameters. [Aaron Giles]
Diffstat (limited to 'src/mame/drivers/m10.c')
-rw-r--r--src/mame/drivers/m10.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/m10.c b/src/mame/drivers/m10.c
index bf5acbf1ad0..4370b0f4756 100644
--- a/src/mame/drivers/m10.c
+++ b/src/mame/drivers/m10.c
@@ -141,8 +141,8 @@ static WRITE8_DEVICE_HANDLER( ic8j2_output_changed )
/* written from /Q to A with slight delight */
LOG(("ic8j2: %d\n", data));
- ttl74123_a_w(device, 0, data);
- ttl74123_a_w(state->m_ic8j1, 0, data);
+ ttl74123_a_w(device, space, 0, data);
+ ttl74123_a_w(state->m_ic8j1, space, 0, data);
}
static const ttl74123_interface ic8j1_intf =
@@ -154,7 +154,7 @@ static const ttl74123_interface ic8j1_intf =
1, /* A pin - driven by the CRTC */
1, /* B pin - pulled high */
1, /* Clear pin - pulled high */
- ic8j1_output_changed
+ DEVCB_HANDLER(ic8j1_output_changed)
};
static const ttl74123_interface ic8j2_intf =
@@ -166,7 +166,7 @@ static const ttl74123_interface ic8j2_intf =
1, /* A pin - driven by the CRTC */
1, /* B pin - pulled high */
1, /* Clear pin - pulled high */
- ic8j2_output_changed
+ DEVCB_HANDLER(ic8j2_output_changed)
};
/*************************************
@@ -476,8 +476,8 @@ READ8_MEMBER(m10_state::m10_a700_r)
{
//LOG(("rd:%d\n",machine().primary_screen->vpos()));
LOG(("clear\n"));
- ttl74123_clear_w(m_ic8j1, 0, 0);
- ttl74123_clear_w(m_ic8j1, 0, 1);
+ ttl74123_clear_w(m_ic8j1, space, 0, 0);
+ ttl74123_clear_w(m_ic8j1, space, 0, 1);
return 0x00;
}
@@ -486,8 +486,8 @@ READ8_MEMBER(m10_state::m11_a700_r)
//LOG(("rd:%d\n",machine().primary_screen->vpos()));
//m_maincpu->set_input_line(0, CLEAR_LINE);
LOG(("clear\n"));
- ttl74123_clear_w(m_ic8j1, 0, 0);
- ttl74123_clear_w(m_ic8j1, 0, 1);
+ ttl74123_clear_w(m_ic8j1, space, 0, 0);
+ ttl74123_clear_w(m_ic8j1, space, 0, 1);
return 0x00;
}