?? 8253.cpp
字號:
/* 8253.cpp
hd 97413084 YGM
1999 Novmber
*/
#include "iostream.h"
#include "interfac.h"
P8253 port_8253;
int value;
void main(void)
{
cout << "set timer0 to mode 3." << endl;
port_8253.SetCtrl(0x16);
cout << "Enter a number for write to timer0:";
cin >> value;
cout <<"Write " << value << "to timer0." << endl;
port_8253.WritePort(timer0,value);
cout << "set timer1 to mode 2." << endl;
port_8253.SetCtrl(0x52);
cout << "Enter a number for write to timer1:";
cin >> value;
cout <<"Write " << value << "to timer1." << endl;
port_8253.WritePort(timer1,value);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -