public TextScreen() { mRAM = IO.Memory.Bytes; mClearCellValue32 = (UInt32)(mClearCellValue << 16 | mClearCellValue); mRow2Addr = (UInt32)(Cols * 2); mScrollSize = (UInt32)(Cols * (Rows - 1) * 2); mRowSize32 = (UInt32)Cols * 2 / 4; }
public MemoryBlock(UInt32 aBase, UInt32 aSize) { Base = aBase; Size = aSize; Bytes = new MemoryBlock08(aBase, aSize); Words = new MemoryBlock16(aBase, aSize); DWords = new MemoryBlock32(aBase, aSize); }
/// <summary> /// Create new instance of the <see cref="MemoryBlock"/> class. /// </summary> /// <param name="aBase">A base.</param> /// <param name="aByteSize">A size.</param> public MemoryBlock(uint aBase, uint aByteSize) { Base = aBase; Size = aByteSize; Bytes = new MemoryBlock08(aBase, aByteSize); Words = new MemoryBlock16(aBase, aByteSize); DWords = new MemoryBlock32(aBase, aByteSize); }
public TextScreen() { if (this is TextScreen) { Debugger.DoSend("this is TextScreen"); } else { Debugger.DoSend("ERROR: This is not of type TextScreen!"); } mRAM = IO.Memory.Bytes; mClearCellValue32 = (UInt32)(mClearCellValue << 16 | mClearCellValue); mRow2Addr = (UInt32)(Cols * 2); mScrollSize = (UInt32)(Cols * (Rows - 1) * 2); mRowSize32 = (UInt32)Cols * 2 / 4; Debugger.DoSend("End of TextScreen..ctor"); }
public TextScreen() { if (this is TextScreen) { Debugger.DoSend("this is TextScreen"); } else { Debugger.DoSend("ERROR: This is not of type TextScreen!"); } mRAM = IO.Memory.Bytes; // Set the Console default colors: White foreground on Black background, the default value of mClearCellValue is set there too as it is linked with the Color SetColors(ConsoleColor.White, ConsoleColor.Black); mRow2Addr = (UInt32)(Cols * 2); mScrollSize = (UInt32)(Cols * (Rows - 1) * 2); Debugger.DoSend("End of TextScreen..ctor"); }
public TextScreen() { if (this is TextScreen) { TextScreenHelpers.Debug("this is TextScreen"); } else { TextScreenHelpers.Debug("ERROR: This is not of type TextScreen!"); } mRAM = IO.Memory.Bytes; // Set the Console default colors: White foreground on Black background, the default value of mClearCellValue is set there too as it is linked with the Color SetColors(ConsoleColor.White, ConsoleColor.Black); mBackgroundClearCellValue = mTextClearCellValue; mRow2Addr = (UInt32)(Cols * 2); mScrollSize = (UInt32)(Cols * (Rows - 1) * 2); SetCursorSize(mCursorSize); SetCursorVisible(mCursorVisible); TextScreenHelpers.Debug("End of TextScreen..ctor"); }