source: rtems/c/src/lib/libbsp/m68k/mvme136/timer/timerisr.s @ 497428a2

4.104.114.84.95
Last change on this file since 497428a2 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#  timer_isr()
2#
3#  This routine provides the ISR for the Z8036 timer on the MVME136
4#  board.   The timer is set up to generate an interrupt at maximum
5#  intervals.
6#
7#  Input parameters:  NONE
8#
9#  Output parameters:  NONE
10#
11#  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
12#  On-Line Applications Research Corporation (OAR).
13#  All rights assigned to U.S. Government, 1994.
14#
15#  This material may be reproduced by or for the U.S. Government pursuant
16#  to the copyright license under the clause at DFARS 252.227-7013.  This
17#  notice must appear in all copies of this file and its derivatives.
18#
19#  $Id$
20#
21
22#include "asm.h"
23
24BEGIN_CODE
25
26.set CT1_CMD_STATUS,  0xfffb000a         | port A
27.set RELOAD,          0x24               | clr IP & IUS,allow countdown
28
29        PUBLIC (timerisr)
30SYM (timerisr):
31        movl    a0,a7@-                  | save a0
32        movl    #CT1_CMD_STATUS,a0       | a0 = addr of cmd status reg
33        movb    #RELOAD,a0@              | reload countdown
34        addql   #1, SYM (Ttimer_val)     | increment timer value
35        movl    a7@+,a0                  | save a0
36        rte
37
38END_CODE
39END
Note: See TracBrowser for help on using the repository browser.