private ParserActions procGet(string[] arr, string rstr) { CPU.CORE.Clear(); var loader = new Tops10SAVLoader(CPU.CORE, rstr); return(ParserActions.Ok); }
public void cpuSetup() { Core = new UserModeCore(true); CPU = new SimhPDP10CPU(Core, OSTypes.Tops10) { ProcessorType = ProcessorTypes.KA10 }; CPU.PCChanged += CPU_PCChanged; CPU.LightsChanged += CPU_LightsChanged; CPU.ProcFlagChanged += CPU_ProcFlagChanged; CPU.EffectiveAddressCalculated += CPU_EffectiveAddressCalculated; TOPS10 = new MonitorContext(CPU); TOPS10.TTCALL.ConsoleOutput += TTCALL_ConsoleOutput; TOPS10.TTCALL.AttachToConsole(); loader = new Tops10SAVLoader(Core, KLADEXE); addACs(); addSymbols <int>(typeof(JOBDAT)); MapCore(); MapProperties(); foreach (var seg in Core) { seg.MemberPageChanged += seg_MemberPageChanged; } CoreBrowser.Rows[0].Expanded = true; var gr = FindGridRow(loader.Transaddr.UL); SelectGridRow(gr); DecorateRow(gr, Color.Red, "Transfer Address: " + loader.Transaddr); CPU.PC = loader.Transaddr.UI; CoreBrowser.AfterRowUpdate += CoreBrowser_AfterRowUpdate; setUpYet = true; CPU.ProcFlags = 0; CPU.SetUserMode(); }
static void Main(string[] args) { var Core = new UserModeCore(); var loader = new Tops10SAVLoader(Core, "test.sav"); }