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(); }
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; } }
public void Setup() => IntToCharConverter.Register <char>();