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

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: 
1.1.1.8 ! root        7: //
        !             8: // CRTC-II (HD6445)
        !             9: //
        !            10: 
1.1       root       11: #pragma once
                     12: 
                     13: #include "device.h"
1.1.1.8 ! root       14: #include "event.h"
1.1       root       15: 
1.1.1.7   root       16: class CRTC2Device : public IODevice
1.1       root       17: {
1.1.1.3   root       18:        using inherited = IODevice;
1.1       root       19:  public:
                     20:        CRTC2Device();
1.1.1.5   root       21:        virtual ~CRTC2Device() override;
1.1       root       22: 
1.1.1.8 ! root       23:        void ResetHard(bool poweron) override;
1.1       root       24: 
1.1.1.2   root       25:  protected:
                     26:        // BusIO インタフェース
                     27:        static const uint32 NPORT = 2;
1.1.1.6   root       28:        uint64 Read(uint32 offset);
                     29:        uint64 Write(uint32 offset, uint32 data);
                     30:        uint64 Peek(uint32 offset);
1.1       root       31: 
                     32:  private:
                     33:        // 垂直表示期間イベント
1.1.1.4   root       34:        void VDispCallback(Event& ev);
1.1       root       35: 
                     36:        // アドレスレジスタ
1.1.1.4   root       37:        int ar {};
1.1       root       38: 
                     39:        // レジスタ
                     40:        uint8 reg[40] {};
                     41: 
1.1.1.7   root       42:        Event vdisp_event { this };
1.1       root       43: };
1.1.1.6   root       44: 
1.1.1.8 ! root       45: extern CRTC2Device *gCRTC2;

unix.superglobalmegacorp.com

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