|
|
1.1 root 1: //
2: // nono
1.1.1.4 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 "upd7201.h"
11:
12: class SIODevice
13: : public uPD7201Device
14: {
1.1.1.4 root 15: using inherited = uPD7201Device;
1.1 root 16: public:
17: SIODevice();
1.1.1.5 root 18: virtual ~SIODevice() override;
1.1 root 19:
1.1.1.6 ! root 20: // BusIO インタフェース
! 21: // (内蔵 ROM からのアクセス用に特別に public にしてある)
! 22: uint64 Read(uint32 offset);
! 23: uint64 Write(uint32 offset, uint32 data);
1.1 root 24:
1.1.1.3 root 25: protected:
26: // BusIO インタフェース
27: static const uint32 NPORT = 4;
1.1.1.6 ! root 28: uint64 Peek(uint32 offset);
1.1 root 29:
30: private:
1.1.1.4 root 31: void Interrupt() override;
1.1 root 32: };
33:
1.1.1.3 root 34: extern std::unique_ptr<SIODevice> gSIO;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.