Exemplo n.º 1
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;
            }
        }
Exemplo n.º 2
0
 public void InitVGA(VGAControllerMode mode = VGAControllerMode.SVGA_800_600_60)
 {
     vgaController = new VGAController(mode);
 }