From 6a90e8aee13052f1e616d222d47b9856d883a9b7 Mon Sep 17 00:00:00 2001 From: smremde_cp <2296c648a83df9531cb573d8dfdead9aa751ab92VfNzPxkR> Date: Fri, 8 Aug 2008 14:23:30 +0000 Subject: [PATCH] added addss and movss sse instructions --- source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs | 21 +++++++++++++++++++ source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs create mode 100644 source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs diff --git a/source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs b/source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs new file mode 100644 index 000000000..61832b1c9 --- /dev/null +++ b/source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Indy.IL2CPU.Assembler.X86.SSE { + [OpCode(0xFFFFFFFF, "addss")] + public class AddSS: Instruction { + private string mDestination; + private string mSource; + public AddSS(string aDestination, string aSource) + { + mDestination = aDestination; + mSource = aSource; + } + + public override string ToString() { + return "addss " + mDestination + ", " + mSource; + } + } +} diff --git a/source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs b/source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs new file mode 100644 index 000000000..b1779dee2 --- /dev/null +++ b/source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Indy.IL2CPU.Assembler.X86.SSE { + [OpCode(0xFFFFFFFF, "movss")] + public class MovSS : Instruction + { + private string mDestination; + private string mSource; + public MovSS(string aDestination, string aSource) { + mDestination = aDestination; + mSource = aSource; + } + + public override string ToString() { + return "movss " + mDestination + ", " + mSource; + } + } +}