diff options
| author | 2009-09-07 01:34:34 +0000 | |
|---|---|---|
| committer | 2009-09-07 01:34:34 +0000 | |
| commit | 8fbe10c91f641d42284e4eb0d6102a0b7132d28d (patch) | |
| tree | 1ea87cda0117a00cf2157741c5013cc3ac4649f4 /src/emu/debug | |
| parent | 10b6e7e106ad706c29b8e25cbac0b990f0cdb501 (diff) | |
Cleanups and version bump.mame0133u5
Diffstat (limited to 'src/emu/debug')
| -rw-r--r-- | src/emu/debug/debugcmd.c | 26 | ||||
| -rw-r--r-- | src/emu/debug/debugcpu.c | 4 | ||||
| -rw-r--r-- | src/emu/debug/debughlp.c | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c index 75814dde444..31989f72c70 100644 --- a/src/emu/debug/debugcmd.c +++ b/src/emu/debug/debugcmd.c @@ -1825,7 +1825,7 @@ static void execute_cheatinit(running_machine *machine, int ref, int params, con if (!debug_command_parameter_number(machine, param[(ref == 0) ? 1 : 0], &offset)) return; if (!debug_command_parameter_number(machine, param[(ref == 0) ? 2 : 1], &length)) - return; + return; } else { @@ -1847,7 +1847,7 @@ static void execute_cheatinit(running_machine *machine, int ref, int params, con debug_console_printf(machine, "No writable bytes found in this area\n"); return; } - + if (ref == 0) { /* initialize new cheat system */ @@ -1917,8 +1917,8 @@ static void execute_cheatnext(running_machine *machine, int ref, int params, con UINT32 active_cheat = 0; UINT8 condition; UINT64 comp_value = 0; - - enum + + enum { CHEAT_ALL = 0, CHEAT_EQUAL, @@ -1960,7 +1960,7 @@ static void execute_cheatnext(running_machine *machine, int ref, int params, con else if (!strcmp(param[0], "smallerof") || !strcmp(param[0], "lt") || !strcmp(param[0], "<")) condition = CHEAT_SMALLEROF; else if (!strcmp(param[0], "greaterof") || !strcmp(param[0], "gt") || !strcmp(param[0], ">")) - condition = CHEAT_GREATEROF; + condition = CHEAT_GREATEROF; else { debug_console_printf(machine, "Invalid condition type\n"); @@ -1976,7 +1976,7 @@ static void execute_cheatnext(running_machine *machine, int ref, int params, con UINT64 cheat_value = cheat_read_extended(&cheat, space, cheat.cheatmap[cheatindex].offset); UINT64 comp_byte = (ref == 0) ? cheat.cheatmap[cheatindex].previous_value : cheat.cheatmap[cheatindex].first_value; UINT8 disable_byte = FALSE; - + switch (condition) { case CHEAT_ALL: @@ -2069,10 +2069,10 @@ static void execute_cheatlist(running_machine *machine, int ref, int params, con if (!debug_command_parameter_cpu_space(machine, &cheat.cpu, ADDRESS_SPACE_PROGRAM, &space)) return; - + if (params > 0) f = fopen(param[0], "w"); - + switch (space->spacenum) { default: @@ -2080,7 +2080,7 @@ static void execute_cheatlist(running_machine *machine, int ref, int params, con case ADDRESS_SPACE_DATA: spaceletter = 'd'; break; case ADDRESS_SPACE_IO: spaceletter = 'i'; break; } - + switch (cheat.width) { default: @@ -2097,14 +2097,14 @@ static void execute_cheatlist(running_machine *machine, int ref, int params, con { UINT64 value = cheat_read_extended(&cheat, space, cheat.cheatmap[cheatindex].offset) & sizemask; offs_t address = memory_byte_to_address(space, cheat.cheatmap[cheatindex].offset); - + if (params > 0) { active_cheat++; fprintf(f, " <cheat desc=\"Possibility %d : %0*X (%0*" I64FMT "X)\">\n", active_cheat, space->logaddrchars, address, cheat.width * 2, value); - fprintf(f, " <script state=\"run\">\n"); + fprintf(f, " <script state=\"run\">\n"); fprintf(f, " <action>maincpu.%c%c@%0*X=%0*" I64FMT "X</action>\n", spaceletter, sizeletter, space->logaddrchars, address, cheat.width * 2, cheat.cheatmap[cheatindex].first_value & sizemask); - fprintf(f, " </script>\n"); + fprintf(f, " </script>\n"); fprintf(f, " </cheat>\n\n"); } else @@ -2135,7 +2135,7 @@ static void execute_cheatundo(running_machine *machine, int ref, int params, con cheat.cheatmap[cheatindex].undo = 0; undo_count++; } - } + } cheat.undo--; debug_console_printf(machine, "%u cheat reactivated\n", undo_count); diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index d8a6c659a75..76ff505e38c 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -1531,7 +1531,7 @@ UINT64 debug_read_qword(const address_space *space, offs_t address, int apply_tr /*------------------------------------------------- - debug_read_memory - return 1,2,4 or 8 bytes + debug_read_memory - return 1,2,4 or 8 bytes from the specified memory space -------------------------------------------------*/ @@ -1746,7 +1746,7 @@ void debug_write_qword(const address_space *space, offs_t address, UINT64 data, /*------------------------------------------------- - debug_write_memory - write 1,2,4 or 8 bytes + debug_write_memory - write 1,2,4 or 8 bytes to the specified memory space -------------------------------------------------*/ diff --git a/src/emu/debug/debughlp.c b/src/emu/debug/debughlp.c index f82c610c0ea..05a3c0a2cfd 100644 --- a/src/emu/debug/debughlp.c +++ b/src/emu/debug/debughlp.c @@ -1083,7 +1083,7 @@ static const help_item static_help_list[] = " cheatrange <address>,<length>\n" "\n" "The cheatrange command adds the selected memory area to the cheat search.\n" - "Before using cheatrange it is necessary to initialize the cheat search with cheatinit.\n" + "Before using cheatrange it is necessary to initialize the cheat search with cheatinit.\n" "\n" "Examples:\n" "\n" |
