17-bit short instructions may occur within programs by means of occurring in groups of three within a 64-bit long instruction.
These grouped instructions have the formats shown in this diagram:

The opcodes (with the first four bits appearing along the top of the chart, and the last three bits appearing on the right) are:
0 10 20 30 40 50 60 70 100 110 120 130 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 SWB IB SWH IH SW I SWL SWM SWF SWD SWQ 000 0 CB XB CH XH C X CL XL CM CF CD CQ 001 1 LB ULB LH ULH L UL LL LM LF LD LQ 010 2 STB STH DUH ST DU STL DUL STM STF STD STQ 011 3 AB NB AH NH A N AL NL AM AF AD AQ 100 4 SB OB SH OH S O SL OL SM SF SD SQ 101 5 MB MH MEH M ME ML MEL MM MF MD MQ 110 6 DB DH DEH D DE DL DEL DM DF DD DQ 111 7
The different instructions featured in the first line of the diagram are:
For both integer and floating types:
SW SWAP Exchange the contents of the source and destination locations
C COMPARE Subtract the contents of the source location from the contents of
the destination location, but with the operation modified so that
overflow cannot possibly result, and set the condition codes appropriately
without modifying the destination location
L LOAD Place the contents of the source operand in the destination register;
if the type involved is smaller than the register, perform sign extension
ST STORE Fill the destination location from the least significant part of the
source location
A ADD Add the contents of the source and destination locations, placing the
result in the destination location
S SUBTRACT Subtract the contents of the source location from those of the destination
location, placing the result in the source location
M MULTIPLY Multiply the contents of the source and destination locations, placing the
least significant part of the result of the same length as the two input
operands in the destination location, with sign extension if that is shorter
than the length of the destination register
D DIVIDE Divide the contents of the source location by the contents of the destination
location, placing the quotient in the destination location
For integer types only:
I INSERT Fill the least significant bits of the destination register with
the contents of the source location, leaving the rest of the destination
register unaffected
X EXCLUSIVE OR Perform a bitwise Exclusive OR operation between the contents of the source
and destination locations, placing the result in the desination location
UL UNSIGNED LOAD Fill the least significant bits of the destination register with
the contents of the source location, and clear the remaining more
significant bits of the destination register
DU DIVIDE UNSIGNED This instruction performs the same fuction as the Divide instruction, except
that the dividend, the divisor, the quotient, and the remainder are all
treated as positive numbers of which the first bit is a part.
N AND Perform a bitwise Logical AND operation between the contents of the source
and destination locations, placing the result in the desination location
O OR Perform a bitwise Logical OR operation between the contents of the source
and destination locations, placing the result in the desination location
ME MULTIPLY EXTENSIBLY Multiply the contents of the source and destination locations. Take the
full product, as an integer having twice the size as that of the source
and the destination, and:
- in the case of the halfword and integer versions of the instruction, place it in the destination
register, with sign extension in the halfword version;
- in the case of the long version of the instruction, place the most significannt half of the result
in the destination register, which must be an even-numbered register, and place the least significant
half of the result in the register following
DE DIVIDE EXTENSIBLY Divide a destination operand of twice the length of that indicated by the
instruction type (and located as the result of the MULTIPLY EXTENSIBLY
instruction) by the source operand; store the double length quotient
in the destination location (again following the MULTIPLY EXTENSIBLY
result placement) and the single length remainder in the next register
following those that are used.
Whenever a result is not wide enough to fill a register, sign extension
is performed.
Division is performed giving a result as if both operands were converted
to positive numbers before starting, with the signs then set afterwards
to give a correct result based on the actual signs of the operands. Thus
both the quotient and the remainder will be positive or zero if the dividend
and divisor have the same sign, and both will be negative or zero if they
are of opposite signs.
The possible integer types, and the suffixes that indicate them, are:
B BYTE An 8-bit two's complement integer
H HALFWORD A 16-bit two's complement integer
INTEGER A 32-bit two's complement integer
L LONG A 64-bit two's complement integer
The integer registers are 64 bits long, to contain the longest of these types.
The available floating-point operations are SWAP, LOAD, STORE, ADD, SUBTRACT, MULTIPLY, and DIVIDE. Their functions are basically the same as those of the corresponding integer operations, except that floating-point arithmetic is performed.
The possible floating-point types for 16-bit instructions, and the suffixes that indicate them, are:
M MEDIUM A 48-bit floating-point number (preferably aligned on 16-bit boundaries) F FLOATING A 32-bit floating-point number D DOUBLE A 64-bit floating-point number
with a common floating-point type used in other instructions being
Q QUAD A 128-bit floating-point number
with their formats as indicated within this diagram:

Note that in the diagram, exponents for the types other than the 128-bit internal type are given as excess-126, excess-510, and excess-1022; documentation for the IEEE 754 standard, and most descriptions of it, refer to the exponents as excess-127, excess-511, and excess-1023 instead. This is because these accounts place the binary point of the mantissa in front of its first visible bit, while I place it in front of the hidden first bit to remain in accord with the convention used in most other floating-point formats that the mantissa is in the range [0.1). In the case of the 128-bit internal form, as the first bit of the mantissa is now the bit which would have been the hidden bit, since for the other forms, I had been placing the binary point in front of the hidden bit, the offset is consistent by remaining two less than a power of two; this would need to be the case even if I had used the normal convention for the exponents of the other formats.
The 128-bit type of this architecture is similar to 80-bit temporary real, but with both a longer exponent and a longer mantissa.
New standards for 128-bit and 256-bit reals have been added to the IEEE 754 standard. These types are supported within the Short Vector instructions, which do not use an expanded internal form for real numbers or other data types. There will also be instructions using the floating-point registers to work with these types, which is why the exponent of the ordinary 128-bit floating-point type has been made long enough to support the IEEE 754 256-bit floating type.
These instructions are then also suffixed RC for Register Compact to indicate the addressing mode.
The remaining instructions to be described below may only appear as the second of two short instructions within a 32-bit word, in order to reserve opcode space for 64-bit or longer instructions.
Lines 2 through 5 of the diagram illustrate the shift and rotate short instructions. They are:
300x0x LSLLC Logical Shift Left Long Compact
300x1x LSRLC Logical Shift Right Long Compact
300x2x RLLC Rotate Left Long Compact
300x3x ASRLC Arithmetic Shift Right Long Compact
320x0x LSLC Logical Shift Left Compact
320x1x LSRC Logical Shift Right Compact
320x2x RLC Rotate Left Compact
320x3x ASRC Arithmetic Shift Right Compact
330x0x LSLHC Logical Shift Left Halfword Compact
330x1x LSRHC Logical Shift Right Halfword Compact
330x2x RLHC Rotate Left Halfword Compact
330x3x ASRHC Arithmetic Shift Right Halfword Compact
33400x LSLBC Logical Shift Left Byte Compact
33401x LSRBC Logical Shift Right Byte Compact
33402x RLBC Rotate Left Byte Compact
33403x ASRBC Arithmetic Shift Right Byte Compact
Logical right and left shifts insert zeroes; the arithmetic right shift inserts a copy of the existing value of the most significant bit into the leftmost position of the word so as to maintain the sign as either negative or non-negative.
An arithmetic left shift inserts zeroes into the leftmost end of a number regardless of its sign, just like a logical left shift, but it differs in that the overflow bit is set if a left shift results in a change of the sign of the value being shifted, instead of merely a carry out of that value; this difference is, however, not applicable to short instructions, as they may not alter the condition codes, not having space for a C bit.
Line 6 of the diagram shows the branch instructions, which have the following opcodes:
3404xx BL Branch if Low
3410xx BE Branch if Equal
3414xx BLE Branch if Low or Equal
3420xx BH Branch if High
3424xx BNE Branch if Not Equal
3430xx BHE Branch if High or Equal
3434xx BNV Branch if No Overflow
3440xx BV Branch if Overflow
3450xx BC Branch if Carry
3454xx BNC Branch if No Carry
3474xx B Branch
Unused values are used instead for the set flag instructions in line 7, as follows:
3400xx CTF Condition to Flag Set flag to 1 if condition valid; set flag to 0 if condition not met
3460xx SFC Set Flag on Condition Set flag to 1 if condition met; leave it unaffected otherwise
3464xx CFC Clear Flag on Condition Set flag to 0 if condition met; leave it unaffected otherwise
Line 8 of the diagram shows the format of another special instruction:
3470xx SVC Supervisor Call
This instruction performs the equivalent of an interrupt from within software, allowing portions of the operating system not running in supervisor state to request services from the kernel, as well as possibly also allowing user programs to request services from the operating system.
Line 9 of the diagram shows the format of one special instruction:
34770x SRA Store Return Address
This 16-bit instruction saves the address of the instruction following it, just as a Jump to Subroutine instruction would do, but without branching. It is useful for initializing a base register at the beginning of a subroutine. Of course, a Jump to Subroutine with a program-relative displacement as its address may also be used for that purpose.
Line 10 of the diagram shows the format of the subroutine jump instruction:
350xxx JSR Jump to Subroutine
To use this instruction, the integer register in the pR field needs to be initialized to a pointer to the address of the subroutine which it is desired to call from within short instructions.
For both this instruction and the preceding Store Return Address instruction, the return address stored is the one which will cause a transfer of control to the instruction immediately following the instruction.
Thus, if this instruction is the third of the three embedded instructions, the return address will be the address of the instruction following this instruction containing three embedded short instructions.
If, instead, the instruction is the first of the three embedded instructions, then the return address will be one greater than the address of the 64-bit container instruction, and if it is the second, it will be two greater, since byte addresses within the first 32 bits of a container instruction are the means by which transfers of control to embedded instructions other than the first are indicated.
These instructions consist of pairs of short instructions, with the formats illustrated below, similar to those of the 17-bit short instructions shown above.
