public MOS6510(C64 c64, SystemRam ram, BasicRom basicRom, KernalRom kernelRom, CharacterRom charRom, ColorRam colorRam) { TheC64 = c64; _ram = ram; _basicRom = basicRom; _kernalRom = kernelRom; _characterRom = charRom; _colorRam = colorRam; a = x = y = 0; sp = 0xff; n_flag = z_flag = 0; v_flag = c_flag = d_flag = b_flag = i_flag = false; dfff_byte = 0x55; BALow = false; first_irq_cycle = first_nmi_cycle = 0; #if DEBUG_INSTRUCTIONS debugLogger = new DebugLog(this, false); #endif }
internal static void Dispose() { _current = null; }
static ClientLauncher() { _log = new DebugLog("ClientLauncher"); //_log.Level = Program.ApplicationInfo.LogLevel; }
internal static void Dispose() { _current = null; }
public MyTraceListener(DebugLog debugLog) { _debugLog = debugLog; }
/// <summary> /// Used as a callback for the LogRecieved event of the DebugLogger. /// Adds the given log to the log list view. /// </summary> /// <param name="log">Log to add to log list view</param> private void LogRecieved(DebugLog log) { if (Thread.CurrentThread != _startThread) return; ListViewItem item = new ListViewItem(); item.StateImageIndex = log.AlertLevel == LogAlertLevel.FatalError ? 2 : (int)log.AlertLevel; item.SubItems.Add(new ListViewItem.ListViewSubItem(item, log.Date.ToString())); item.SubItems.Add(new ListViewItem.ListViewSubItem(item, log.Message)); logListView.Items.Add(item); }