Exemple #1
0
        public static VMExecutor CreateThread()
        {
            VMExecutor thread = new VMExecutor();

            Threads.Add(thread);
            return(thread);
        }
Exemple #2
0
        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();
            }
        }
Exemple #3
0
 public static void CollectThreadSpace(VMExecutor thread)
 {
     Threads.Remove(thread);
 }