--- nono/vm/tas.h 2026/04/29 17:04:36 1.1 +++ nono/vm/tas.h 2026/04/29 17:05:29 1.1.1.9 @@ -4,30 +4,32 @@ // Licensed under nono-license.txt // +// // TAS ポート +// #pragma once #include "device.h" #include -class TASDevice - : public IODevice +class TASDevice : public IODevice { using inherited = IODevice; public: TASDevice(); ~TASDevice() override; + void ResetHard(bool poweron) override; + protected: // BusIO インタフェース static const uint32 NPORT = 1; - uint64 Read(uint32 addr); - uint64 Write(uint32 addr, uint32 data); - uint64 Peek(uint32 addr); + busdata ReadPort(uint32 offset); + busdata WritePort(uint32 offset, uint32 data); + busdata PeekPort(uint32 offset); + bool PokePort(uint32 offset, uint32 data); private: std::atomic tas {}; // bit 7 のみ有効。 }; - -extern std::unique_ptr gTAS;