--- nono/vm/crtc2.h 2026/04/29 17:04:31 1.1.1.2 +++ nono/vm/crtc2.h 2026/04/29 17:04:44 1.1.1.5 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -11,12 +12,12 @@ class CRTC2Device : public IODevice { - typedef IODevice inherited; + using inherited = IODevice; public: CRTC2Device(); - virtual ~CRTC2Device(); + virtual ~CRTC2Device() override; - virtual void ResetHard(); + void ResetHard() override; protected: // BusIO インタフェース @@ -27,10 +28,10 @@ class CRTC2Device private: // 垂直表示期間イベント - void VDispCallback(int arg); + void VDispCallback(Event& ev); // アドレスレジスタ - int ar = 0; + int ar {}; // レジスタ uint8 reg[40] {};