|
|
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:
9: #include "device.h"
10:
1.1.1.9 root 11: class X68kIODevice;
12:
1.1.1.6 root 13: class AreaSetDevice : public IODevice
1.1 root 14: {
1.1.1.2 root 15: using inherited = IODevice;
1.1.1.7 root 16:
1.1.1.10! root 17: static const uint32 baseaddr = 0xe86000;
1.1 root 18:
19: public:
20: AreaSetDevice();
1.1.1.9 root 21: ~AreaSetDevice() override;
1.1 root 22:
1.1.1.9 root 23: bool Init() override;
1.1.1.7 root 24: void ResetHard(bool poweron) override;
1.1.1.3 root 25:
1.1.1.10! root 26: protected:
! 27: // BusIO インタフェース
! 28: static const uint32 NPORT = 1;
! 29: busdata ReadPort(uint32 offset);
! 30: busdata WritePort(uint32 offset, uint32 data);
! 31: busdata PeekPort(uint32 offset);
! 32: bool PokePort(uint32 offset, uint32 data);
1.1 root 33:
34: private:
1.1.1.9 root 35: X68kIODevice *x68kio {};
1.1 root 36: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.