mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Removed 'ppc_dasm_one(std::string &string,...' declaration, and updated caller
This commit is contained in:
parent
7c868e53d0
commit
68a1153691
@ -476,7 +476,6 @@ enum
|
||||
#define G_XO(op) ((op & M_XO) >> (31 - 30))
|
||||
|
||||
extern offs_t ppc_dasm_one(std::ostream &stream, uint32_t pc, uint32_t op);
|
||||
extern offs_t ppc_dasm_one(std::string &string, uint32_t pc, uint32_t op);
|
||||
|
||||
|
||||
|
||||
|
@ -3745,11 +3745,12 @@ bool ppc_device::generate_instruction_3f(drcuml_block *block, compiler_state *co
|
||||
|
||||
void ppc_device::log_add_disasm_comment(drcuml_block *block, uint32_t pc, uint32_t op)
|
||||
{
|
||||
std::string buffer;
|
||||
if (m_drcuml->logging())
|
||||
{
|
||||
ppc_dasm_one(buffer, pc, op);
|
||||
block->append_comment("%08X: %s", pc, buffer.c_str()); // comment
|
||||
util::ovectorstream stream;
|
||||
ppc_dasm_one(stream, pc, op);
|
||||
stream.put('\0');
|
||||
block->append_comment("%08X: %s", pc, &stream.vec()[0]); // comment
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user