Previous 199869 Revisions Next

r21647 Wednesday 6th March, 2013 at 18:02:20 UTC by smf
tms57002 works in unidasm, disassemble interface can be revisited when all cpu cores have been converted. [smf]
[src/emu/cpu/tms57002]57002dsm.c tms57002.c
[src/tools]unidasm.c

trunk/src/tools/unidasm.c
r21646r21647
187187CPU_DISASSEMBLE( tms32051 );
188188CPU_DISASSEMBLE( tms34010 );
189189CPU_DISASSEMBLE( tms34020 );
190//CPU_DISASSEMBLE( tms57002 );
190CPU_DISASSEMBLE( tms57002 );
191191CPU_DISASSEMBLE( tms7000 );
192192CPU_DISASSEMBLE( upd7810 );
193193CPU_DISASSEMBLE( upd7807 );
r21646r21647
309309   { "tms32051",   _16le, -1, CPU_DISASSEMBLE_NAME(tms32051) },
310310   { "tms34010",   _8bit,  3, CPU_DISASSEMBLE_NAME(tms34010) },
311311   { "tms34020",   _8bit,  3, CPU_DISASSEMBLE_NAME(tms34020) },
312   //  { "tms57002",   _32le, -2, CPU_DISASSEMBLE_NAME(tms57002) },
312   { "tms57002",   _32le, -2, CPU_DISASSEMBLE_NAME(tms57002) },
313313   { "tms7000",    _8bit,  0, CPU_DISASSEMBLE_NAME(tms7000) },
314314   { "upd7810",    _8bit,  0, CPU_DISASSEMBLE_NAME(upd7810) },
315315   { "upd7807",    _8bit,  0, CPU_DISASSEMBLE_NAME(upd7807) },
trunk/src/emu/cpu/tms57002/57002dsm.c
r21646r21647
4141#include "debugger.h"
4242#include "tms57002.h"
4343
44const char *tms57002_device::get_memadr(UINT32 opcode, char type)
44static const char *get_memadr(UINT32 opcode, char type)
4545{
4646   static char buff[2][10];
4747   static int index = 0;
r21646r21647
6464   return buf;
6565}
6666
67UINT32 tms57002_device::disasm_min_opcode_bytes() const
68{
69   return 4;
70}
7167
72UINT32 tms57002_device::disasm_max_opcode_bytes() const
68CPU_DISASSEMBLE(tms57002)
7369{
74   return 4;
75}
76
77offs_t tms57002_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
78{
7970   UINT32 opcode = opram[0] | (opram[1] << 8) | (opram[2] << 16);
8071   UINT8 fa = opcode >> 18;
8172   char *buf = buffer;
trunk/src/emu/cpu/tms57002/tms57002.c
r21646r21647
844844   return 0;
845845}
846846
847UINT32 tms57002_device::disasm_min_opcode_bytes() const
848{
849   return 4;
850}
851
852UINT32 tms57002_device::disasm_max_opcode_bytes() const
853{
854   return 4;
855}
856
857offs_t tms57002_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options)
858{
859   extern CPU_DISASSEMBLE( tms57002 );
860   return CPU_DISASSEMBLE_NAME(tms57002)(this, buffer, pc, oprom, opram, options);
861}
862
847863const address_space_config *tms57002_device::memory_space_config(address_spacenum spacenum) const
848864{
849865   switch(spacenum) {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team