summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/sh2/sh2dasm.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-08-22 06:25:07 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-08-22 06:25:07 +0000
commitf474114e1d33a559fdb9e3369d648ce45e081e99 (patch)
treee7ef30fac785ae9c7b91750733249f116fb0bc5e /src/emu/cpu/sh2/sh2dasm.c
parentb99862230da58440c266b30762484acb1f2ee778 (diff)
Added infrastructure to compile universal standalone disassembler:
- added unidasm to the tools build - split the disassemblers out of libcpu and into new libdasm - ensured the disassembly entry points for all disassemblers are in the source file for the disassembler (sometimes new generic versions were created) Still needs command line options and file loading, but the fundamentals are present, and it links.
Diffstat (limited to 'src/emu/cpu/sh2/sh2dasm.c')
-rw-r--r--src/emu/cpu/sh2/sh2dasm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/cpu/sh2/sh2dasm.c b/src/emu/cpu/sh2/sh2dasm.c
index cf45d1791a5..b05dca16893 100644
--- a/src/emu/cpu/sh2/sh2dasm.c
+++ b/src/emu/cpu/sh2/sh2dasm.c
@@ -600,3 +600,9 @@ unsigned DasmSH2(char *buffer, unsigned pc, UINT16 opcode)
}
return 2 | flags | DASMFLAG_SUPPORTED;
}
+
+CPU_DISASSEMBLE( sh2 )
+{
+ return DasmSH2( buffer, pc, (oprom[0] << 8) | oprom[1] );
+}
+