📄 intr_i0.lst
字号:
* R8C/Tiny,M16C/60 SERIES ASSEMBLER * SOURCE LIST Sun Jul 27 12:50:26 2008 PAGE 001
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
1 ;""FILE COMMENT""**************************************************************
2 ; System Name : This program is only for education.
3 ; File Name : intr_i0.a30
4 ; Contents : Practice 8-A interrupt control -sample-
5 ; Model : OAKS16-LCD Board
6 ; CPU : M16C/60 Serials
7 ; Assembler : NC30WA(V.4.00 Release 2 - Entry)
8 ; Linker : (ln30) for M16C Family Version 4.00.01
9 ; OS : no use
10 ; Programer : RENESAS Semiconductor Training Center
11 ; Note : FOR OAKS16-M30620FCAFP(M16C/62 group,16MHz)
12 ;******************************************************************************
13 ; COPYRIGHT(C) 2003 RENESAS TECHNOLOGY CORPORATION ALL RIGHTS RESERVED
14 ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
15 ;******************************************************************************
16 ; History : ---
17 ;""FILE COMMENT END""**********************************************************
18
19
20 ;""SUBR COMMENT""**************************************************************
21 ; ID : ---
22 ; Subroutine name : int0
23 ; Function : control INT0 interrupt caused by depressing sw9 every time,
24 ; : and left-shift SingleLED to be turned on.
25 ; Input : NON
26 ; Output : NON
27 ; Called subroutine: _INTint0
28 ; Stack : 16bytes
29 ; Causion : this is an interrupt program.
30 ; : the start address of this program must be set in advance
31 ; : to interrupt vector table in file sect.inc.
32 ; History : ---
33 ;""SUBR COMMENT END""**********************************************************
34 ; .section program ; have the same section with C program
35
36 ; .glb int0 ; global declaration
37 ;int0:
38 ; rot.b #1,03E4H ; left-shift one bit of SingleLED (rotate)
39 ;int0_end:
40 ; reit
41
42
43 ;""SUBR COMMENT""**************************************************************
44 ; ID :
45 ; Subroutine name : _ei
46 ; Function : setting enable interrupt flag(俬)( enable interrupt).
47 ; Input : NON
48 ; Output : NON
49 ; Called subroutine : NON
50 ; Stack : 0bytes
51 ; Causion : NON
52 ; History : ---
53 ;""SUBR COMMENT END""**********************************************************
54 .section program ;
55 ;(Qustion)please write a function
56 .glb _ei ; global declaration
57 00000 _ei:
58 00000 EB64 fset I ; setting enable interrupt flag
59 00002 _ei_end:
60 00002 F3 rts
61
62
* R8C/Tiny,M16C/60 SERIES ASSEMBLER * SOURCE LIST Sun Jul 27 12:50:26 2008 PAGE 002
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4....*....5....*....6....*....7....*....8....*....9....*....0
63 ;""SUBR COMMENT""**************************************************************
64 ; ID : ---
65 ; Subroutine name : _di
66 ; Function : setting disable interrupt flag(俬)( disable interrupt).
67 ; Input : NON
68 ; Output : NON
69 ; Called subroutine : NON
70 ; Stack : 0bytes
71 ; Causion : NON
72 ; History : ---
73 ;""SUBR COMMENT END""**********************************************************
74 .section program ;
75 ;(Qustion)please write a function
76 .glb _di ; global declaration
77 00000 _di:
78 00000 EB65 fclr I ; clearing enable interrupt falg
79 00002 _di_end:
80 00002 F3 rts
81
82 .end
Information List
TOTAL ERROR(S) 00000
TOTAL WARNING(S) 00000
TOTAL LINE(S) 00082 LINES
Section List
Attr Size Name
CODE 0000003(00003H) program
CODE 0000003(00003H) program
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -