--- nono/vm/mpu64180.cpp 2026/04/29 17:05:33 1.1.1.5 +++ nono/vm/mpu64180.cpp 2026/04/29 17:05:46 1.1.1.6 @@ -12,6 +12,7 @@ #include "config.h" #include "debugger.h" #include "hd647180.h" +#include "hd647180asci.h" #include "pio.h" #include "scheduler.h" #include "ssg.h" @@ -72,6 +73,20 @@ MPU64180Device::putlogn(const char *fmt, WriteLog(buf); } +bool +MPU64180Device::Create() +{ + try { + asci.reset(new HD647180ASCIDevice()); + } catch (...) { } + if ((bool)asci == false) { + warnx("Failed to initialize HD647180ASCIDevice at %s", __method__); + return false; + } + + return true; +} + // 初期化 bool MPU64180Device::Init()