Example #1
0
 public void UpdateWindowSize()
 {
     IO.Memory   = new Cosmos.Core.MemoryBlock(0xB8000, (uint)(Cols * Rows * 2));
     mRAM        = IO.Memory.Bytes;
     mScrollSize = (uint)(Cols * (Rows - 1) * 2);
     mRow2Addr   = (uint)(Cols * 2);
 }
Example #2
0
 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;
 }
Example #3
0
 public Bochslfb()
 {
     //have to detect if bochs
     Index   = new IOPort(VBE_DISPI_IOPORT_INDEX);
     Data    = new IOPort(VBE_DISPI_IOPORT_DATA);
     Fb      = new MemoryBlock08(0xE0000000);//It is static :(
     IsValid = true;
 }
Example #4
0
 /// <summary>
 /// Creat new instance of the <see cref="TextScreen"/> class.
 /// </summary>
 public 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   = (uint)(Cols * 2);
     mScrollSize = (uint)(Cols * (Rows - 1) * 2);
     SetCursorSize(mCursorSize);
     SetCursorVisible(mCursorVisible);
     TextScreenHelpers.Debug("End of TextScreen..ctor");
 }
Example #5
0
 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");
 }
Example #6
0
        public VGAScreen()
        {
            AttributeController_Index = new IOPort(0x3C0);
            AttributeController_Read  = new IOPort(0x3C1);
            AttributeController_Write = new IOPort(0x3C0);
            MiscellaneousOutput_Write = new IOPort(0x3C2);
            Sequencer_Index           = new IOPort(0x3C4);
            Sequencer_Data            = new IOPort(0x3C5);
            DACIndex_Read             = new IOPort(0x3C7);
            DACIndex_Write            = new IOPort(0x3C8);
            DAC_Data = new IOPort(0x3C9);
            GraphicsController_Index = new IOPort(0x3CE);
            GraphicsController_Data  = new IOPort(0x3CF);
            CRTController_Index      = new IOPort(0x3D4);
            CRTController_Data       = new IOPort(0x3D5);
            Instat_Read = new IOPort(0x3DA);

            VideoMemory = new MemoryBlock08(0xA0000);
        }
Example #7
0
    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);
      mRow2Addr = (UInt32)(Cols * 2);
      mScrollSize = (UInt32)(Cols * (Rows - 1) * 2);
      SetCursorSize(mCursorSize);
      SetCursorVisible(mCursorVisible);
      TextScreenHelpers.Debug("End of TextScreen..ctor");
    }