--- nono/vm/printer.h 2026/04/29 17:04:45 1.1.1.3 +++ nono/vm/printer.h 2026/04/29 17:05:10 1.1.1.6 @@ -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,3 +28,5 @@ class PrinterDevice uint64 Write16(uint32 addr, uint32 data) override; uint64 Peek8(uint32 addr) override; }; + +extern PrinterDevice *gPrinter;