| Electronic Components Datasheet Search |
|
UM0144 Datasheet(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 Datasheet(HTML) 17 Page - STMicroelectronics |
|
17 / 92 page ![]() ST7 Assembler Linker 3 ST7 Assembler UM0144 17/92 As a short cut, labels may be declared as PUBLIC by preceding them with a '.' at their definition. If this is done the label name need not be given in a PUBLIC directive. For example, the following code fragment declares the label 'lab4' as PUBLIC automatically: 3.3.2 About opcodes The Opcode field may serve three different purposes. It may contain: ● The opcode mnemonic for an assembly instruction, ● The name of a directive, ● The name of a macro to be invoked. Opcodes must be separated from the preceding field (i.e. label, if there is one) by a space or a tab. A comprehensive Opcode description can be found in the ST7 Programming Manual. Macros are discussed in Section 3.5 on page 26. Directives are discussed in on page 48. 3.3.3 About operands Operands may be any of the following: ● Numbers and addresses, ● String and character constants, ● Program Counter references, ● Expressions. The following paragraphs explain how to use these types of operands. Number and address representation By default, the representation of numbers and addresses follows the MOTOROLA syntax. When you want to use hexadecimal number with instructions or labels, they must be preceded by $. When nothing is specified, the default base is decimal. For example: lab3 ld A,#0 ret .lab4 nop ret lab03 equ 10 ; decimal 10 lab04 equ $10 ; hexadecimal 10 ld A,$ffff ; long addressing mode ld A,#$cb ; immediate addressing mode ld A,#100 ; decimal representation |
|
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 |