From 3debdde27e552f9ee48267e0dbbfd44e4de44ecc Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 7 Dec 2015 11:58:27 +0100 Subject: [PATCH] Revert "(nw)" This reverts commit b7710688d6614af55c7eb8f9ebe8480bd794a7c2. --- src/devices/cpu/tms57002/57002dsm.cpp | 24 ++++++++++++++++++++++++ src/devices/cpu/tms57002/tms57002.cpp | 2 ++ 2 files changed, 26 insertions(+) diff --git a/src/devices/cpu/tms57002/57002dsm.cpp b/src/devices/cpu/tms57002/57002dsm.cpp index b84ddf04db2..960054806fc 100644 --- a/src/devices/cpu/tms57002/57002dsm.cpp +++ b/src/devices/cpu/tms57002/57002dsm.cpp @@ -12,6 +12,30 @@ #include "debugger.h" #include "tms57002.h" +static const char *get_memadr(UINT32 opcode, char type) +{ + static char buff[2][10]; + static int index = 0; + char *buf; + + index = 1-index; + buf = buff[index]; + + if(((opcode & 0x400) && (type == 'c')) || (!(opcode & 0x400) && (type == 'd'))) { + if(opcode & 0x100) + sprintf(buf, "%c(%02x)", type, opcode & 0xff); + else if(opcode & 0x80) + sprintf(buf, "%c*+", type); + else + sprintf(buf, "%c*", type); + } else if(opcode & 0x200) + sprintf(buf, "%c*+", type); + else + sprintf(buf, "%c*", type); + return buf; +} + + CPU_DISASSEMBLE(tms57002) { UINT32 opcode = opram[0] | (opram[1] << 8) | (opram[2] << 16); diff --git a/src/devices/cpu/tms57002/tms57002.cpp b/src/devices/cpu/tms57002/tms57002.cpp index a92cff59752..f05b4cad4f1 100644 --- a/src/devices/cpu/tms57002/tms57002.cpp +++ b/src/devices/cpu/tms57002/tms57002.cpp @@ -734,6 +734,8 @@ void tms57002_device::execute_run() } for(;;) { + UINT32 c, d; + INT64 r; const icd *i = cache.inst + ipc; ipc = i->next;