| Electronic Components Datasheet Search |
|
UM0144 Datasheet(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 Datasheet(HTML) 13 Page - STMicroelectronics |
|
13 / 92 page ![]() ST7 Assembler Linker 3 ST7 Assembler UM0144 13/92 3 ST7 Assembler 3.1 Overview The ST7 Assembler program is a cross-assembler, meaning that it produces code for a target machine—an ST7 microprocessor—which is different from the host machine. The assembler turns your source code files into relocatable object modules ready for linking. During the process, it checks for many different types of errors. These errors are recorded in an ASCII file called cbe.err. (Note that the linker also writes to this file.) Error messages are explained in on page 78. To produce code ready for execution, you must run the assembler (ASM), the linker (LYN), and the object code formatter (OBSEND). 3.2 Source files Source program code is written in the ST7 Assembler language and is saved in an ASCII text file named source file. A source file has the extension .asm. It is made up of lines, each of which is terminated by a new line character. For a complete reference to the ST7 Assembler language, refer to the ST7 Programming Manual. 3.3 Assembly source code format The first line of an assembly source code file is reserved for specifying the *.tab file for the target processor. You cannot put other instructions or comments in this line. Use this line to specify the directory location of the *.tab file. If the directory is not specified, by default the Assembler searches first in the current directory, then in the directory where the Assembler’s executable is located. The '.tab' suffix may be left out—as the assembler only looks for this file type. For example, the first line of your source code might look like: c:\st7tools\asm\st7\ If the file st7.tab can't be found in the specified or default directories, then an error is produced and assembly is aborted. The rest of the source code lines have the following general format: [label[:]]<space>[opcode]<space>[operand]<space>[;comment] where <space> refers to either a SPACE ($20) or a TAB ($09) character. All four fields may be left blank, but the <space> fields are mandatory unless: ● the whole line is blank, or ● the line begins as a comment, or ● the line ends before the remaining fields. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |