summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/pic16c5x/16c5xdsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/pic16c5x/16c5xdsm.c')
-rw-r--r--src/emu/cpu/pic16c5x/16c5xdsm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/pic16c5x/16c5xdsm.c b/src/emu/cpu/pic16c5x/16c5xdsm.c
index 87e13a51b71..ac36a6918ca 100644
--- a/src/emu/cpu/pic16c5x/16c5xdsm.c
+++ b/src/emu/cpu/pic16c5x/16c5xdsm.c
@@ -150,7 +150,7 @@ static void InitDasm16C5x(void)
OpInizialized = 1;
}
-offs_t pic16C5x_dasm(char *str, offs_t pc, const UINT8 *oprom, const UINT8 *opram)
+CPU_DISASSEMBLE( pic16C5x )
{
int a, b, d, f, k; /* these can all be filled in by parsing an instruction */
int i;
@@ -158,7 +158,7 @@ offs_t pic16C5x_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 */
UINT32 flags = 0;
@@ -184,10 +184,10 @@ offs_t pic16C5x_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;
}
- strtmp = str;
+ buffertmp = buffer;
if (Op[op].extcode) /* Actually, theres no double length opcodes */
{
bit = 27;
@@ -244,13 +244,13 @@ offs_t pic16C5x_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;