📄 watch.cc.svn-base
字号:
#include "device/watch.h"#include "device/cgastr.h"extern CGA_Stream kout;Watch::Watch() : PIT(PIT::PIT_Attrib::max_interval){}Watch::Watch(int us) : PIT(us){}Watch::Watch(Watch &timer){}Watch::~Watch(){}void Watch::windup(){ plugbox.assign(Plugbox::device_number::timer, *this); pic.allow(PIC::int_device::timer);}bool Watch::prologue(){ return true;}void Watch::epilogue(){ static bool i; *(((char*)0xb8000)+80) = i?'-':'|'; *(((char*)0xb8000)+81) = 4; i = !i; bellringer.check(); scheduler.Scheduler::resume();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -