--- nono/vm/upd7201.cpp 2026/04/29 17:04:32 1.1.1.2 +++ nono/vm/upd7201.cpp 2026/04/29 17:04:36 1.1.1.3 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #include "upd7201.h" @@ -384,7 +385,7 @@ uPD7201Device::PeekData(const struct SIO } } -// TX/RX の bits/char のレジスタ値を実際の bits/char の値に変換します。 +// TX/RX の bits/char のレジスタ値を実際の bits/char の値に変換する。 /* static */ const int uPD7201Device::bits_per_char[] = { 5, 7, 6, 8 }; @@ -576,11 +577,10 @@ uPD7201Device::MonitorReg(int x, int y, { for (int i = 0; i < 8; i++) { if (strcmp(names[i], "----") == 0) { - monitor.Print(x + i * 5, y, TA::Disable, "%s", names[i]); + monitor.Puts(x + i * 5, y, TA::Disable, names[i]); } else { bool b = reg & (1 << (7 - i)); - uint attr = b ? TA::On : TA::Off; - monitor.Print(x + i * 5, y, attr, "%s", names[i]); + monitor.Puts(x + i * 5, y, TA::OnOff(b), names[i]); } } }