DataSheet.es    


PDF UM0144 Data sheet ( Hoja de datos )

Número de pieza UM0144
Descripción ST7 Assembler Linker
Fabricantes STMicroelectronics 
Logotipo STMicroelectronics Logotipo



Hay una vista previa y un enlace de descarga de UM0144 (archivo pdf) en la parte inferior de esta página.


Total 30 Páginas

No Preview Available ! UM0144 Hoja de datos, Descripción, Manual

www.DataSShTeeMt4Ui.ccormolectronics
ST7 Assembler
Linker
UM0144
User manual
Rev 2
June 2005

1 page




UM0144 pdf
www.DataSShTee7t4AU.scosmembler Linker
Contents
1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 ST7 Addressing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 Overview of ST7 addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 General instruction syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 Short and long addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 Inherent addressing mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.5 Immediate operands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.6 Direct and indirect modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.7 Indexed modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
2.8 Relative mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
2.9 High, low addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3 ST7 Assembler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Source files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.3 Assembly source code format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4 Segmentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.5 Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.6 Conditional assembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.7 Running the assembler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4 Linker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.1 What the linker does . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.2 Invoking the linker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.3 Command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.4 Linking in detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.5 The linker in more detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5 OBSEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.1 What OBSEND does for you . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.2 Invoking OBSEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
UM0144
5/92

5 Page





UM0144 arduino
www.DataSShTee7t4AU.scosmembler Linker
2 ST7 Addressing Modes
2.7 Indexed modes
The ST7 hardware supports four types of indexed mode:
indexed without offset,
indexed with a 8-bit unsigned offset (range [0 ,255]),
indexed with a 16-bit offset,
The source coding syntax is:
(X) or (Y) for no-offset indexing.
(offset,X) or (offset,Y)for indexed with offset.
Some instructions (such as ld A or add) support the first three types of indexed mode. Some
ST7 instructions (such as inc) only support the first two types (i.e. indexed without offset and
indexed with 8-bit unsigned offset). Examples:
ld A,(X)
ld A,(0,X)
ld A,(127,X)
ld A,(259,X)
; no-offset mode
; 8-bit offset mode
; 8-bit offset mode
; 16-bit offset mode
2.8 Relative mode
This addressing mode is used to modify the Program Counter (PC) register value by adding an
8-bit signed offset to it (i.e. in the range -128 to +127). The relative addressing mode is made
up of two sub-modes:
relative (direct)—where the offset is following the op-code.
relative (indirect)—where the offset is defined in memory, whose address follows the op-
code.
Relative mode is used by the instructions JRxx, CALLR, and BTJx.
At source coding level, the target label is specified (and the assembler computes the
displacement).
2.9 High, low addressing modes
In some instances, it may be necessary to access the highest part of an address (8 highest
bits) or the lowest part of an address (8 lowest bits) as well. For this feature, the syntax is the
following one:
<expression>
where expression is:
symbol.H (highest part) , or
symbol.L (lowest part).
UM0144
11/92

11 Page







PáginasTotal 30 Páginas
PDF Descargar[ Datasheet UM0144.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
UM0144ST7 Assembler LinkerSTMicroelectronics
STMicroelectronics

Número de piezaDescripciónFabricantes
SLA6805M

High Voltage 3 phase Motor Driver IC.

Sanken
Sanken
SDC1742

12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters.

Analog Devices
Analog Devices


DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares,
permitiéndote verlos en linea o descargarlos en PDF.


DataSheet.es    |   2020   |  Privacy Policy  |  Contacto  |  Buscar