|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2020 nono project
4: // Licensed under nono-license.txt
5: //
6:
1.1.1.4 ! root 7: //
! 8: // OPM (YM2151)
! 9: //
! 10:
1.1 root 11: #pragma once
12:
13: #include "device.h"
14:
1.1.1.3 root 15: class OPMDevice : public IODevice
1.1 root 16: {
17: using inherited = IODevice;
1.1.1.4 ! root 18:
1.1 root 19: static const int baseaddr = 0xe90000;
20:
21: public:
22: OPMDevice();
23: virtual ~OPMDevice() override;
24:
25: protected:
26: // BusIO インタフェース
27: static const uint32 NPORT = 2;
1.1.1.2 root 28: uint64 Read(uint32 offset);
29: uint64 Write(uint32 offset, uint32 data);
30: uint64 Peek(uint32 offset);
1.1.1.4 ! root 31:
! 32: private:
! 33: int reg {}; // アクセスレジスタ番号
1.1 root 34: };
35:
1.1.1.4 ! root 36: extern OPMDevice *gOPM;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.