mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
drcbex64: Fix op_debug implementation [O. Galibert]
This commit is contained in:
parent
644feafb54
commit
72812275c7
@ -2789,7 +2789,7 @@ void drcbe_x64::op_debug(x86code *&dst, const instruction &inst)
|
||||
be_parameter pcp(*this, inst.param(0), PTYPE_MRI);
|
||||
|
||||
// test and branch
|
||||
emit_mov_r64_imm(dst, REG_RAX, (FPTR)m_device.machine().debug_flags); // mov rax,&debug_flags
|
||||
emit_mov_r64_imm(dst, REG_RAX, (FPTR)&m_device.machine().debug_flags); // mov rax,&debug_flags
|
||||
emit_test_m32_imm(dst, MBD(REG_RAX, 0), DEBUG_FLAG_CALL_HOOK); // test [debug_flags],DEBUG_FLAG_CALL_HOOK
|
||||
emit_link skip = { 0 };
|
||||
emit_jcc_short_link(dst, x64emit::COND_Z, skip); // jz skip
|
||||
|
Loading…
Reference in New Issue
Block a user