4.104.114.84.95
Line | |
---|
1 | # timer_isr() |
---|
2 | # |
---|
3 | # This routine provides the ISR for the timer. The timer is set up |
---|
4 | # to generate an interrupt at maximum intervals. |
---|
5 | # |
---|
6 | # Input parameters: NONE |
---|
7 | # |
---|
8 | # Output parameters: NONE |
---|
9 | # |
---|
10 | # COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
11 | # On-Line Applications Research Corporation (OAR). |
---|
12 | # All rights assigned to U.S. Government, 1994. |
---|
13 | # |
---|
14 | # This material may be reproduced by or for the U.S. Government pursuant |
---|
15 | # to the copyright license under the clause at DFARS 252.227-7013. This |
---|
16 | # notice must appear in all copies of this file and its derivatives. |
---|
17 | # |
---|
18 | # $Id$ |
---|
19 | # |
---|
20 | |
---|
21 | #include "asm.h" |
---|
22 | |
---|
23 | BEGIN_CODE |
---|
24 | |
---|
25 | EXTERN(_Ttimer_val) |
---|
26 | |
---|
27 | SYM (_timerisr): |
---|
28 | addl $250,_Ttimer_val # another 250 microseconds |
---|
29 | push edx |
---|
30 | push eax |
---|
31 | movw $0x20,dx |
---|
32 | mov edx,eax |
---|
33 | outb al,(dx) # touch interrupt controller |
---|
34 | pop eax |
---|
35 | pop edx |
---|
36 | iret |
---|
37 | |
---|
38 | END_CODE |
---|
39 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.