Exemplo n.º 1
0
        public GraphicsAdapter(int basePort, int baseMemAddress, InterruptController pic, string characterRomPath)
        {
            _basePort       = basePort;
            _baseMemAddress = baseMemAddress;
            _pic            = pic;

            _screen        = new WriteableBitmap(ScreenWidth, ScreenHeight, 96, 96, PixelFormats.Bgr32, null);
            _bytesPerPixel = _screen.Format.BitsPerPixel / 8;

            // two planes with 64k bytes each
            _memory = new byte[0x20000];

            _charRom = File.ReadAllBytes(characterRomPath);
            MemUtils.RandomFill(_memory);
        }
Exemplo n.º 2
0
 public KeybController(int basePort, InterruptController interruptController)
 {
     this._basePort            = basePort;
     this._interruptController = interruptController;
 }
Exemplo n.º 3
0
 public Counter(Timer timer, InterruptController pic, int counterNo)
 {
     _timer     = timer;
     _pic       = pic;
     _counterNo = counterNo;
 }