BM6800.TXT

Beschreibung zum CALM Assembler fr 6800/6801/6803/6303

Gewhlte Adressierung
   Bei Sprungbefehlen wird, wo dies mglich ist, die relative 8 Bit
Adressierung gewhlt. Ansonsten wird die absolute Adressierung
gewhlt. Diese kann bei einigen Befehlen eine 8 (Seite 0) oder 16 Bit
Adresse sein.

Automatische Optimisierung des Befehlscodes
   Beim Befehl JUMP sind folgende Codeoptimisierungen mglich:

    JUMP    R8^Adresse  [ 2 Bytes ]
    JUMP    16^Adresse  [ 3 Bytes ]

Der CALM Assembler whlt die relative Adressierung, wenn die Adresse
bekannt und innerhalb der Grenzen einer relativen 8 Bit Adressierung liegt.
Und beim Befehl CALL:

    CALL    R8^Adresse  [ 2 Bytes ]
    CALL    8^Adresse   [ 2 Bytes ] (nicht bei M6800)
    CALL    16^Adresse  [ 3 Bytes ]

Ist die Adresse bekannt, so versucht der CALM Assembler immer zuerst die
relative Adressierung. Danach wird die absolute 8 Bit Adressierung getestet.
   Bei den Operanden sind ebenfalls Optimisierungen mglich:

    MOVE    8^Adresse,A [ 2 Bytes ]
    MOVE    16^Adresse,A[ 3 Bytes ]

Der erste Fall wird automatisch kodiert, wenn der CALM Assembler im ersten
Durchlauf den Wert der Adresse kennt und innerhalb eines 8 Bit Wertes liegt.
   Mit den Adressenangaben (8^, R8^, usw.) kann man dem CALM Assembler
helfen, den kompaktesten Code zu generieren.

Bemerkungen
   Die indirekte Adressierung mit dem Register IX bentigt
normalerweise einen Abstandswert. Der CALM Assembler akzeptiert aber
auch   MOVE {IX},A   und setzt automatisch den Abstandswert Null ein.
   Das Modul M6800 kennt auch die Befehle des M6801 (mit   .PROCSET M6801   )
und des HD6303 (mit   .PROCSET HD6303   ).

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

   Pseudobefehle:      .BLK.8                 RMB
                       .END                   END
                       .LOC                   ORG
                       .8, .16                FCB, FCW

Description du 6800/6801/6803/6303 pour l'assembleur CALM

Adressage choisi
   Pour les instructions de saut, l'adressage relatif 8 bits est choisi si
c'est possible. Sinon, l'adressage absolu est choisi. Ceci peut tre une
adresse de 8 (page 0) ou de 16 bits pour quelques instructions.

Optimisation automatique du code machine
   Pour l'instruction JUMP, les optimisations possibles sont:

    JUMP    R8^adresse  [ 2 octets ]
    JUMP    16^adresse  [ 3 octets ]

L'assembleur CALM choisit l'adressage relatif si l'adresse est connue et est
 l'intrieur des limites d'un adressage relatif 8 bits.
Et pour l'instruction CALL:

    CALL    R8^adresse  [ 2 octets ]
    CALL    8^adresse   [ 2 octets ] (pas disponible sur M6800)
    CALL    16^adresse  [ 3 octets ]

Si l'adresse est connue, l'assembleur CALM essaye d'abord l'adressage relatif.
Ensuite, l'adressage absolu 8 bits est test.
   Pour les oprandes, les optimisations possibles sont:

    MOVE    8^adresse,A [ 2 octets ]
    MOVE    16^adresse,A[ 3 octets ]

Le premier cas est cod automatiquement si l'assembleur CALM connat
la valeur de l'adresse dans la premire passe et si c'est une valeur de
8 bits.
   Par des indicateurs d'adresses (8^, R8^, etc.), on peut aider l'assembleur
CALM  gnrer le code le plus compact.

Remarques
   L'adressage indirect avec le registre IX ncessite normalement une
valeur de dplacement. L'assembleur CALM accepte aussi   MOVE {IX},A
et met automatiquement la valeur nulle.
   Le module M6800 connat aussi les instructions du M6801 (avec
.PROCSET M6801   ) et du HD6303 (avec   .PROCSET HD6303).

Diffrences par rapport  l'assembleur du fabricant
   Les diffrents noms des codes opratoires sont indiqus dans la
carte de rfrence.
   notation de         CALM                   Motorola
   l'adressage:        #value                 value
                       adresse                adresse
                       {registre}+dpl        dpl,registre

   pseudo-             .BLK.8                 RMB
   instructions:       .END                   END
                       .LOC                   ORG
                       .8, .16                FCB, FCW

CALM assembler description for the 6800/6801/6803/6303

Chosen addressing mode
   The CALM assembler chooses for jump instructions the relative 8 bit
addressing mode, if it is possible. Otherwise the absolute addressing mode
is chosen. This could be for some instructions an 8 bit (page 0) or a 16 bit
address.

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

    JUMP    R8^address   [ 2 bytes ]
    JUMP    16^address   [ 3 bytes ]

The CALM assembler chooses the relative addressing, when the address is
known and is within the limits of a relative 8 bit addressing. And with
the instruction CALL:

    CALL    R8^address   [ 2 bytes ]
    CALL    8^address    [ 2 bytes ] (not on the 6800)
    CALL    16^address   [ 3 bytes ]

If the address is known, the CALM assembler trys first the relative
addressing mode. Then the absolute 8 bit addressing mode is tested.
   Optimisations are also possible with some operands:

    MOVE    8^address,A  [ 2 bytes ]
    MOVE    16^address,A [ 3 bytes ]

The first case is automatically coded, when the CALM assembler knows the
value of the address in the first pass and when the value is an 8 bit value.
   With the address specifiers (8^, R8^, etc.) you can help the CALM
assembler to generate the compactest code.

Remarks
   The indirect addressing mode with the register IX needs normally an
offset value. The CALM assembler accepts also   MOVE {IX},A   and takes
zero for the offset value.
   The module M6800 knows also the instructions of the M6801 (with
.PROCSET M6801   ) and of the HD6303 (with   .PROCSET HD6303).

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

   pseudo-             .BLK.8                 RMB
   instructions:       .END                   END
                       .LOC                   ORG
                       .8, .16                FCB, FCW
