|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2018 [email protected]
4: //
5:
6: #pragma once
7:
8: #include "device.h"
9: #include "scheduler.h"
10:
11: class CRTC2Device
12: : public IODevice
13: {
14: typedef IODevice inherited;
15: public:
16: CRTC2Device();
17: virtual ~CRTC2Device();
18:
19: virtual void ResetHard();
20:
1.1.1.2 ! root 21: protected:
! 22: // BusIO インタフェース
! 23: static const uint32 NPORT = 2;
! 24: uint64 Read(uint32 addr);
! 25: uint64 Write(uint32 addr, uint32 data);
! 26: uint64 Peek(uint32 addr);
1.1 root 27:
28: private:
29: // 垂直表示期間イベント
30: void VDispCallback(int arg);
31:
32: // アドレスレジスタ
33: int ar = 0;
34:
35: // レジスタ
36: uint8 reg[40] {};
37:
38: Event vdisp_event {};
39: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.