--- nono/vm/printer.h 2026/04/29 17:04:55 1.1.1.5 +++ nono/vm/printer.h 2026/04/29 17:05:10 1.1.1.6 @@ -4,6 +4,10 @@ // Licensed under nono-license.txt // +// +// プリンタポート +// + #pragma once #include "device.h" @@ -11,7 +15,7 @@ class PrinterDevice : public IODevice { using inherited = IODevice; - private: + static const int baseaddr = 0xe8c000; public: @@ -25,4 +29,4 @@ class PrinterDevice : public IODevice uint64 Peek8(uint32 addr) override; }; -extern std::unique_ptr gPrinter; +extern PrinterDevice *gPrinter;