--- nono/m680x0/m68030acc.h 2026/04/29 17:04:28 1.1 +++ nono/m680x0/m68030acc.h 2026/04/29 17:04:40 1.1.1.3 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2017 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -32,11 +33,11 @@ class acc_bf } else { StoreMem(); } - }; + } - uint32 data = 0; // 32bit 左詰めデータ - int32 offset = 0; // (第2ワードで指定された) オフセット - uint32 width = 0; // 幅 + uint32 data {}; // 32bit 左詰めデータ + int32 offset {}; // (第2ワードで指定された) オフセット + uint32 width {}; // 幅 private: void StoreReg(uint n); // 値を Dn に書き出す @@ -62,13 +63,13 @@ class acc_bf return (val >> count) | (val << (32 - count)); } - m68kcpu *cpu = NULL; + m68kcpu *cpu {}; - uint32 mask = 0; // 32ビット左詰めマスク - uint32 ea = 0; // オフセット計算後の EA - int32 local_offset = 0; // 内部(32bit or 8bit 内)オフセット - int bytes = 0; // アクセスバイト数 - uint64 buf = 0; // 40ビットのメモリバッファ + uint32 mask {}; // 32ビット左詰めマスク + uint32 ea {}; // オフセット計算後の EA + int32 local_offset {}; // 内部(32bit or 8bit 内)オフセット + int bytes {}; // アクセスバイト数 + uint64 buf {}; // 40ビットのメモリバッファ }; // res を元に NZVC フラグをセットする。