Initial Commit.

This commit is contained in:
2025-07-16 20:09:34 +08:00
parent be67738526
commit 1ca24171fb
9 changed files with 346 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace SVM.Core
{
[Serializable]
public class DebugSymbol
{
public Dictionary<string, uint> Functions = new Dictionary<string, uint>();
}
public class RuntimeBinary
{
public uint offset;
public SimpleVirtualMachine? BindedMachine;
public DebugSymbol? Symbol;
public bool Invoke(string funcName)
{
if (BindedMachine == null) return false;
if (Symbol == null) return false;
if (!Symbol.Functions.TryGetValue(funcName, out var func))
{
return false;
}
return false;
}
}
}