⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intr_i0.lst

📁 一个瑞萨单片机的程序。。。供大家学习用。。。。。。。。。。。。。。。。。。
💻 LST
字号:
* R8C/Tiny SERIES ASSEMBLER *   SOURCE LIST       Fri Oct 15 10:29:31 2004  PAGE 001

  SEQ.  LOC.   OBJ.              0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4

     1                                  ;""FILE COMMENT""**************************************************************
     2                                  ;  System Name : for eduction (NO TRANSFERRING)
     3                                  ;  File Name   : intr_i0.a30
     4                                  ;  Contents    : interrupt processing
     5                                  ;  Model       : for OAKS8-LCD Board
     6                                  ;  CPU         : R8C/Tiny series
     7                                  ;  Compiler    : NC30WA	V.5.30 Release 1
     8                                  ;  OS          : not be used
     9                                  ;  Programer   : RENESAS Semiconductor Training Center
    10                                  ;  Note        : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
    11                                  ;******************************************************************************
    12                                  ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
    13                                  ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
    14                                  ;******************************************************************************
    15                                  ; History      : ---
    16                                  ;""FILE COMMENT END""*********************************************************
    17                                  
    18                                  ;fill the blank (___) below with suitable word,丄
    19                                  ;complete the program
    20                                  
    21                                  ;""SUBR COMMENT""**************************************************************
    22                                  ; ID              : ---
    23                                  ; subroutine name : TX
    24                                  ; function        : run with the timer X interrupt request
    25                                  ;                 : control timer X interrupt                                  
    26                                  ; input           : none
    27                                  ; output          : none
    28                                  ; subroutine used : _INTtx
    29                                  ; stack           : 16 bytes
    30                                  ; notice          : interrupt program
    31                                  ;                 : it is necessary to register the interrupt program address
    32                                  ;                 : in interrupt vector table in section definition file
    33                                  ;                 : (sect_i0.inc) that is included in start up program(startup_i0.a30)
    34                                  ;                 ;it is possible to occur chattering
    35                                  ; History         : ---
    36                                  ;""SUBR COMMENT END""**********************************************************
    37                                          .section        program         ; same section as C program
    38                                          .glb            TimerX         	; define interrupt program
    39                                                                          ; label globally
    40                                          .glb            _INTtx			; define timer X interrupt function globally
    41                                  ;
    42                                  ;(question)
    43                                  ;______:								; label to show
    44                                  ;										; interrupt program 
    45                                  ;										; set this label
    46                                  ;										; to interrupt vecto
    47  00000                           TimerX:									; label to show
    48                                  										; interrupt program 
    49                                  										; set this label
    50                                  										; to interrupt vecto
    51                                  ;
    52                                  ;(question)
    53                                  ;	_____   __,__,__,__,__,__,__		; save register value used in interrupt
    54                                  ;										; program in stack
    55  00000  ECFD                     	pushm   R0,R1,R2,R3,A0,A1,FB		; save register value used in interrupt
    56                                                                          ; program in stack
    57                                  ;
    58                                  ;(question)
    59                                  ;	___		______						; call INTtx interrupt funct
    60  00002  FD000000r             A  	jsr		_INTtx						; call INTtx interrupt funct
    61                                  ;
    62                                  ;(question)
* R8C/Tiny SERIES ASSEMBLER *   SOURCE LIST       Fri Oct 15 10:29:31 2004  PAGE 002

  SEQ.  LOC.   OBJ.              0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4

    63                                  ;	____    __,__,__,__,__,__,__ 		; revers register value from stack
    64                                  ;										; before return to i
    65  00006  EDBF                     	popm    R0,R1,R2,R3,A0,A1,FB		; revers register value from stack
    66                                                                          ; before return to interrupted program
    67  00008                           TimerX_end:
    68                                  ;(question)
    69                                  ;	____								; turn back to interrupted p
    70  00008  FB                       	reit								; turn back to interrupted p
    71                                  
    72                                  
    73                                  ;""SUBR COMMENT""**************************************************************
    74                                  ; ID              : ---
    75                                  ; subroutine name : _ei
    76                                  ; function        : set interrupt permission flag(I flag)(interrupt permission)
    77                                  ; input           : none 
    78                                  ; output          : none
    79                                  ; subroutine used : none
    80                                  ; stack           : 0 byte
    81                                  ; notice          : none
    82                                  ; History         : ---
    83                                  ;""SUBR COMMENT END""**********************************************************
    84                                          .section        program         ; same section as C program
    85                                          .glb			_ei				; define globally
    86  00000                           _ei:
    87                                  ;(question)
    88                                  ;	____    _ 							; set interrupt permission f
    89  00000  EB64                     	fset    I							; set interrupt permission f
    90  00002                           _ei_end:
    91  00002  F3                       	rts									; return from functi
    92                                  
    93                                  
    94                                  ;""SUBR COMMENT""**************************************************************
    95                                  ; ID              : ---
    96                                  ; subroutine name : _di
    97                                  ; function        : clear interrupt permission flag(I flag)(interrupt deny)
    98                                  ; input           : none
    99                                  ; output          : none
   100                                  ; subroutine used : none
   101                                  ; stack           : 0 byte
   102                                  ; notice          : none
   103                                  ; History         : ---
   104                                  ;""SUBR COMMENT END""**********************************************************
   105                                          .section        program         ; same section as C program
   106                                          .glb			_di 			; define globally
   107  00000                           _di:
   108                                  ;(question)
   109                                  ;	____    _							; set interrupt permission f
   110  00000  EB65                     	fclr    I							; set interrupt permission f
   111  00002                           _di_end:
   112  00002  F3                       	rts									; return from functi
   113                                  
   114                                  
   115                                          .end

Information List

TOTAL ERROR(S)    00000
TOTAL WARNING(S)  00000
TOTAL LINE(S)     00115   LINES

Section List

Attr        Size          Name
CODE     0000009(00009H)  program
CODE     0000003(00003H)  program
CODE     0000003(00003H)  program

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -