Revert "(nw)"

This reverts commit b7710688d6.
This commit is contained in:
Olivier Galibert 2015-12-07 11:58:27 +01:00
parent 8d7ae45c3f
commit 3debdde27e
2 changed files with 26 additions and 0 deletions

View File

@ -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);

View File

@ -734,6 +734,8 @@ void tms57002_device::execute_run()
}
for(;;) {
UINT32 c, d;
INT64 r;
const icd *i = cache.inst + ipc;
ipc = i->next;