Contents|Index|Previous|Next
Intel 960 dependent features

The following documentation discusses Intel i960 architecture’s features and options for the assembler. Options for i960

The following documentation discusses Intel i960’s options for the assembler.

 
*NEXT  COUNT: *BRLAB 1  ...  *BRLAB N 
_BRANCH_TABLE_ layout 
  Floating point for i960

as generates IEEE floating-point numbers for the directives .float, .double, .extended, and .single.

Machine directives for i960
 

Opcodes for i960

All Intel 960 machine instructions are supported; see Options for i960 for a discussion of selecting the instruction subset for a particular 960 architecture. Some opcodes are processed beyond simply emitting a single corresponding instruction: callj, and compare-and-branch or compare-and-jump instructions with target displacements larger than 13 bits.

callj

You can write callj to have the assembler or the linker determine the most appropriate form of subroutine call: call, bal, or calls. If the assembly source contains enough information—a .leafproc or .sysproc directive defining the operand—then as translates the callj; if not, it simply emits the callj, leaving it for the linker to resolve.

Compare-and-branch for i960

The 960 architectures provide combined compare-and-branch instructions that permit you to store the branch target in the lower 13 bits of the instruction word itself. However, if you specify a branch target far enough away that its address won’t fit in 13 bits, the assembler can either issue an error, or convert your compare-and-branch instruction into separate instructions to do the compare and the branch. Whether as gives an error or expands the instruction depends on two choices you can make: whether you use the -no-relax option, and whether you use a “compare and branch” instruction or a “compare and jump” instruction. The “jump” instructions are always expanded if necessary; the “branch” instructions are expanded when necessary unless you specify -no-relax—in which case as gives an error instead.

The following example shows the compare-and-branch instructions, their “jump” variants, and the instruction pairs into which they may expand.


Top|Contents|Index|Previous|Next