Refactor: Fetch-Decode phase is instruction-agnostic and operand-encoding dependant
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
#include <iostream>
|
||||
|
||||
namespace executor_cases {
|
||||
void Mov_r32_imm32(CPUContext& cc) {
|
||||
std::cout << "[Instruction] mov " << x86::Register2Str((x86::Register)cc.m_Instruction.m_Operand1) << ", " << std::hex << cc.m_Instruction.m_Operand2 << std::endl;
|
||||
cc.m_Registers[cc.m_Instruction.m_Operand1] = cc.m_Instruction.m_Operand2;
|
||||
}
|
||||
|
||||
|
||||
void Mov_rm32_r32(CPUContext& cc) {
|
||||
x86::ModRM modrm = cc.m_Instruction.optional.m_ModRM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user