From a85f5f7da054890ca133ac1254b8e71fe95fc126 Mon Sep 17 00:00:00 2001 From: Nicola Salmoria Date: Sat, 15 Nov 2008 16:06:00 +0000 Subject: [PATCH] fix compile error in debug build --- src/mame/video/cischeat.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/mame/video/cischeat.c b/src/mame/video/cischeat.c index c00d7dc1a84..3f5e1d0cc9a 100644 --- a/src/mame/video/cischeat.c +++ b/src/mame/video/cischeat.c @@ -1341,11 +1341,15 @@ if ( input_code_pressed(KEYCODE_Z) || input_code_pressed(KEYCODE_X) ) if (msk != 0) megasys1_active_layers &= msk; #if 1 - popmessage("Cmd: %04X Pos:%04X Lim:%04X Inp:%04X", - scudhamm_motor_command, - scudhamm_motor_pos_r(screen->machine,0,0xffff), - scudhamm_motor_status_r(screen->machine,0,0xffff), - scudhamm_analog_r(screen->machine,0,0xffff) ); + { + const address_space *space = cpu_get_address_space(screen->machine->cpu[0], ADDRESS_SPACE_PROGRAM); + + popmessage("Cmd: %04X Pos:%04X Lim:%04X Inp:%04X", + scudhamm_motor_command, + scudhamm_motor_pos_r(space,0,0xffff), + scudhamm_motor_status_r(space,0,0xffff), + scudhamm_analog_r(space,0,0xffff) ); + } #endif }