summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/formats/trs_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/formats/trs_cmd.c')
-rw-r--r--src/mess/formats/trs_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/formats/trs_cmd.c b/src/mess/formats/trs_cmd.c
index d29a8d4acc2..20c9c537224 100644
--- a/src/mess/formats/trs_cmd.c
+++ b/src/mess/formats/trs_cmd.c
@@ -35,7 +35,7 @@
QUICKLOAD_LOAD( trs80_cmd )
{
- address_space *program = image.device().machine().firstcpu->space(AS_PROGRAM);
+ address_space &program = image.device().machine().firstcpu->space(AS_PROGRAM);
UINT8 type, length;
UINT8 data[0x100];
@@ -57,7 +57,7 @@ QUICKLOAD_LOAD( trs80_cmd )
image.fread( &addr, 2);
UINT16 address = (addr[1] << 8) | addr[0];
if (LOG) logerror("/CMD object code block: address %04x length %u\n", address, block_length);
- ptr = program->get_write_ptr(address);
+ ptr = program.get_write_ptr(address);
image.fread( ptr, block_length);
}
break;