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

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: 
                     12: class CRTC2Device
                     13:        : public IODevice
                     14: {
1.1.1.3   root       15:        using inherited = IODevice;
1.1       root       16:  public:
                     17:        CRTC2Device();
1.1.1.5 ! root       18:        virtual ~CRTC2Device() override;
1.1       root       19: 
1.1.1.3   root       20:        void ResetHard() override;
1.1       root       21: 
1.1.1.2   root       22:  protected:
                     23:        // BusIO インタフェース
                     24:        static const uint32 NPORT = 2;
                     25:        uint64 Read(uint32 addr);
                     26:        uint64 Write(uint32 addr, uint32 data);
                     27:        uint64 Peek(uint32 addr);
1.1       root       28: 
                     29:  private:
                     30:        // 垂直表示期間イベント
1.1.1.4   root       31:        void VDispCallback(Event& ev);
1.1       root       32: 
                     33:        // アドレスレジスタ
1.1.1.4   root       34:        int ar {};
1.1       root       35: 
                     36:        // レジスタ
                     37:        uint8 reg[40] {};
                     38: 
                     39:        Event vdisp_event {};
                     40: };

unix.superglobalmegacorp.com

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