mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-05 15:51:56 +00:00
added addss and movss sse instructions
This commit is contained in:
parent
6dd10c1b8f
commit
6a90e8aee1
2 changed files with 42 additions and 0 deletions
21
source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs
Normal file
21
source/Indy.IL2CPU.Assembler.X86/SSE/AddSS.cs
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
21
source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs
Normal file
21
source/Indy.IL2CPU.Assembler.X86/SSE/MovSS.cs
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue