Previous 199869 Revisions Next

r21646 Wednesday 6th March, 2013 at 17:49:58 UTC by smf
reduced some duplication in the nec disassembler interface (nw)
[src/emu/cpu/nec]nec.c necdasm.c
[src/emu/cpu/v30mz]v30mz.c
[src/tools]unidasm.c

trunk/src/emu/cpu/v30mz/v30mz.c
r21645r21646
12921292
12931293offs_t v30mz_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
12941294{
1295   extern int necv_dasm_one(char *buffer, UINT32 eip, const UINT8 *oprom, const nec_config *config);
1296
1297   return necv_dasm_one(buffer, pc, oprom, NULL);
1295   extern CPU_DISASSEMBLE( nec );
1296   return CPU_DISASSEMBLE_NAME(nec)(this, buffer, pc, oprom, opram, options);
12981297}
12991298
13001299
trunk/src/emu/cpu/nec/necdasm.c
r21645r21646
16051605   return (pc-eip) | dasm_flags | DASMFLAG_SUPPORTED;
16061606}
16071607
1608CPU_DISASSEMBLE( nec_generic )
1608CPU_DISASSEMBLE( nec )
16091609{
16101610   return necv_dasm_one(buffer, pc, oprom, NULL);
16111611}
trunk/src/emu/cpu/nec/nec.c
r21645r21646
114114#include "nec.h"
115115#include "necpriv.h"
116116
117extern int necv_dasm_one(char *buffer, UINT32 eip, const UINT8 *oprom, const nec_config *config);
117extern CPU_DISASSEMBLE( nec );
118118
119119INLINE nec_state_t *get_safe_token(device_t *device)
120120{
r21645r21646
309309   }
310310}
311311
312static CPU_DISASSEMBLE( nec )
313{
314   return necv_dasm_one(buffer, pc, oprom, NULL);
315}
316
317312static void nec_init(legacy_cpu_device *device, device_irq_acknowledge_callback irqcallback)
318313{
319314   nec_state_t *nec_state = get_safe_token(device);
trunk/src/tools/unidasm.c
r21645r21646
154154CPU_DISASSEMBLE( psxcpu_generic );
155155CPU_DISASSEMBLE( r3000be );
156156CPU_DISASSEMBLE( r3000le );
157CPU_DISASSEMBLE( nec_generic );
157CPU_DISASSEMBLE( nec );
158158CPU_DISASSEMBLE( pdp1 );
159159CPU_DISASSEMBLE( pps4 );
160160CPU_DISASSEMBLE( tx0_64kw );
r21645r21646
276276   { "psxcpu",     _32le,  0, CPU_DISASSEMBLE_NAME(psxcpu_generic) },
277277   { "r3000be",    _32be,  0, CPU_DISASSEMBLE_NAME(r3000be) },
278278   { "r3000le",    _32le,  0, CPU_DISASSEMBLE_NAME(r3000le) },
279   { "nec",        _8bit,  0, CPU_DISASSEMBLE_NAME(nec_generic) },
279   { "nec",        _8bit,  0, CPU_DISASSEMBLE_NAME(nec) },
280280   { "pdp1",       _32be,  0, CPU_DISASSEMBLE_NAME(pdp1) },
281281   { "pps4",       _8bit,  0, CPU_DISASSEMBLE_NAME(pps4) },
282282   { "tx0_64kw",   _32be, -2, CPU_DISASSEMBLE_NAME(tx0_64kw) },

Previous 199869 Revisions Next


© 1997-2024 The MAME Team