Annotation of nono/vm/tas.h, revision 1.1.1.3

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
                      7: // TAS ポート
                      8: 
                      9: #pragma once
                     10: 
                     11: #include "device.h"
                     12: #include <atomic>
                     13: 
                     14: class TASDevice
                     15:        : public IODevice
                     16: {
                     17:        using inherited = IODevice;
                     18:  public:
                     19:        TASDevice();
1.1.1.2   root       20:        virtual ~TASDevice() override;
1.1       root       21: 
                     22:  protected:
                     23:        // BusIO インタフェース
                     24:        static const uint32 NPORT = 1;
1.1.1.3 ! root       25:        uint64 Read(uint32 offset);
        !            26:        uint64 Write(uint32 offset, uint32 data);
        !            27:        uint64 Peek(uint32 offset);
1.1       root       28: 
                     29:  private:
                     30:        std::atomic<uint8> tas {};      // bit 7 のみ有効。
                     31: };
                     32: 
                     33: extern std::unique_ptr<TASDevice> gTAS;

unix.superglobalmegacorp.com

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