TMS320C5x DSP STARTER KIT USER'S GUIDE

TMS320C5x DSP STARTER KIT USER'S GUIDE TMS320C5x DSP STARTER KIT USER'S GUIDE

13.07.2015 Views

.endDirectives ReferenceSyntax.endDescriptionExampleThe .end directive is an optional directive that terminates assembly. It shouldbe the last source statement of a program. The assembler ignores any sourcestatements that follow an .end directive.This example shows how the .end directive terminates assembly.Source file:.ps 0a00h.entrySTART NOPNOPNOPBSTART.endLAB ADD #5sub #1BLABListing file:00001 –––– 0a00 .ps 0a00h00002 –––– 0000 .entry>>>>> ENTRY POINT SET TO 0a0000003 0a00 8b00 START NOP00004 0a01 8b00 NOP00005 0a02 8b00 NOP00006 0a03 7980 B START0a04 0a0000007 –––– –––– .end>>>>> LINE:7 .END ENCOUNTERED>>>>> FINISHED READING ALL FILES>>>>> ASSEMBLY COMPLETE: ERRORS:0 WARNINGS:05-16

Directives Reference.entrySyntax.entry [value]DescriptionExampleThe .entry directive tells the assembler the address of the program counterwhen a file is loaded. If you do not use the value parameter, the current programmemory address, determined by the .ps or .text section, becomes the startingaddress. If you have more than one .entry directive in your file, then the last.entry directive encountered becomes the starting address of your code.Here is an example of the .entry directive..ps 0a00hLOOP: MAR *+,AR1 ;An infinite loopB LOOP,*+,AR0 ;.entry;Start programMAR *,AR0LAR AR0,#0LAR AR1,#0B LOOP ;call the routineAssembler Directives5-17

Directives Reference.entrySyntax.entry [value]DescriptionExampleThe .entry directive tells the assembler the address of the program counterwhen a file is loaded. If you do not use the value parameter, the current programmemory address, determined by the .ps or .text section, becomes the startingaddress. If you have more than one .entry directive in your file, then the last.entry directive encountered becomes the starting address of your code.Here is an example of the .entry directive..ps 0a00hLOOP: MAR *+,AR1 ;An infinite loopB LOOP,*+,AR0 ;.entry;Start programMAR *,AR0LAR AR0,#0LAR AR1,#0B LOOP ;call the routineAssembler Directives5-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!