From 8eea67169bc588d5a343617358e1e7dc71f6cb8e Mon Sep 17 00:00:00 2001 From: LostTheBlack_cp Date: Fri, 11 Apr 2008 12:42:29 +0000 Subject: [PATCH] [+] Added WriteOperands(reg, memory, destStream) --- source/Tests/MathTest/Lost/JIT/AMD64/ProcessorInstruction.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Tests/MathTest/Lost/JIT/AMD64/ProcessorInstruction.cs b/source/Tests/MathTest/Lost/JIT/AMD64/ProcessorInstruction.cs index a7cd044e8..ea79272f0 100644 --- a/source/Tests/MathTest/Lost/JIT/AMD64/ProcessorInstruction.cs +++ b/source/Tests/MathTest/Lost/JIT/AMD64/ProcessorInstruction.cs @@ -241,6 +241,10 @@ namespace Lost.JIT.AMD64 { destStream.WriteByte(ModRM(3, dest, source)); } + public static void WriteOperands(GeneralPurposeRegister reg, MemoryOperand memory, Stream destStream) + { + WriteOperand(reg.Register.GetIndex(), memory, destStream); + } static byte Binary(int value) { int result = 0;