This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10213903403
/
os_kernel_lab
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
README添加实验一
x86-32
423A35C7
7 months ago
parent
5d5c59e74f
commit
3d58264759
2 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
README.md
BIN
assets/实验一演示.gif
+ 7
- 0
README.md
View File
@ -0,0 +1,7 @@
## 实验一
### 题目
利用uCore的中断机制,编程实现一个计时器( 秒表 ),可以实现正计时和倒计时。先选择计时模式,输入“A”为正计时,“B”为倒计时。若选择倒计时,则要先输入初始时间(秒数)。按“S”开始正(倒)计时,按“P”暂停正(倒)计时,按“C”继续正(倒)计时,按“E”停止正(倒)计时,暂停正(倒)计时或停止正(倒)计时时显示计时(剩余)时间值(秒数)。(时间精确到0.1秒)
### 效果
![](assets/实验一演示.gif)
### 原理
在trap.c文件中,在计时器中断(IRQ_OFFSET + IRQ_TIMER)和键盘中断(IRQ_OFFSET + IRQ_KBD)的部分添加状态转换、输入、输出。
BIN
assets/实验一演示.gif
View File
Before
After
Width:
295
| Height:
207
| Size:
60 KiB
Write
Preview
Loading…
Cancel
Save