mirror of
https://github.com/holub/mame
synced 2025-06-19 02:38:56 +03:00
cpu/drcbearm64.cpp: Add disassembled UML comments to logged native assembly language. (#13472)
This commit is contained in:
parent
b71012d11b
commit
e6c8f8ccf0
@ -1560,6 +1560,16 @@ void drcbe_arm64::generate(drcuml_block &block, const instruction *instlist, uin
|
|||||||
const instruction &inst = instlist[inum];
|
const instruction &inst = instlist[inum];
|
||||||
assert(inst.opcode() < std::size(s_opcode_table));
|
assert(inst.opcode() < std::size(s_opcode_table));
|
||||||
|
|
||||||
|
// must remain in scope until output
|
||||||
|
std::string dasm;
|
||||||
|
|
||||||
|
// add a comment
|
||||||
|
if (logger.file())
|
||||||
|
{
|
||||||
|
dasm = inst.disasm(&m_drcuml);
|
||||||
|
a.setInlineComment(dasm.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
// generate code
|
// generate code
|
||||||
(this->*s_opcode_table[inst.opcode()])(a, inst);
|
(this->*s_opcode_table[inst.opcode()])(a, inst);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user