Пример #1
0
 public VGAModule()
 {
     //hSync = new VGASyncModule(640, 16, 96, 48);
     //vSync = new VGASyncModule(480, 10, 2, 33);
     hSync = new VGASyncModule(800, 40, 128, 88);
     vSync = new VGASyncModule(600, 1, 4, 23);
 }
Пример #2
0
        public VGAController(VGAControllerMode mode)
        {
            switch (mode)
            {
            case VGAControllerMode.SVGA_800_600_60:
                hSync    = new VGASyncModule(800, 40, 128, 88);
                vSync    = new VGASyncModule(600, 1, 4, 23);
                addrBits = RTLCalculators.CalcBitsForValue(800 * 600);
                break;

            case VGAControllerMode.Test:
                hSync    = new VGASyncModule(80, 40, 128, 88);
                vSync    = new VGASyncModule(60, 1, 4, 23);
                addrBits = RTLCalculators.CalcBitsForValue(80 * 60);
                break;
            }
        }