diff options
Diffstat (limited to 'src/mess/machine/z80bin.c')
-rw-r--r-- | src/mess/machine/z80bin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/machine/z80bin.c b/src/mess/machine/z80bin.c index 05fcbbf1721..ac18c8e7e11 100644 --- a/src/mess/machine/z80bin.c +++ b/src/mess/machine/z80bin.c @@ -8,7 +8,7 @@ memory -------------------------------------------------*/ -int z80bin_load_file(device_image_interface *image, const char *file_type, UINT16 *exec_addr, UINT16 *start_addr, UINT16 *end_addr ) +int z80bin_load_file(device_image_interface *image, address_space &space, const char *file_type, UINT16 *exec_addr, UINT16 *start_addr, UINT16 *end_addr ) { int ch; UINT16 args[3]; @@ -70,7 +70,7 @@ int z80bin_load_file(device_image_interface *image, const char *file_type, UINT1 image->message("%s: Unexpected EOF while writing byte to %04X", pgmname, (unsigned) j); return IMAGE_INIT_FAIL; } - image->device().machine().device("maincpu")->memory().space(AS_PROGRAM).write_byte(j, data); + space.write_byte(j, data); } return IMAGE_INIT_PASS; |