summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/poly88.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-17 08:22:16 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-17 08:22:16 +0000
commit3cce7e019e095296b5ce2bb45d19b1209bed961d (patch)
tree4fa76260ac2dee5878fbba70d759ba6a1d4d76bf /src/mess/machine/poly88.c
parent22b4739aded17790b3f1bf31b9da8ff9e6a0860c (diff)
Memory handler normalization, part 2. Change legacy
read/write handlers to take an address_space & instead of an address_space *. Also update pretty much all other functions to take a reference where appropriate. [Aaron Giles]
Diffstat (limited to 'src/mess/machine/poly88.c')
-rw-r--r--src/mess/machine/poly88.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/machine/poly88.c b/src/mess/machine/poly88.c
index 2174bb7ee31..30533997c0d 100644
--- a/src/mess/machine/poly88.c
+++ b/src/mess/machine/poly88.c
@@ -258,7 +258,7 @@ WRITE8_MEMBER(poly88_state::poly88_intr_w)
SNAPSHOT_LOAD( poly88 )
{
- address_space *space = image.device().machine().device("maincpu")->memory().space(AS_PROGRAM);
+ address_space &space = *image.device().machine().device("maincpu")->memory().space(AS_PROGRAM);
UINT8* data= auto_alloc_array(image.device().machine(), UINT8, snapshot_size);
UINT16 recordNum;
UINT16 recordLen;
@@ -290,7 +290,7 @@ SNAPSHOT_LOAD( poly88 )
switch(recordType) {
case 0 :
/* 00 Absolute */
- memcpy(space->get_read_ptr(address ), data + pos ,recordLen);
+ memcpy(space.get_read_ptr(address ), data + pos ,recordLen);
break;
case 1 :
/* 01 Comment */