mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 13:58:47 +00:00
Fixed Stind_I1 and Stind_I2.
This commit is contained in:
parent
6da5a0060a
commit
e6dedfbba9
6 changed files with 40 additions and 25 deletions
|
|
@ -249,6 +249,10 @@ namespace Cosmos.TestRunner.Core
|
|||
}
|
||||
else
|
||||
{
|
||||
File.Copy(@"..\..\source\IL2CPU\bin\Debug\netcoreapp1.0\IL2CPU.deps.json", @"bin\Debug\netcoreapp1.0\IL2CPU.deps.json", true);
|
||||
File.Copy(@"..\..\source\IL2CPU\bin\Debug\netcoreapp1.0\IL2CPU.runtimeconfig.json", @"bin\Debug\netcoreapp1.0\IL2CPU.runtimeconfig.json", true);
|
||||
File.Copy(@"..\..\source\IL2CPU\bin\Debug\netcoreapp1.0\IL2CPU.runtimeconfig.dev.json", @"bin\Debug\netcoreapp1.0\IL2CPU.runtimeconfig.dev.json", true);
|
||||
|
||||
xArguments.Insert(0, typeof(Program).GetTypeInfo().Assembly.Location);
|
||||
RunIL2CPUProcess("dotnet",
|
||||
mBaseWorkingDirectory,
|
||||
|
|
|
|||
|
|
@ -2,22 +2,21 @@
|
|||
"version": "1.0.0-*",
|
||||
"testRunner": "nunit",
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.6.1",
|
||||
"Microsoft.DotNet.InternalAbstractions": "1.0.500-preview2-1-003177",
|
||||
"Microsoft.DotNet.InternalAbstractions": "1.0.1-beta-003206",
|
||||
"NUnit": "3.6.0",
|
||||
"dotnet-test-nunit": "3.4.0-beta-3"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandard1.6": {
|
||||
"imports": "netcoreapp1.0",
|
||||
"netcoreapp1.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"type": "platform",
|
||||
"version": "1.1.0"
|
||||
},
|
||||
"Cosmos.TestRunner.Core": {
|
||||
"target": "project"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"runtimes": {
|
||||
"win7-x64": {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
"debugType": "portable"
|
||||
},
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": "1.1.0"
|
||||
"Microsoft.NETCore.App": {
|
||||
"type": "platform",
|
||||
"version": "1.1.0"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"netcoreapp1.0": {
|
||||
|
|
@ -17,8 +20,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"runtimes": {
|
||||
"win7-x64": {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -775,10 +775,10 @@ namespace Cosmos.Core.Plugs.System
|
|||
return true;
|
||||
}
|
||||
|
||||
public static string Remove(string aThis, int aStart, int aCount)
|
||||
{
|
||||
return aThis.Substring(0, aStart) + aThis.Substring(aStart + aCount, aThis.Length - (aStart + aCount));
|
||||
}
|
||||
//public static string Remove(string aThis, int aStart, int aCount)
|
||||
//{
|
||||
// return aThis.Substring(0, aStart) + aThis.Substring(aStart + aCount, aThis.Length - (aStart + aCount));
|
||||
//}
|
||||
|
||||
public static string Replace(string aThis, string oldValue, string newValue)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using XSharp.Compiler;
|
||||
using static XSharp.Compiler.XSRegisters;
|
||||
|
||||
namespace Cosmos.IL2CPU.X86.IL
|
||||
{
|
||||
|
|
@ -12,16 +13,21 @@ namespace Cosmos.IL2CPU.X86.IL
|
|||
|
||||
public override void Execute(_MethodInfo aMethod, ILOpCode aOpCode )
|
||||
{
|
||||
Stind_I.Assemble(Assembler, 1, DebugEnabled);
|
||||
XS.Pop(EAX);
|
||||
XS.Pop(EBX);
|
||||
|
||||
XS.Set(EBX, AL, destinationIsIndirect: true);
|
||||
|
||||
//Stind_I.Assemble(Assembler, 1, DebugEnabled);
|
||||
}
|
||||
|
||||
|
||||
// using System;
|
||||
// using System.IO;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// using CPU = Cosmos.Assembler.x86;
|
||||
//
|
||||
//
|
||||
// namespace Cosmos.IL2CPU.IL.X86 {
|
||||
// [Cosmos.Assembler.OpCode(OpCodeEnum.Stind_I1)]
|
||||
// public class Stind_I1: Op {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using XSharp.Compiler;
|
||||
using static XSharp.Compiler.XSRegisters;
|
||||
|
||||
namespace Cosmos.IL2CPU.X86.IL
|
||||
{
|
||||
|
|
@ -12,16 +13,21 @@ namespace Cosmos.IL2CPU.X86.IL
|
|||
|
||||
public override void Execute(_MethodInfo aMethod, ILOpCode aOpCode )
|
||||
{
|
||||
Stind_I.Assemble(Assembler, 2, DebugEnabled);
|
||||
XS.Pop(EAX);
|
||||
XS.Pop(EBX);
|
||||
|
||||
XS.Set(EBX, AX, destinationIsIndirect: true);
|
||||
|
||||
//Stind_I.Assemble(Assembler, 2, DebugEnabled);
|
||||
}
|
||||
|
||||
|
||||
// using System;
|
||||
// using System.IO;
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// using CPU = Cosmos.Assembler.x86;
|
||||
//
|
||||
//
|
||||
// namespace Cosmos.IL2CPU.IL.X86 {
|
||||
// [Cosmos.Assembler.OpCode(OpCodeEnum.Stind_I2)]
|
||||
// public class Stind_I2: Op {
|
||||
|
|
|
|||
Loading…
Reference in a new issue