BTLCS42.TXT

Beschreibung zum CALM Assembler fr TLCS42

Gewhlte Adressierung
   Bei Sprungbefehlen wird, wo dies mglich ist, die Adressierung innerhalb
einer Seite (64 Bytes) gewhlt. Ansonsten wird die 10-Bit-Adressierung
gewhlt.

Automatische Optimisierung des Befehlscodes
   Beim Sprungbefehlen sind folgende Codeoptimisierungen mglich:

   JUMP,GS !Adresse      [ 1 Byte ]
   JUMP,GS 10^Adresse    [ 2 Bytes ]

Der erste Fall wird automatisch kodiert, wenn der CALM-Assembler im ersten
Durchlauf den Wert der Adresse kennt und diese sich innerhalb der aktuellen
Seite befindet.
   Alle anderen Sprungbefehle sind zusammengesetzte Befehle:

   JUMP    Adresse             JUMP,GS Next
                         Next: JUMP,GS Adresse
   JUMP,CS Adresse             MOVE    C,G
                               JUMP,GS Adresse
   JUMP,CC Adresse             MOVE    C,G
                               JUMP,GS Next
                               JUMP,GS Adresse
                         Next:

   Mit den Adressenangaben (!, 10^, usw.) kann man dem CALM Assembler
helfen, den kompaktesten Code zu generieren.

Bemerkungen
   Beachten Sie bitte, dass diese Familie verschiedene Versionen besitzt,
die sich hardwaremssig unterscheiden.

Unterschiede zum Herstellerassembler
   Die unterschiedlichen Bezeichnungen der Operationscodes sind in den
Befehlslisten angegeben.
   Schreibweise        CALM                   Toshiba
   der                 #Wert                  #Wert
   Adressierung:       Adresse                Adresse
                       {Register}             @Register

   Pseudobefehle:      .BLK.8                 RES
                       .END                   END
                       .LOC                   ORG
                       .8                     DATA

Description du TLCS42 pour l'assembleur CALM

Adressage choisi
   Pour les instructions de saut, l'adressage de page (64 octets) est choisi
si c'est possible. Sinon, l'adressage 10 bits est choisi.

Optimisation automatique des codes machine
   Pour les instructions de saut, les optimisations de code possibles sont:

   JUMP,GS !adresse      [ 1 octet ]
   JUMP,GS 10^adresse    [ 2 octets ]

Le premier cas est cod automatiquement si l'assembleur CALM connat
la valeur de l'adresse  la premire passe et si l'adresse se trouve
dans la page actuelle.
   Les autres instructions de saut sont composes:

   JUMP    adresse             JUMP,GS Next
                         Next: JUMP,GS adresse
   JUMP,CS adresse             MOVE    C,G
                               JUMP,GS adresse
   JUMP,CC adresse             MOVE    C,G
                               JUMP,GS Next
                               JUMP,GS adresse
                         Next:

   Par des indicateurs d'adresses (!, 10^, etc), on peut aider l'assembleur
 gnrer le code le plus compact.

Remarques
   Notez s.v.p. que cette famille possde diffrentes versions, qui se
diffrencient du point de vue matriel.

Diffrences par rapport  l'assembleur du fabricant
   Les diffrents noms des codes opratoires sont indiqus dans la
carte de rfrence.
   notation de         CALM                   Toshiba
   l'adressage:        #valeur                valeur
                       adresse                adresse
                       {registre}             @registre

   pseudo-             .BLK.8                 RES
   instructions:       .END                   END
                       .LOC                   ORG
                       .8                     DATA

CALM assembler description for the TLCS42

Chosen addressing mode
   The CALM assembler chooses for the jump instructions the page (= 64 bytes)
addressing, if it is possible. Otherwise, the 10 bit addressing mode is
chosen.

Automatic optimisation of the instruction codes
   The following code optimisations are possible for jump instructions:

   JUMP,GS !address      [ 1 byte ]
   JUMP,GS 10^address    [ 2 bytes ]

The first case is automatically coded, when the CALM assembler knows the
value of the address in the first pass and when the address is within the
actual page.
   The other jump instructions are composed:

   JUMP    address             JUMP,GS Next
                         Next: JUMP,GS address
   JUMP,CS address             MOVE    C,G
                               JUMP,GS address
   JUMP,CC address             MOVE    C,G
                               JUMP,GS Next
                               JUMP,GS address
                          Next:

   With the address specifiers (!, 10^, etc.) you can help the CALM
assembler to generate the compactest code.

Remarks
   Please note, that this processor family has many versions, which differ
by the built-in hardware parts.

Differences to the producer assembler
   The different notations of the operation codes are given in the CALM
reference card.
   notation of the     CALM                   Toshiba
   addressing          #value                 #value
   mode:               address                address
                       {register}             @register

   pseudo-             .BLK.8                 RES
   instructions:       .END                   END
                       .LOC                   ORG
                       .8                     DATA
