--- nono/vm/newsctlr.h 2026/04/29 17:05:29 1.1.1.4 +++ nono/vm/newsctlr.h 2026/04/29 17:05:43 1.1.1.5 @@ -22,6 +22,9 @@ class NewsCtlrDevice : public IODevice { using inherited = IODevice; + // システムタイマーの周期 + static const uint64 TIMER_PERIOD = 10_msec; + public: // LED 種別 static const uint LED_GREEN = 0x01; @@ -61,6 +64,12 @@ class NewsCtlrDevice : public IODevice bool timer_intr {}; bool timer_enable {}; + // システムタイマーが刻んている時刻。 + uint64 stime {}; + + // システムタイマーを実時間に同期する場合 true + bool sync_rt {}; + DipswDevice *dipsw {}; Event timer_event { this };