public DisplayBoard(WpcCpuBoard.InitObject initObject) { foreach (var fieldInfo in typeof(OP).GetFields()) { object value = fieldInfo.GetValue(null); if (value is ushort) { if (!REVERSEOP.ContainsKey((ushort)value)) { REVERSEOP.Add((ushort)value, fieldInfo.Name); } } } interruptCallback = initObject.interruptCallback; ram = initObject.ram; hasAlphanumericDisplay = initObject.hasAlphanumericDisplay; outputDmdDisplay = OutputDmdDisplay.getInstance(DMD_PAGE_SIZE); outputAlphaDisplay = OutputAlphaDisplay.getInstance(DMD_PAGE_SIZE); }
public void Init() { outputAlphaDisplay = OutputAlphaDisplay.getInstance(0x200); }