--- nono/m88xx0/m88100subr.cpp 2026/04/29 17:04:31 1.1 +++ nono/m88xx0/m88100subr.cpp 2026/04/29 17:04:34 1.1.1.2 @@ -1,14 +1,16 @@ // // nono -// Copyright (C) 2020 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // -#include "header.h" #include "m88100.h" // コンストラクタ m88kcpu::m88kcpu() { + cmmu[0].Ctor(this); + cmmu[1].Ctor(this); } // デストラクタ @@ -16,20 +18,33 @@ m88kcpu::~m88kcpu() { } +// PID の VERSION フィールドをセットする。初期化時に呼ぶ。 +void +m88kcpu::SetVersion(uint32 version) +{ + pid &= ~PID_VER_MASK; + pid |= version << 1; +} + /*static*/ const char * const m88100reg::sipname[3] = { "sxip", "snip", "sfip", }; -// -// m88200 -// - -// コンストラクタ -m88200::m88200() -{ -} - -// デストラクタ -m88200::~m88200() -{ -} +/*static*/ const char * const m88100reg::dmt_en_str[16] = { + "----", + "---B", + "--B-", + "--HH", + "-B--", + "-1-1", // not used normally + "-11-", // not used normally + "-111", // not used normally + "B---", + "1--1", // not used normally + "1-1-", // not used normally + "1-11", // not used normally + "HH--", + "11-1", // not used normally + "111-", // not used normally + "LLLL", +};