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
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.