Hello V At the moment I dont have Rulph's C3x book in front of me (C25 version wont do much good), but Im 99% sure that a value for LENGTH is not defined *before* attempting to use it. The first example below would cause an error, while the second works just fine. LABEL_1 .usect "MYUSECT_1",SIZE_1 ; SIZE_1 is not known yet. SIZE_1 .set 3 ; definition after (or by linker) will fail SIZE_2 .set 3 ; define *before* usage LABEL_2 .usect "MYUSECT_2",SIZE_2 ; SIZE_2 is known... this is OK Note: I know that Rulph wrote one of his C3x books (there are two) based on the C3x DSK so it is likely that if you are porting code between them some minor differences can creep in when comparing ASM30 to DSK3A, the DSK assembler. DSK3A is essentially a linkerless assembler that is designed to create simple code rapidly and with little fuss. Basically it generates an executable output rather than object code by knowing where to put code and data before an assembly directive is encountered. Not surprisingly it occasionally does a better job of forward resolving things. Strictly speaking I dont think a .usect size is really needed in the first pass of the assembler, so this should (in my opinion) still be resolvable. But thats the breaks of how COFF works. Best regards Keith Larson ================================ At 07:36 AM 12/5/03 -0000, you wrote: hi, i am a new member of this group. i want to ask something.I have Rulph Chassaing book abot TMS320C30. I have also program codes which is written in book by him. I am using TMS320C30 simulator and for compiling i am using "Codegen tools v5.10".I compile and run all of the programs up to now, but i encountered a problem in one asm program. I have appropriote cmd file.When i run program, i see these errors. C:\c3xtools>cl30 -sq -o2 LP11BF2.ASM -z -v0 LP11.ASM <lp11bf2.asm> XN .USECT "XN_BUFF",LENGTH ;BUFFER SIZE OF SAMPLES "lp11bf2.asm", line 10: AN IDENTIFIER IN THE EXPRESSION IS INVALID HN .USECT "HN_BUFF",LENGTH ;COEFF BUFFER SIZE IN RAM "lp11bf2.asm", line 11: AN IDENTIFIER IN THE EXPRESSION IS INVALID 2 Errors, No Warnings Errors in source - Assembler Aborted +-----------+ |Keith Larson | |Member Group Technical Staff | |Texas Instruments Incorporated | | | | 281-274-3288 | | | | www.micro.ti.com/~klarson | |-----------+ | TMS320C3x/C4x/VC33 Applications | | | | TMS320VC33 | | The lowest cost and lowest power 500 w/Mflop | | floating point DSP on the planet! | +-----------+ |