BTMS320.TXT

Beschreibung zum CALM-Assembler fr TMS32010/TMS32020/TMS32025

Gewhlte Adressierung
   Nur die absolute Adressierung ist mglich.

Automatische Optimisierung des Befehlscodes
   Folgende Optimisierungen sind mglich (Adressenangaben sind nicht
erforderlich; nur TMS32020/TMS32025):

    MOVE    #8^Wert,ARi  [ 2 Bytes ]
    MOVE    #16^Wert,ARi [ 4 Bytes ]

Der erste Fall wird automatisch kodiert, wenn der CALM-Assembler den Wert
im ersten Durchlauf kennt und der Wert innerhalb 0..+255 liegt.

Bemerkungen
   Achtung: diese Prozessorfamilie hat 16 Bits (2 Bytes) pro Adresse! Die
Pseudobefehle   .8, .BLK.8, .DATA.8 und .FILL.8   sind nicht erlaubt. Und
die Pseudobefehle   .ASCII/.ASCIZ/.STRING   werden auf ein Vielfaches von 2
mit <NULL> aufgefllt.
   Fehlt bei   [DP]+Abstand   der Abstandswert (+Abstand), setzt der CALM-
Assembler automatisch Null ein.
   Das TMS320.PRO-Modul wird wie folgt verwendet:

   TMS32010:             TMS32020:             TMS32025:

   .PROC    TMS320       .PROC    TMS320       .PROC    TMS320
   .PROCSET TMS32010     .PROCSET TMS32020     .PROCSET TMS32025

Unterschiede zum Herstellerassembler
   Die unterschiedlichen Bezeichnungen der Operationscodes sind in den
Befehlslisten angegeben.
   Schreibweise    CALM                         Texas Instruments
   der             #Wert                        Wert
   Adressierung:   Adresse                      Adresse
                   [DP]+Abstand                 Abstand
                   {{ARP}}                      *
                   {{ARP=Y=}}                   *,Y
                   {{ARP}-}                     *-
                   {{ARP=Y=}-}                  *-,Y
                   {{ARP}+}                     *+
                   {{ARP=Y=}+}                  *+,Y
                   {{ARP}-{AR0}-}               *0-
                   {{ARP=Y=}-{AR0}-}            *0-,Y
                   {{ARP}+{AR0}+}               *0+
                   {{ARP=Y=}+{AR0}+}            *0+,Y
                   {{ARP}BR-{AR0}-}             *BR0-
                   {{ARP=Y=}BR-{AR0}-}          *BR0-,Y
                   {{ARP}BR+{AR0}+}             *BR0+
                   {{ARP=Y=}BR+{AR0}+}          *BR0+,Y

   Pseudobefehle:  .ASCII                       TEXT
                   .BLK.16                      BSS
                   .DATA.16                     DATA
                   .END                         END
                   .INS                         INCLUDE
                   .LIST/.ENDLIST               LIST/UNL
                   .LOC                         AORG
                   .TITLE                       TITL

Description du TMS32010/TMS32020/TMS32025 pour l'assembleur CALM

Adressage choisi
   Seulement l'adressage absolu est possible.

Optimisation automatique du code machine
   Les optimisations possibles sont (les indicateurs d'adresses ne sont pas
ncessaire; seulement pour TMS32020/TMS32025):

    MOVE    #8^valeur,ARi  [ 2 octets ]
    MOVE    #16^valeur,ARi [ 4 octets ]

Le premier cas est cod automatiquement si l'assembleur CALM connat la
valeur  la premire passe et si la valeur se trouve dans la gamme 0..+255.

Remarques
   Attention: cette famille de processeurs a 16 bits (2 octets) par adresse!
Les pseudo-instructions  .8, .BLK.8, .DATA.8 et .FILL.8  ne sont pas permises.
Et les pseudo-instructions .ASCII/.ASCIZ/.STRING sont ajustes par des <NULL>
 un multiple de 2.
   Si la valeur de dplacement (+dpl) dans   [DP]+dpl  manque, l'assembleur
CALM met automatiquement la valeur nulle.
   Le module TMS320.PRO est utilis comme suit:

   TMS32010:             TMS32020:             TMS32025:

   .PROC    TMS320       .PROC    TMS320       .PROC    TMS320
   .PROCSET TMS32010     .PROCSET TMS32020     .PROCSET TMS32025

Diffrences par rapport  l'assembleur du fabricant
   Les diffrents noms des codes opratoires sont indiqus dans la
carte de rfrence.
   notation de     CALM                         Texas Instruments
   l'adressage:    #valeur                      valeur
                   adresse                      adresse
                   [DP]+dpl                    dpl
                   {{ARP}}                      *
                   {{ARP=Y=}}                   *,Y
                   {{ARP}-}                     *-
                   {{ARP=Y=}-}                  *-,Y
                   {{ARP}+}                     *+
                   {{ARP=Y=}+}                  *+,Y
                   {{ARP}-{AR0}-}               *0-
                   {{ARP=Y=}-{AR0}-}            *0-,Y
                   {{ARP}+{AR0}+}               *0+
                   {{ARP=Y=}+{AR0}+}            *0+,Y
                   {{ARP}BR-{AR0}-}             *BR0-
                   {{ARP=Y=}BR-{AR0}-}          *BR0-,Y
                   {{ARP}BR+{AR0}+}             *BR0+
                   {{ARP=Y=}BR+{AR0}+}          *BR0+,Y

   pseudo-         .ASCII                       TEXT
   instructions:   .BLK.16                      BSS
                   .DATA.16                     DATA
                   .END                         END
                   .INS                         INCLUDE
                   .LIST/.ENDLIST               LIST/UNL
                   .LOC                         AORG
                   .TITLE                       TITL

CALM assembler description for the TMS32010/TMS32020/TMS32025

Chosen addressing mode
   Only the absolute addressing mode is possible.

Automatic optimisation of the instruction codes
   The following optimisations are possible (address specifiers are not
necessary; only TMS32020/TMS32025):

    MOVE    #8^value,ARi  [ 2 bytes ]
    MOVE    #16^value,ARi [ 4 bytes ]

The first case is automatically coded, when the CALM assembler knows the
value in the first pass and when the value is within the limits 0..+255.

Remarks
   Attention: this processor family has 16 bits (2 bytes) per address! The
pseudo-instructions   .8, .BLK.8, .DATA.8 and .FILL.8   are not allowed. And
the pseudo-instructions   .ASCII/.ASCIZ/.STRING   are filled with <NULL> to a
multiple of 2.
   If the offset in   [DP]+offset   is absent, the CALM assembler takes
automatically the value zero.
   The modul TMS320.PRO is used as follows:

   TMS32010:             TMS32020:             TMS32025:

   .PROC    TMS320       .PROC    TMS320       .PROC    TMS320
   .PROCSET TMS32010     .PROCSET TMS32020     .PROCSET TMS32025

Differences to the producer assembler
   The different notations of the operation codes are given in the CALM
reference card.
   notation        CALM                         Texas Instruments
   of the          #value                       #value
   addressing      address                      address
   modes:          [DP]+offset                  offset
                   {{ARP}}                      *
                   {{ARP=Y=}}                   *,Y
                   {{ARP}-}                     *-
                   {{ARP=Y=}-}                  *-,Y
                   {{ARP}+}                     *+
                   {{ARP=Y=}+}                  *+,Y
                   {{ARP}-{AR0}-}               *0-
                   {{ARP=Y=}-{AR0}-}            *0-,Y
                   {{ARP}+{AR0}+}               *0+
                   {{ARP=Y=}+{AR0}+}            *0+,Y
                   {{ARP}BR-{AR0}-}             *BR0-
                   {{ARP=Y=}BR-{AR0}-}          *BR0-,Y
                   {{ARP}BR+{AR0}+}             *BR0+
                   {{ARP=Y=}BR+{AR0}+}          *BR0+,Y

   pseudo-         .ASCII                       TEXT
   instructions:   .BLK.16                      BSS
                   .DATA.16                     DATA
                   .END                         END
                   .INS                         INCLUDE
                   .LIST/.ENDLIST               LIST/UNL
                   .LOC                         AORG
                   .TITLE                       TITL

