コード例 #1
0
ファイル: TextScreen.cs プロジェクト: iSalva/Cosmos
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
ファイル: MemoryBlock.cs プロジェクト: iSalva/Cosmos
 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);
 }
コード例 #5
0
ファイル: TextScreen.cs プロジェクト: nstone101/Cosmos
    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");
    }
コード例 #6
0
ファイル: TextScreen.cs プロジェクト: rebizu/Cosmos
    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");
    }
コード例 #7
0
ファイル: TextScreen.cs プロジェクト: Zino2201/Cosmos
 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");
 }