Previous 199869 Revisions Next

r21679 Thursday 7th March, 2013 at 07:20:48 UTC by smf
Added tms9900, tms9980 & tms9995 to unidasm. Other tms99xx cpu cores are generated with macros, including the CPU_DISASSEMBLE (nw)
[src/emu/cpu/tms9900]9900dasm.c 99xxcore.h tms9900.c tms9900.h tms9900l.h tms9980a.c tms9995.c tms9995.h
[src/tools]unidasm.c

trunk/src/emu/cpu/tms9900/tms9900.h
r21678r21679
459459};
460460
461461
462unsigned Dasm9900(char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram);
463
464462// device type definition
465463extern const device_type TMS9900;
466464
trunk/src/emu/cpu/tms9900/tms9980a.c
r21678r21679
239239
240240offs_t tms9980a_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
241241{
242   return Dasm9900(buffer, pc, TMS9980_ID, oprom, opram);
242   extern CPU_DISASSEMBLE( tms9980 );
243   return CPU_DISASSEMBLE_NAME(tms9980)(this, buffer, pc, oprom, opram, options);
243244}
244245
245246const device_type TMS9980A = &device_creator<tms9980a_device>;
trunk/src/emu/cpu/tms9900/99xxcore.h
r21678r21679
19201920
19211921static CPU_DISASSEMBLE( tms99xx )
19221922{
1923   extern unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram);
19231924   return Dasm9900(buffer, pc, TMS99XX_MODEL, oprom, opram);
19241925}
19251926
trunk/src/emu/cpu/tms9900/tms9995.c
r21678r21679
33103310
33113311offs_t tms9995_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
33123312{
3313   return Dasm9900(buffer, pc, TMS9995_ID, oprom, opram);
3313   extern CPU_DISASSEMBLE( tms9995 );
3314   return CPU_DISASSEMBLE_NAME(tms9995)(this, buffer, pc, oprom, opram, options);
33143315}
33153316
33163317
trunk/src/emu/cpu/tms9900/tms9900.c
r21678r21679
25832583
25842584offs_t tms99xx_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
25852585{
2586   return Dasm9900(buffer, pc, TMS9900_ID, oprom, opram);
2586   extern CPU_DISASSEMBLE( tms9900 );
2587   return CPU_DISASSEMBLE_NAME(tms9900)(this, buffer, pc, oprom, opram, options);
25872588}
25882589
25892590
trunk/src/emu/cpu/tms9900/9900dasm.c
r21678r21679
794794
795795   return (PC - pc) | DASMFLAG_SUPPORTED | dasmflags;
796796}
797
798CPU_DISASSEMBLE( tms9900 )
799{
800   return Dasm9900(buffer, pc, TMS9900_ID, oprom, opram);
801}
802
803CPU_DISASSEMBLE( tms9980 )
804{
805   return Dasm9900(buffer, pc, TMS9980_ID, oprom, opram);
806}
807
808CPU_DISASSEMBLE( tms9995 )
809{
810   return Dasm9900(buffer, pc, TMS9995_ID, oprom, opram);
811}
trunk/src/emu/cpu/tms9900/tms9900l.h
r21678r21679
205205};
206206
207207
208unsigned Dasm9900 (char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram);
209
210208#endif /* __TMS9900_H__ */
trunk/src/emu/cpu/tms9900/tms9995.h
r21678r21679
441441   devcb_resolved_write_line   m_holda_line;
442442};
443443
444unsigned Dasm9900(char *buffer, unsigned pc, int model_id, const UINT8 *oprom, const UINT8 *opram);
445
446444// device type definition
447445extern const device_type TMS9995;
448446
trunk/src/tools/unidasm.c
r21678r21679
201201CPU_DISASSEMBLE( tms34020 );
202202CPU_DISASSEMBLE( tms57002 );
203203CPU_DISASSEMBLE( tms7000 );
204CPU_DISASSEMBLE( tms9900 );
205CPU_DISASSEMBLE( tms9980 );
206CPU_DISASSEMBLE( tms9995 );
204207CPU_DISASSEMBLE( tx0_64kw );
205208CPU_DISASSEMBLE( tx0_8kw );
206209CPU_DISASSEMBLE( unsp );
r21678r21679
340343   { "tms34020",   _8bit,  3, CPU_DISASSEMBLE_NAME(tms34020) },
341344   { "tms57002",   _32le, -2, CPU_DISASSEMBLE_NAME(tms57002) },
342345   { "tms7000",    _8bit,  0, CPU_DISASSEMBLE_NAME(tms7000) },
346   { "tms9900",    _16be,  0, CPU_DISASSEMBLE_NAME(tms9900) },
347   { "tms9980",    _8bit,  0, CPU_DISASSEMBLE_NAME(tms9980) },
348   { "tms9995",    _8bit,  0, CPU_DISASSEMBLE_NAME(tms9995) },
343349   { "tx0_64kw",   _32be, -2, CPU_DISASSEMBLE_NAME(tx0_64kw) },
344350   { "tx0_8kw",    _32be, -2, CPU_DISASSEMBLE_NAME(tx0_8kw) },
345351   { "unsp",       _16be,  0, CPU_DISASSEMBLE_NAME(unsp) },

Previous 199869 Revisions Next


© 1997-2024 The MAME Team