--- nono/vm/sram.h 2026/04/29 17:05:28 1.1.1.12 +++ nono/vm/sram.h 2026/04/29 17:05:59 1.1.1.14 @@ -47,9 +47,6 @@ class SRAMDevice : public IODevice // SRAM $ed000c.L ROM 起動アドレスを返す (romemu 用) uint32 GetROMAddr() const { return Get32(0x000c); } - // SRAM の初期値 - static std::array InitialData; - private: // SRAM の指定の位置の値を副作用なく読み出す uint32 Get16(uint32 offset) const; @@ -67,8 +64,11 @@ class SRAMDevice : public IODevice uint8 *mem {}; bool writeable {}; + + // SRAM の初期値 + static std::array initialdata; }; -static inline SRAMDevice *GetSRAMDevice() { +inline SRAMDevice *GetSRAMDevice() { return Object::GetObject(OBJ_SRAM); }