--- nono/vm/fdd.h 2026/04/29 17:05:24 1.1.1.3 +++ nono/vm/fdd.h 2026/04/29 17:05:59 1.1.1.6 @@ -12,7 +12,6 @@ #include "device.h" #include "diskimage.h" -#include "event.h" #include "message.h" #include "textscreen.h" @@ -74,14 +73,14 @@ class FDDDevice : public Device }; public: - FDDDevice(int unit_); + explicit FDDDevice(uint unit_); ~FDDDevice() override; bool Init() override; void ResetHard(bool poweron) override; // モニタ更新 (FDC の下請け) - void MonitorUpdateFDD(TextScreen&, int hd); + void MonitorScreenFDD(TextScreen&, uint hd); // ユニット番号を返す int GetUnitNo() const { return unit; } @@ -175,9 +174,9 @@ class FDDDevice : public Device void UnloadMessage(MessageID, uint32); // イベントコールバック - void EventCallback(Event &); + void EventCallback(Event *); - int unit {}; // ユニット番号(ドライブ番号) + uint unit {}; // ユニット番号(ドライブ番号) bool selected {}; // FDD SELECT 入力信号で選択されていれば true enum { STOPPED = 0, // モータ停止中 @@ -191,8 +190,8 @@ class FDDDevice : public Device } bool IsReady() const { return (motor_state == READY); } bool is_blink {}; // LED ブリンク - int cylinder {}; // 現在のシリンダ番号 - int pos {}; // アクセス位置 + uint cylinder {}; // 現在のシリンダ番号 + uint pos {}; // アクセス位置 // トラックバッファ FDTrack trackbuf {}; @@ -232,5 +231,5 @@ class FDDDevice : public Device FDCDevice *fdc {}; PEDECDevice *pedec {}; - Event event { this }; + Event *event {}; };