--- nono/vm/scsidev.h 2026/04/29 17:05:11 1.1.1.12 +++ nono/vm/scsidev.h 2026/04/29 17:05:18 1.1.1.14 @@ -36,7 +36,7 @@ class SCSIDevice : public IODevice { using inherited = IODevice; public: - SCSIDevice(const std::string& objname_); + SCSIDevice(int objid_); virtual ~SCSIDevice() override; // バスに接続 (SCSIBus::Attach から呼ばれる) @@ -129,7 +129,7 @@ class SCSIHostDevice : public SCSIDevice { using inherited = SCSIDevice; public: - SCSIHostDevice(const std::string& objname_); + SCSIHostDevice(int objid_); virtual ~SCSIHostDevice() override; bool Create() override; @@ -205,7 +205,7 @@ class SCSITarget : public SCSIDevice { using inherited = SCSIDevice; public: - SCSITarget(const std::string& objname_, SCSIHostDevice *h, int id); + SCSITarget(SCSIHostDevice *h, int id); virtual ~SCSITarget() override; void ResetHard(bool poweron) override; @@ -216,6 +216,9 @@ class SCSITarget : public SCSIDevice // 現在のコマンド列を返す (モニタ用) std::vector GetCmdSeq() const { return cmdseq; } + // コマンドを選択する (ROM30 エミュレーション用) + SCSICmd *SelectCommand(const std::vector& cmdseq_); + // 論理ブロック長 uint32 GetBlocksize() const { return blocksize; } void SetBlocksize(uint32 val) { blocksize = val; }