--- nono/vm/pedec.h 2026/04/29 17:05:06 1.1.1.5 +++ nono/vm/pedec.h 2026/04/29 17:05:10 1.1.1.6 @@ -4,6 +4,10 @@ // Licensed under nono-license.txt // +// +// PEDEC +// + #pragma once #include "device.h" @@ -12,7 +16,7 @@ class PEDECDevice : public InterruptDevice { using inherited = InterruptDevice; - private: + static const int baseaddr = 0xe9c000; public: @@ -31,7 +35,7 @@ class PEDECDevice : public InterruptDevi PEDECDevice(); virtual ~PEDECDevice() override; - void ResetHard() override; + void ResetHard(bool poweron) override; // InterruptDevice インタフェース int InterruptAcknowledge(int lv) override; @@ -59,4 +63,4 @@ class PEDECDevice : public InterruptDevi uint8 vector {}; }; -extern std::unique_ptr gPEDEC; +extern PEDECDevice *gPEDEC;