summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/mbee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/mbee.c')
-rw-r--r--src/mess/machine/mbee.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mess/machine/mbee.c b/src/mess/machine/mbee.c
index 904849a1c78..e2f6b08a94a 100644
--- a/src/mess/machine/mbee.c
+++ b/src/mess/machine/mbee.c
@@ -716,18 +716,17 @@ QUICKLOAD_LOAD_MEMBER( mbee_state, mbee_z80bin )
{
UINT16 execute_address, start_addr, end_addr;
int autorun;
+ address_space &space = m_maincpu->space(AS_PROGRAM);
/* load the binary into memory */
- if (z80bin_load_file(&image, file_type, &execute_address, &start_addr, &end_addr) == IMAGE_INIT_FAIL)
+ if (z80bin_load_file(&image, space, file_type, &execute_address, &start_addr, &end_addr) == IMAGE_INIT_FAIL)
return IMAGE_INIT_FAIL;
/* is this file executable? */
if (execute_address != 0xffff)
{
/* check to see if autorun is on */
- autorun = m_io_config->read_safe(0xFF) & 1;
-
- address_space &space = m_maincpu->space(AS_PROGRAM);
+ autorun = m_io_config->read() & 1;
space.write_word(0xa6, execute_address); /* fix the EXEC command */