Fixed the help command for the disassemble command
This commit is contained in:
parent
6f94664428
commit
57c73c8a51
@ -1421,7 +1421,7 @@ static const debugger_command_t commands[] = {
|
|||||||
{"eval", 2, }, /* Alias */
|
{"eval", 2, }, /* Alias */
|
||||||
{"examine", 2, examine, "Examine values at address", "<expression>", "count"},
|
{"examine", 2, examine, "Examine values at address", "<expression>", "count"},
|
||||||
{"x", 1, }, /* Alias */
|
{"x", 1, }, /* Alias */
|
||||||
{"disassemble", 1, disassemble, "disassemble instructions at address", "<expression>", "count"},
|
{"disassemble", 1, disassemble, "Disassemble instructions at address", "<expression>", "count"},
|
||||||
|
|
||||||
|
|
||||||
{"help", 1, help, "List available commands or show help for the specified command", "[<command>]"},
|
{"help", 1, help, "List available commands or show help for the specified command", "[<command>]"},
|
||||||
@ -1455,7 +1455,7 @@ static void print_command_description(GB_gameboy_t *gb, const debugger_command_t
|
|||||||
{
|
{
|
||||||
print_command_shortcut(gb, command);
|
print_command_shortcut(gb, command);
|
||||||
GB_log(gb, ": ");
|
GB_log(gb, ": ");
|
||||||
GB_log(gb, (const char *)&" %s\n" + strlen(command->command), command->help_string);
|
GB_log(gb, (const char *)&" %s\n" + strlen(command->command), command->help_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool help(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugger_command_t *ignored)
|
static bool help(GB_gameboy_t *gb, char *arguments, char *modifiers, const debugger_command_t *ignored)
|
||||||
|
Loading…
Reference in New Issue
Block a user