--- nono/vm/pedec.h 2026/04/29 17:05:10 1.1.1.6 +++ nono/vm/pedec.h 2026/04/29 17:05:17 1.1.1.7 @@ -13,6 +13,9 @@ #include "device.h" #include "interrupt.h" +class FDCDevice; +class SPCDevice; + class PEDECDevice : public InterruptDevice { using inherited = InterruptDevice; @@ -35,6 +38,7 @@ class PEDECDevice : public InterruptDevi PEDECDevice(); virtual ~PEDECDevice() override; + bool Init() override; void ResetHard(bool poweron) override; // InterruptDevice インタフェース @@ -61,6 +65,12 @@ class PEDECDevice : public InterruptDevi uint32 intmap_enabled {}; uint8 vector {}; + + FDCDevice *fdc {}; + InterruptDevice *interrupt {}; + SPCDevice *spc {}; }; -extern PEDECDevice *gPEDEC; +static inline PEDECDevice *GetPEDECDevice() { + return Object::GetObject(OBJ_PEDEC); +}