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

4.104.114.84.95
Last change on this file since d2632274 was 98e4ebf, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 8, 1997 at 3:45:54 PM

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 1.0 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-1997.
12 *  On-Line Applications Research Corporation (OAR).
13 *  Copyright assigned to U.S. Government, 1994.
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.OARcorp.com/rtems/license.html.
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.