mirror of
https://github.com/holub/mame
synced 2025-05-10 16:21:42 +03:00
Fix F4 shortcut so it explicitly labels the address as a number
by preceding it with "0x". This allows F4 to work properly, for example, on the 68000 stepping to address a6, which also happens to be a register name.
This commit is contained in:
parent
6aea3af6c1
commit
4a032ab057
@ -1126,7 +1126,7 @@ void on_run_to_cursor_activate(GtkWidget *win)
|
|||||||
if (debug_cpu_get_visible_cpu(info->machine) == disasm->view->source()->device())
|
if (debug_cpu_get_visible_cpu(info->machine) == disasm->view->source()->device())
|
||||||
{
|
{
|
||||||
offs_t address = downcast<debug_view_disasm *>(disasm->view)->selected_address();
|
offs_t address = downcast<debug_view_disasm *>(disasm->view)->selected_address();
|
||||||
command.printf("go %X", address);
|
command.printf("go 0x%X", address);
|
||||||
debug_console_execute_command(info->machine, command, 1);
|
debug_console_execute_command(info->machine, command, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2252,7 +2252,7 @@ static int disasm_handle_command(debugwin_info *info, WPARAM wparam, LPARAM lpar
|
|||||||
if (dasmview->cursor_visible() && debug_cpu_get_visible_cpu(info->machine) == dasmview->source()->device())
|
if (dasmview->cursor_visible() && debug_cpu_get_visible_cpu(info->machine) == dasmview->source()->device())
|
||||||
{
|
{
|
||||||
offs_t address = dasmview->selected_address();
|
offs_t address = dasmview->selected_address();
|
||||||
sprintf(command, "go %X", address);
|
sprintf(command, "go 0x%X", address);
|
||||||
debug_console_execute_command(info->machine, command, 1);
|
debug_console_execute_command(info->machine, command, 1);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user