|
|
1.1 ! root 1: // ! 2: // nono ! 3: // Copyright (C) 2023 nono project ! 4: // Licensed under nono-license.txt ! 5: // ! 6: ! 7: #pragma once ! 8: ! 9: #include "device.h" ! 10: ! 11: class X68kIODevice; ! 12: ! 13: class ExtAreaDevice : public IODevice ! 14: { ! 15: using inherited = IODevice; ! 16: ! 17: static const int baseaddr = 0xeae000; ! 18: ! 19: public: ! 20: ExtAreaDevice(); ! 21: ~ExtAreaDevice() override; ! 22: ! 23: bool Init() override; ! 24: void ResetHard(bool poweron) override; ! 25: ! 26: busdata Read8(uint32 addr) override; ! 27: busdata Read16(uint32 addr) override; ! 28: busdata Write8(uint32 addr, uint32 data) override; ! 29: busdata Write16(uint32 addr, uint32 data) override; ! 30: busdata Peek8(uint32 addr) override; ! 31: ! 32: private: ! 33: X68kIODevice *x68kio {}; ! 34: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.