Source Listings
3-34
Example 3–4.Assembler Listing (Continued)
(b) Algebraic example
Field 1
Field 2 Field 3
Field 4
1
.global RESET, INT0, INT1, INT2
2
.global TINT, RINT, XINT, USER
3
.global ISR0, ISR1, ISR2
4
.global time, rcv, xmt, proc
5
6
initmac .macro
7
* initialize macro
8
OVM
=
1
; disable
oflow
9
DP
=
#0
; dp
=
0
10
ARP = #7
; arp = ar7
11
A = #037h
; acc = 03fh
12
INTM = 0
; enable ints
13
.endm
14
*******************************************
15
* Reset and interrupt vectors *
16
*******************************************
17
000000
.sect
”reset”
18
000000 F073
RESET:
goto init
000001 0008+
19
000002 F073
INT0:
goto ISR0
000003 0000!
20
000004 F073
INT1:
goto ISR1
000005 0000!
21
000006 F073
INT2:
goto ISR2
000007 0000!
22
23
*
24
000000
.sect
”ints”
25
000000 F073
TINT
goto time
000001 0000!
26
000002 F073
RINT
goto rcv
000003 0000!
27
000004 F073
XINT
goto xmt
000005 0000!
28
000006 F073
USER
goto proc
000007 0000!
29
*******************************************
30
* Initialize processor. *
31
*******************************************
32
000008
init:
initmac
1
* initialize macro
1
000008 F7B9
OVM = 1
; disable oflow
1
000009 EA00
DP = #0
; dp = 0
1
00000a F4A7
ARP = #7
; arp = ar7
1
00000b E837
A = #037h
; acc = 03fh
1
00000c F6BB
INTM = 0
; enable ints
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......