watch.cc.svn-base
来自「德国Erlangen大学教学操作系统源码。」· SVN-BASE 代码 · 共 44 行
SVN-BASE
44 行
#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 + =
减小字号Ctrl + -
显示快捷键?