diff options
Diffstat (limited to 'src/emu/cpu/tms32010/32010dsm.c')
-rw-r--r-- | src/emu/cpu/tms32010/32010dsm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/tms32010/32010dsm.c b/src/emu/cpu/tms32010/32010dsm.c index bf8224fff3d..722685fa078 100644 --- a/src/emu/cpu/tms32010/32010dsm.c +++ b/src/emu/cpu/tms32010/32010dsm.c @@ -225,7 +225,7 @@ static void InitDasm32010(void) OpInizialized = 1; } -offs_t tms32010_dasm(char *str, offs_t pc, const UINT8 *oprom, const UINT8 *opram) +CPU_DISASSEMBLE( tms32010 ) { UINT32 flags = 0; int a, b, d, k, m, n, p, r, s, w; /* these can all be filled in by parsing an instruction */ @@ -234,7 +234,7 @@ offs_t tms32010_dasm(char *str, offs_t pc, const UINT8 *oprom, const UINT8 *opra int cnt = 1; int code; int bit; - char *strtmp; + char *buffertmp; const char *cp; /* character pointer in OpFormats */ if (!OpInizialized) InitDasm32010(); @@ -255,10 +255,10 @@ offs_t tms32010_dasm(char *str, offs_t pc, const UINT8 *oprom, const UINT8 *opra } if (op == -1) { - sprintf(str,"???? dw %04Xh",code); + sprintf(buffer,"???? dw %04Xh",code); return cnt | DASMFLAG_SUPPORTED; } - strtmp = str; + buffertmp = buffer; if (Op[op].extcode) { bit = 31; @@ -326,13 +326,13 @@ offs_t tms32010_dasm(char *str, offs_t pc, const UINT8 *oprom, const UINT8 *opra default: fatalerror("illegal escape character in format '%s'",Op[op].fmt); } - q = num; while (*q) *str++ = *q++; - *str = '\0'; + q = num; while (*q) *buffer++ = *q++; + *buffer = '\0'; } else { - *str++ = *cp++; - *str = '\0'; + *buffer++ = *cp++; + *buffer = '\0'; } } return cnt | flags | DASMFLAG_SUPPORTED; |