Any hardware or registers that need to be initialized should also be planned out. There are a few things that you need to know, however, about the ADSP-2100 family assembly language. The following is an example of a multifunction instruction for the ADSP21xx processors. The contents of the input registers MX1 and MY1 are multiplied together and added to the contents of the multiplier result register. The I registers are used to hold addresses and the M registers hold the value used to modify the address after the fetch.
All instructions are also conditional.
Declaration of any variables, arrays or constants as well as the specification of any include files or ports are made in the front of the program using the assembler directives. After you have finished crating a text file which contains the assembly language program, you can run the assembler with the following command. The assembler reates the appropriate object code file or files. There are a number of assembler switches that can be optionally used for functions like list file creation, case sensitivity and object file naming. The assembler creates an object file with the extension .obj on the file name.