我的程序如下
;----------------------------
; version: 1.0
; data: july-11-1999
; authors: ren guo chun
; comment: original created
; cpu type: ti_tms32054xx
;-------------------------------
;---------------------------
; compiler: tms320c54x assembler
; version: 1.02(pc)
; activation: asm500-s fir.asm
; include files:
.mmregs
;-------------------------------------
;---------------------------------
; functional description:
; golay decode
;--------------------------------
;-------------------------------
; activation
; activation example:
; call golay_decode
;-----------------------
;-------------------------
; External Data
.ref CRAM2
.ref CRAM3
.ref dec_tab
;--------------------------------
;--------------------------------
; temporary data:
; dp=4
; cram0
; cram1
; cram2
; cram3
; cram4
; cram5
; cram6
; cram7
;----------------------------------
;-------------------------------
; inut data:
; CRAM2 12bit data
; cram3 12bit data
; data format: 12bit data
;----------------------------------
;-----------------------------------
; output data:
; cram6 12bit data
; data format: 12bit data
;---------------------------------
gray_decode
LD CRAM3,A
STL A,CRAM5 ;load 12bit data
LD CRAM2,A
STL A,CRAM6 ;load 12bit data
CALL gray_decode ;do gray code
LD CRAM2,A
XOR CRAM5,A ;xor
ADD #dec_tab,A
READA CRAM2 ;read error table
LD CRAM2,A
XOR CRAM6,A ;correct error
AND #0FFH,A
STL A,CRAM6 ;save 12bit data
RET
;for gre_cod gen
gen_code_tab:
.word 0AE3H,0F92H,0D2BH,0C76H,0CD9H,066DH
.word 0337H,0B78H,05BCH,02DEH,0B8DH,05C7H
.end
程序照书抄的应该没有问题啊,可是编译后"decode.asm", ERROR! at EOF: [E0300] The following symbols are undefined:
1 Assembly Error, No Assembly Warnings
CRAM5
CRAM6
Errors in Source - Assembler Aborted
Build Complete,
2 Errors, 0 Warnings, 0 Remarks.
大家帮帮忙啊,毕设,紧张死了,不明白呢、
爱莫能助!
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |