--- nono/vm/printer.h 2026/04/29 17:04:50 1.1.1.4 +++ nono/vm/printer.h 2026/04/29 17:05:18 1.1.1.7 @@ -4,15 +4,18 @@ // Licensed under nono-license.txt // +// +// プリンタポート +// + #pragma once #include "device.h" -class PrinterDevice - : public IODevice +class PrinterDevice : public IODevice { using inherited = IODevice; - private: + static const int baseaddr = 0xe8c000; public: @@ -25,5 +28,3 @@ class PrinterDevice uint64 Write16(uint32 addr, uint32 data) override; uint64 Peek8(uint32 addr) override; }; - -extern std::unique_ptr gPrinter;