diff options
Diffstat (limited to 'src/emu/cpu/hmcs40/hmcs40d.c')
-rw-r--r-- | src/emu/cpu/hmcs40/hmcs40d.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/emu/cpu/hmcs40/hmcs40d.c b/src/emu/cpu/hmcs40/hmcs40d.c new file mode 100644 index 00000000000..f8d11a85140 --- /dev/null +++ b/src/emu/cpu/hmcs40/hmcs40d.c @@ -0,0 +1,25 @@ +// license:BSD-3-Clause +// copyright-holders:hap +/* + + Hitachi HMCS40 MCU family disassembler + +*/ + +#include "emu.h" +#include "debugger.h" +#include "hmcs40.h" + + +CPU_DISASSEMBLE(hmcs40) +{ + int pos = 2;//0; +// UINT16 op = ((oprom[pos] << 8) | oprom[pos + 1]) & 0x3ff; +// pos += 2; +// UINT8 instr = hmcs40_mnemonic[op]; + + char *dst = buffer; + dst += sprintf(dst, "ABC"); + + return pos | 0 | DASMFLAG_SUPPORTED; +} |