--- nono/vm/lcd.cpp 2026/04/29 17:04:28 1.1 +++ nono/vm/lcd.cpp 2026/04/29 17:04:35 1.1.1.3 @@ -1,11 +1,12 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #include "lcd.h" -LCDDevice *gLCD; +std::unique_ptr gLCD; LCDDevice::LCDDevice() { @@ -146,6 +147,22 @@ LCDDevice::Write(uint8 data) } } +// PIO1 からのピーク用 +uint8 +LCDDevice::Peek() const +{ + if (en == false || rw == false) { + // XXX どうなるんだろ + return 0xff; + } + if (rs == 0) { + return addr; + } else { + // データ読み込みは未実装 + } + return 0xff; +} + bool LCDDevice::MonitorUpdate() {