Keil Logo

SHORT Assembler Operator

Arguments
SHORT label


Description

The SHORT operator generates a short distance branch (-128 to +127 words of the current instruction) to a forward referenced label. In pass two, the assembler checks the branch target to make sure it does not exceed the maximum relative distance.

The A166 Assembler is a three-pass assembler. Therefore, it is not necessary to use the SHORT operator in forward references. Pass two of the assembler automatically determines distances and uses the shortest form of the branch instruction (JMPR, CALLR).

Example
C100    SECTION CODE
P100    PROC    NEAR
        JMP     LAB
        JMP     SHORT LAB
LAB:    MOV     R15,R3
P100    ENDP
C100    ENDS
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.