|
|
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:
1.1.1.6 ! root 7: //
! 8: // FuseROM
! 9: //
! 10:
1.1 root 11: #pragma once
12:
1.1.1.2 root 13: #include "device.h"
1.1 root 14:
1.1.1.2 root 15: class FuseROMDevice : public IODevice
1.1 root 16: {
1.1.1.2 root 17: using inherited = IODevice;
18:
19: // この ROM が保持できるデータ量 (バイト数換算)
20: static const uint32 SRCBYTES = 128;
1.1 root 21: public:
22: FuseROMDevice();
1.1.1.4 root 23: virtual ~FuseROMDevice() override;
1.1.1.2 root 24:
25: bool Init() override;
1.1 root 26:
1.1.1.2 root 27: protected:
28: // BusIO インタフェース
29: static const uint32 NPORT = SRCBYTES * 2; // XXX 未調査
1.1.1.5 root 30: uint64 Read(uint32 offset);
31: uint64 Write(uint32 offset, uint32 data);
32: uint64 Peek(uint32 offset);
1.1 root 33:
34: private:
1.1.1.2 root 35: // バイトデータで保持しておく
1.1.1.3 root 36: uint8 src[SRCBYTES] {};
1.1 root 37: };
1.1.1.5 root 38:
1.1.1.6 ! root 39: extern FuseROMDevice *gFuseROM;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.