mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
Removing 'sharc_dasm_one(char *buffer, ...'
This commit is contained in:
parent
a29891d2e5
commit
1b8a4df9ee
@ -1206,16 +1206,6 @@ static uint32_t sharc_dasm_one(std::ostream &stream, offs_t pc, uint64_t opcode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static uint32_t sharc_dasm_one(char *buffer, offs_t pc, uint64_t opcode)
|
|
||||||
{
|
|
||||||
std::ostringstream stream;
|
|
||||||
uint32_t result = sharc_dasm_one(stream, pc, opcode);
|
|
||||||
std::string stream_str = stream.str();
|
|
||||||
strcpy(buffer, stream_str.c_str());
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
CPU_DISASSEMBLE( sharc )
|
CPU_DISASSEMBLE( sharc )
|
||||||
{
|
{
|
||||||
uint64_t op;
|
uint64_t op;
|
||||||
@ -1225,8 +1215,6 @@ CPU_DISASSEMBLE( sharc )
|
|||||||
((uint64_t)oprom[2] << 16) | ((uint64_t)oprom[3] << 24) |
|
((uint64_t)oprom[2] << 16) | ((uint64_t)oprom[3] << 24) |
|
||||||
((uint64_t)oprom[4] << 32) | ((uint64_t)oprom[5] << 40);
|
((uint64_t)oprom[4] << 32) | ((uint64_t)oprom[5] << 40);
|
||||||
|
|
||||||
char buffer[256];
|
flags = sharc_dasm_one(stream, pc, op);
|
||||||
flags = sharc_dasm_one(buffer, pc, op);
|
|
||||||
stream << buffer;
|
|
||||||
return 1 | flags | DASMFLAG_SUPPORTED;
|
return 1 | flags | DASMFLAG_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user