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

1.1       root        1: //
                      2: // nono
1.1.1.2   root        3: // Copyright (C) 2020 nono project
                      4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
                      7: #pragma once
                      8: 
1.1.1.2   root        9: #include "device.h"
1.1       root       10: 
1.1.1.2   root       11: class FuseROMDevice : public IODevice
1.1       root       12: {
1.1.1.2   root       13:        using inherited = IODevice;
                     14: 
                     15:        // この ROM が保持できるデータ量 (バイト数換算)
                     16:        static const uint32 SRCBYTES = 128;
1.1       root       17:  public:
                     18:        FuseROMDevice();
1.1.1.4   root       19:        virtual ~FuseROMDevice() override;
1.1.1.2   root       20: 
                     21:        bool Init() override;
1.1       root       22: 
1.1.1.2   root       23:  protected:
                     24:        // BusIO インタフェース
                     25:        static const uint32 NPORT = SRCBYTES * 2;       // XXX 未調査
1.1.1.5 ! root       26:        uint64 Read(uint32 offset);
        !            27:        uint64 Write(uint32 offset, uint32 data);
        !            28:        uint64 Peek(uint32 offset);
1.1       root       29: 
                     30:  private:
1.1.1.2   root       31:        // バイトデータで保持しておく
1.1.1.3   root       32:        uint8 src[SRCBYTES] {};
1.1       root       33: };
1.1.1.5 ! root       34: 
        !            35: extern std::unique_ptr<FuseROMDevice> gFuseROM;

unix.superglobalmegacorp.com

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