mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
fixing build goofed...
This commit is contained in:
parent
d1421c0e8d
commit
abfd6d7aef
3 changed files with 66 additions and 0 deletions
18
source2/IL2PCU/Cosmos.IL2CPU.X86/X86/x87/FXSave.cs
Normal file
18
source2/IL2PCU/Cosmos.IL2CPU.X86/X86/x87/FXSave.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Cosmos.IL2CPU.X86.x87 {
|
||||
[OpCode("fxsave")]
|
||||
public class FXSave : InstructionWithDestination {
|
||||
public static void InitializeEncodingData(Instruction.InstructionData aData) {
|
||||
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
||||
OpCode = new byte[] { 0x0F, 0xAE },
|
||||
NeedsModRMByte = true,
|
||||
DestinationMemory = true,
|
||||
ReverseRegisters=true
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
20
source2/IL2PCU/Cosmos.IL2CPU.X86/X86/x87/FXStore.cs
Normal file
20
source2/IL2PCU/Cosmos.IL2CPU.X86/X86/x87/FXStore.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Cosmos.IL2CPU.X86.x87 {
|
||||
[OpCode("fxrstor")]
|
||||
public class FXStore : InstructionWithDestination
|
||||
{
|
||||
public static void InitializeEncodingData(Instruction.InstructionData aData) {
|
||||
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
||||
OpCode = new byte[] { 0x0F, 0xAE },
|
||||
NeedsModRMByte=true,
|
||||
InitialModRMByteValue=0x08,
|
||||
DestinationMemory = true,
|
||||
ReverseRegisters=true
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Cosmos.IL2CPU.Plugs;
|
||||
|
||||
namespace Cosmos.IL2CPU.IL.CustomImplementations.System
|
||||
{
|
||||
[Plug(Target = typeof(Double))]
|
||||
public static class DoubleImpl
|
||||
{
|
||||
public static string ToString(ref double aThis)
|
||||
{
|
||||
return DoubleImpl2.GetNumberString(aThis);
|
||||
}
|
||||
}
|
||||
public static class DoubleImpl2
|
||||
{
|
||||
public static string GetNumberString(double aValue)
|
||||
{
|
||||
const string xDigits = "0123456789";
|
||||
const char divisor = '.';
|
||||
char[] xResultChars= new char[70];
|
||||
//BitConverter.(aValue,0);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue