Source Listings
3-33
Assembler Description
Example 3–4. Assembler Listing
(a) Mnemonic 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
SSBX
OVM
; disable
oflow
9
LD #0, DP
; dp = 0
10
LD #7, ARP
; arp = ar7
11
LD #037h, A
; acc = 03fh
12
RSBX
INTM
; enable
ints
13
.endm
14
*******************************************
15
* Reset and interrupt vectors *
16
*******************************************
17
000000
.sect
”reset”
18
000000 F073
RESET:
B
init
000001 0008+
19
000002 F073
INT0:
B
ISR0
000003 0000!
20
000004 F073
INT1:
B
ISR1
000005 0000!
21
000006 F073
INT2:
B
ISR2
000007 0000!
22
23
*
24
000000
.sect
”ints”
25
000000 F073
TINT
B
time
000001 0000!
26
000002 F073
RINT
B rcv
000003 0000!
27
000004 F073
XINT
B xmt
000005 0000!
28
000006 F073
USER
B
proc
000007 0000!
29
*******************************************
30
* Initialize processor. *
31
*******************************************
32
000008
init:
initmac
1
* initialize macro
1
000008 F7B9
SSBX OVM
; disable oflow
1
000009 EA00
LD #0, DP
; dp = 0
1
00000a F4A7
LD #7, ARP
; arp = ar7
1
00000b E837
LD #037h, A
; acc = 03fh
1
00000c F6BB
RSBX INTM
; 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: ......