Annotation of nono/vm/crtc2.h, revision 1.1.1.7

1.1       root        1: //
                      2: // nono
1.1.1.3   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
                      7: #pragma once
                      8: 
                      9: #include "device.h"
                     10: #include "scheduler.h"
                     11: 
1.1.1.7 ! root       12: class CRTC2Device : public IODevice
1.1       root       13: {
1.1.1.3   root       14:        using inherited = IODevice;
1.1       root       15:  public:
                     16:        CRTC2Device();
1.1.1.5   root       17:        virtual ~CRTC2Device() override;
1.1       root       18: 
1.1.1.3   root       19:        void ResetHard() override;
1.1       root       20: 
1.1.1.2   root       21:  protected:
                     22:        // BusIO インタフェース
                     23:        static const uint32 NPORT = 2;
1.1.1.6   root       24:        uint64 Read(uint32 offset);
                     25:        uint64 Write(uint32 offset, uint32 data);
                     26:        uint64 Peek(uint32 offset);
1.1       root       27: 
                     28:  private:
                     29:        // 垂直表示期間イベント
1.1.1.4   root       30:        void VDispCallback(Event& ev);
1.1       root       31: 
                     32:        // アドレスレジスタ
1.1.1.4   root       33:        int ar {};
1.1       root       34: 
                     35:        // レジスタ
                     36:        uint8 reg[40] {};
                     37: 
1.1.1.7 ! root       38:        Event vdisp_event { this };
1.1       root       39: };
1.1.1.6   root       40: 
                     41: extern std::unique_ptr<CRTC2Device> gCRTC2;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.