diff options
author | 2013-01-11 07:32:46 +0000 | |
---|---|---|
committer | 2013-01-11 07:32:46 +0000 | |
commit | 0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) | |
tree | 234109de1123b13f217494af4b3f8efad346d5cc /src/emu/cpu/x86log.c | |
parent | 111157ca09a9ff60fe4a9ba49173c315e94314fa (diff) |
Cleanups and version bumpmame0148
Diffstat (limited to 'src/emu/cpu/x86log.c')
-rw-r--r-- | src/emu/cpu/x86log.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/emu/cpu/x86log.c b/src/emu/cpu/x86log.c index e72483e823f..5f01b2c8e43 100644 --- a/src/emu/cpu/x86log.c +++ b/src/emu/cpu/x86log.c @@ -20,9 +20,9 @@ ***************************************************************************/ /* comment parameters */ -#define MAX_COMMENTS 4000 -#define MAX_DATA_RANGES 1000 -#define COMMENT_POOL_SIZE (MAX_COMMENTS * 40) +#define MAX_COMMENTS 4000 +#define MAX_DATA_RANGES 1000 +#define COMMENT_POOL_SIZE (MAX_COMMENTS * 40) @@ -33,34 +33,34 @@ /* code logging info */ struct log_comment { - x86code * base; - const char * string; + x86code * base; + const char * string; }; /* data ranges */ struct data_range_t { - x86code * base; - x86code * end; - int size; + x86code * base; + x86code * end; + int size; }; /* the code logging context */ struct x86log_context { - astring filename; /* name of the file */ - FILE * file; /* file we are logging to */ + astring filename; /* name of the file */ + FILE * file; /* file we are logging to */ - data_range_t data_range[MAX_DATA_RANGES]; /* list of data ranges */ - int data_range_count; /* number of data ranges */ + data_range_t data_range[MAX_DATA_RANGES]; /* list of data ranges */ + int data_range_count; /* number of data ranges */ - log_comment comment_list[MAX_COMMENTS]; /* list of comments */ - int comment_count; /* number of live comments */ + log_comment comment_list[MAX_COMMENTS]; /* list of comments */ + int comment_count; /* number of live comments */ - char comment_pool[COMMENT_POOL_SIZE];/* string pool to hold comments */ - char * comment_pool_next; /* pointer to next string pool location */ + char comment_pool[COMMENT_POOL_SIZE];/* string pool to hold comments */ + char * comment_pool_next; /* pointer to next string pool location */ }; @@ -214,10 +214,10 @@ void x86log_disasm_code_range(x86log_context *log, const char *label, x86code *s switch (curdata->size) { default: - case 1: sprintf(buffer, "db %02X", *cur); break; - case 2: sprintf(buffer, "dw %04X", *(UINT16 *)cur); break; - case 4: sprintf(buffer, "dd %08X", *(UINT32 *)cur); break; - case 8: sprintf(buffer, "dq %08X%08X", ((UINT32 *)cur)[1], ((UINT32 *)cur)[0]); break; + case 1: sprintf(buffer, "db %02X", *cur); break; + case 2: sprintf(buffer, "dw %04X", *(UINT16 *)cur); break; + case 4: sprintf(buffer, "dd %08X", *(UINT32 *)cur); break; + case 8: sprintf(buffer, "dq %08X%08X", ((UINT32 *)cur)[1], ((UINT32 *)cur)[0]); break; } } |