--- nono/vm/vm_luna.h 2026/04/29 17:05:14 1.1.1.10 +++ nono/vm/vm_luna.h 2026/04/29 17:05:29 1.1.1.13 @@ -15,39 +15,16 @@ class VM_LUNA : public VM { using inherited = VM; + protected: + explicit VM_LUNA(const char *name_); public: - VM_LUNA(); - virtual ~VM_LUNA() override; - - bool Init() override; + ~VM_LUNA() override; protected: - // ブートページを切り替える。 - void SwitchBootPage(Device *parent, bool isrom) override; - - // デバイスマップから devtable を作成 - void MakeDevtable(const uint8 *maptable); - - // ブートページ切り替え用 (unique_ptr ではない) - IODevice *ram0 {}; - - std::unique_ptr pBT454 {}; - std::unique_ptr pCRTC2 {}; - std::unique_ptr pEthernet {}; + std::unique_ptr pDipsw {}; std::unique_ptr pLCD {}; - std::unique_ptr pNopIO {}; - std::unique_ptr pPartialRAM {}; - std::unique_ptr pPlaneVRAM {}; - std::unique_ptr pPROM {}; - std::unique_ptr pPROM0 {}; - std::unique_ptr pPIO0 {}; - std::unique_ptr pPIO1 {}; - std::unique_ptr pRTC {}; - std::unique_ptr pSIO {}; - std::unique_ptr pSPC {}; - std::unique_ptr pSysClk {}; - std::unique_ptr pTAS {}; - std::unique_ptr pZRAM {}; + std::unique_ptr pMPU64180 {}; + std::unique_ptr pXPbus {}; }; class VM_LUNA1 final : public VM_LUNA @@ -58,7 +35,7 @@ class VM_LUNA1 final : public VM_LUNA ~VM_LUNA1() override; private: - static const uint8 maptable[256]; + std::unique_ptr pSSG {}; }; class VM_LUNA88K final : public VM_LUNA @@ -67,10 +44,4 @@ class VM_LUNA88K final : public VM_LUNA public: VM_LUNA88K(); ~VM_LUNA88K() override; - - private: - std::unique_ptr pCMMU {}; - std::unique_ptr pFuseROM {}; - - static const uint8 maptable[256]; };