diff options
author | 2015-11-01 14:34:45 +0100 | |
---|---|---|
committer | 2015-11-01 14:34:45 +0100 | |
commit | 18188cb13bc11ba743d19e28125c6d8ab940fb70 (patch) | |
tree | 1463ebf983d0525857b43cfd0fa2d803ea108e78 /src/devices/cpu/tms9900 | |
parent | b814617b65550c6f5a86336f048ae14b312b4136 (diff) |
making logerror part of machine and device classes [Miodrag Milanovic]
display tag of device that logged message
Diffstat (limited to 'src/devices/cpu/tms9900')
-rw-r--r-- | src/devices/cpu/tms9900/9900dasm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/cpu/tms9900/9900dasm.c b/src/devices/cpu/tms9900/9900dasm.c index 7b3153e6c4c..cd3a67ee95a 100644 --- a/src/devices/cpu/tms9900/9900dasm.c +++ b/src/devices/cpu/tms9900/9900dasm.c @@ -347,7 +347,7 @@ static int print_arg (char *dest, int mode, int arg, const UINT8 *opram, unsigne /***************************************************************************** * Disassemble a single command and return the number of bytes it uses. *****************************************************************************/ -unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram) +unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram, device_t *device) { int OP, OP2, opc; int sarg, darg, smode, dmode; @@ -787,7 +787,7 @@ unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, } default: - logerror("debbugger internal error, file %s, line %d\n", __FILE__, __LINE__); + device->logerror("debbugger internal error, file %s, line %d\n", __FILE__, __LINE__); case illegal: sprintf (buffer, "data >%04x", OP); break; @@ -798,15 +798,15 @@ unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, CPU_DISASSEMBLE( tms9900 ) { - return Dasm9900(buffer, pc, TMS9900_ID, oprom, opram); + return Dasm9900(buffer, pc, TMS9900_ID, oprom, opram, device); } CPU_DISASSEMBLE( tms9980 ) { - return Dasm9900(buffer, pc, TMS9980_ID, oprom, opram); + return Dasm9900(buffer, pc, TMS9980_ID, oprom, opram, device); } CPU_DISASSEMBLE( tms9995 ) { - return Dasm9900(buffer, pc, TMS9995_ID, oprom, opram); + return Dasm9900(buffer, pc, TMS9995_ID, oprom, opram, device); } |