BUCOM75X.TXT

CALM assembler description for the uCOM-75X family

Chosen addressing mode
   The CALM assembler chooses for the jump instructions the relative 5 bit
addressing, if it is possible. Otherwise the absolute addressing mode
is chosen.

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

    JUMP    R5^address      [ 1 byte ]
    JUMP    !12^address     [ 2 bytes, same block (12-bit) ]
    JUMP    14^address      [ 3 bytes ]
    JUMP    15^address      [ 3 bytes, if ROM size > 16K ]

If the address is known, the CALM assembler trys first the relative
addressing mode. Then the absolute addressing modes are tested (first, within
same block).
   Optimisations are also possible with CALL instructions:

    CALL    11^address      [ 2 bytes ]
    CALL    14^address      [ 3 bytes ]
    CALL    15^address      [ 3 bytes, if ROM size > 16K ]

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

Remarks
   Please note, that this processor family has many versions, which differ
in many points concerning the built-in hardware parts. This has a direct
influence i.e. on the allowed address range of the stack pointer (bank 0 or
banks 0-2), the PC, and the interrupt addresses (refer to the hardware manual).

Options

   .PROCSET ALLSPACE      assembles all-space JUMP/CALL instructions (> 16K)
   .PROCSET NOBRANCH3     does not assemble 3-byte JUMP/CALL instructions
   .PROCSET NODATASIZE    assembles instructions without data sizes (.4, ...)
   .PROCSET HIGHEND       assembles also high-end instructions
   
default: BRANCH3, DATASIZE, NOALLSPACE, STANDARD

   .PROCVAL MAX_ROM_ADD 16'7F7F default, allowed range: 3F7F..7F7F

MAX_ROM_ADD indicates the ROM size. Only useful if .PROCSET ALLSPACE (ROM >
16K).

Instruction list
   All available instructions can be seen by:  ASCALM TUCOM75X/L  and printing
TUCOM75X.LST.

Differences to the producer assembler
   The different notations of the operation codes are given in the CALM
reference card.
   notation of the     CALM                   NEC
   addressing          #value                 #value
   mode:               address                address
                       etc.

   pseudo-             .BLK.8                 DS
   instructions:       .END                   END
                       .LOC                   ORG
                       .8                     DB

