Exemple #1
0
 private void Setup()
 {
     IntToCharConverter.Register <char>();
     bus = new Bus();
     bus.Add(new NullDevice());
     bus.Add(new RelDevice());
     push_a_to_rel  = (uint)new mva(0x4, 0x6, 'x').Assembly();
     push_a_to_null = (uint)new mva(0x5, 0x6, 'x').Assembly();
     loadi          = (uint)new ldi(0x5, 0x6).Assembly();
 }
Exemple #2
0
        public static void InitializeProcess()
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                Console.Title = "cpu_host";
            }
            IntToCharConverter.Register <char>();

            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                Console.OutputEncoding = Encoding.Unicode;
            }
        }
Exemple #3
0
 public void Setup() => IntToCharConverter.Register <char>();