From d27da15af654ecc71095b9415ad6f98162af7599 Mon Sep 17 00:00:00 2001 From: Yuuki Wesp Date: Fri, 22 May 2020 20:32:54 +0300 Subject: [PATCH] final fixes for module system --- .../Ancient.Compiler.Service.csproj | 2 +- .../Ancient.Runtime.Context.csproj | 2 +- submodules/runtime | 2 +- vm/csharp/Program.cs | 34 ++----------------- vm/csharp/vm.csproj | 2 +- 5 files changed, 6 insertions(+), 36 deletions(-) diff --git a/libs/Ancient.Compiler.Service/Ancient.Compiler.Service.csproj b/libs/Ancient.Compiler.Service/Ancient.Compiler.Service.csproj index 59b7476..3463a08 100644 --- a/libs/Ancient.Compiler.Service/Ancient.Compiler.Service.csproj +++ b/libs/Ancient.Compiler.Service/Ancient.Compiler.Service.csproj @@ -13,7 +13,7 @@ MIT Yuuki Wesp Ancient Project - 0.70.699.120 + 0.70.701.120 diff --git a/libs/Ancient.Runtime.Context/Ancient.Runtime.Context.csproj b/libs/Ancient.Runtime.Context/Ancient.Runtime.Context.csproj index f5df438..f46f408 100644 --- a/libs/Ancient.Runtime.Context/Ancient.Runtime.Context.csproj +++ b/libs/Ancient.Runtime.Context/Ancient.Runtime.Context.csproj @@ -4,7 +4,7 @@ Library netcoreapp3.1 - 0.70.673.37 + 0.70.675.37 true https://raw.githubusercontent.com/ancientproject/cli/master/resource/icon.png https://github.com/0xF6/ancient_cpu diff --git a/submodules/runtime b/submodules/runtime index b6f78e5..64258c1 160000 --- a/submodules/runtime +++ b/submodules/runtime @@ -1 +1 @@ -Subproject commit b6f78e5844c2162855b04b55b15bfdffcc8454c0 +Subproject commit 64258c1f55e4aa89ee2db0c651ef894803062fdd diff --git a/vm/csharp/Program.cs b/vm/csharp/Program.cs index e1eb2cd..8baeef6 100644 --- a/vm/csharp/Program.cs +++ b/vm/csharp/Program.cs @@ -39,7 +39,7 @@ public static void InitializeProcess() public static void InitializeFlags(Bus bus) { /* @0x11 */ - bus.State.tc = AppFlag.GetVariable("VM_TRACE", true); + bus.State.tc = AppFlag.GetVariable("VM_TRACE", false); /* @0x12 */ bus.State.ec = AppFlag.GetVariable("VM_ERROR", false); /* @0x13 */ @@ -61,37 +61,7 @@ public static void InitializeMemory(Bus bus, params string[] args) if (bus.State.halt != 0) return; if (!args.Any()) - { - //var ev = new SignatureEvolve(new List {"u32", "f32"}, "FuckingXuy"); - - //(ev as IEvolveEvent).OnBuild(); - - //bus.State.Load("", ev - // .GetInstructions().Select(x =>(ulong)x).ToArray()); - var mem = new Instruction[] - { - new ldx(0x11, 0x1), - new sig("test1", 0, "void"), new lpstr("test1"), - new ldi(0x0, 0x5), - new __static_extern_call("sys->DumpCallStack()"), - new ret(), - new nop(), - new sig("test2", 0, "void"), new lpstr("test2"), - new ldi(0x1, 0x6), - new call_i("test1()"), - new ret(), - new nop(), - new sig("test3", 0, "void"), new lpstr("test3"), - new call_i("test2()"), - new mul(0x3, 0x0, 0x1), - new ret(), - new nop(), - new call_i("test3()") - }; - bus.State.Load("", mem.Select(x => (ulong)x).ToArray()); - bus.State.LoadMeta(mem.SelectMany(x => x.GetMetaDataILBytes()).ToArray()); - //bus.State.Load("", 0xB00B50000); - } + bus.State.Load("", 0xB00B50000); else { var nameFile = Path.Combine(Path.GetDirectoryName(args.First()), Path.GetFileNameWithoutExtension(args.First())); diff --git a/vm/csharp/vm.csproj b/vm/csharp/vm.csproj index 0f89b30..b35ca13 100644 --- a/vm/csharp/vm.csproj +++ b/vm/csharp/vm.csproj @@ -11,7 +11,7 @@ win10-arm64; win10-arm; - 0.70.754-beta + 0.70.756-beta true Yuuki Wesp (C) 2020