public static VMExecutor CreateThread() { VMExecutor thread = new VMExecutor(); Threads.Add(thread); return(thread); }
internal static void SetAddress(uint offset, uint value) { PreservedAddressTag tag = (PreservedAddressTag)offset; switch (tag) { case PreservedAddressTag.NULL: break; case PreservedAddressTag.STDSTRINGIO: Console.Write(VMExecutor.GetString(value)); break; default: throw new NotImplementedException(); } }
public static void CollectThreadSpace(VMExecutor thread) { Threads.Remove(thread); }