From 0cf7fd5268582eca705158f71541013ef340738d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 10 Jul 2020 17:18:49 +0200 Subject: UserspaceEmulator+LibX86: Implement all the forms of XOR And they're all generic, which will make it easy to support more ops. --- DevTools/UserspaceEmulator/SoftCPU.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'DevTools/UserspaceEmulator/SoftCPU.h') diff --git a/DevTools/UserspaceEmulator/SoftCPU.h b/DevTools/UserspaceEmulator/SoftCPU.h index 37da19fde6..a8d167000a 100644 --- a/DevTools/UserspaceEmulator/SoftCPU.h +++ b/DevTools/UserspaceEmulator/SoftCPU.h @@ -664,11 +664,33 @@ private: virtual void wrap_0xD3_32(const X86::Instruction&) override; template - void generic_RM32_reg32(Op, const X86::Instruction&); + void generic_AL_imm8(Op, const X86::Instruction&); + template + void generic_AX_imm16(Op, const X86::Instruction&); + template + void generic_EAX_imm32(Op, const X86::Instruction&); + template + void generic_RM16_imm16(Op, const X86::Instruction&); + template + void generic_RM16_imm8(Op, const X86::Instruction&); + template + void generic_RM16_reg16(Op, const X86::Instruction&); template void generic_RM32_imm32(Op, const X86::Instruction&); template void generic_RM32_imm8(Op, const X86::Instruction&); + template + void generic_RM32_reg32(Op, const X86::Instruction&); + template + void generic_RM8_imm8(Op, const X86::Instruction&); + template + void generic_RM8_reg8(Op, const X86::Instruction&); + template + void generic_reg16_RM16(Op, const X86::Instruction&); + template + void generic_reg32_RM32(Op, const X86::Instruction&); + template + void generic_reg8_RM8(Op, const X86::Instruction&); private: Emulator& m_emulator; -- cgit v1.2.3