The TI-990 is a series of 16-bit minicomputers sold by Texas Instruments (TI) in the 1970s and 1980s. It served as a replacement for TI's earlier minicomputer systems, the TI-960 and the TI-980. The TI-990 features several unique innovations and was designed to be easier to program than its predecessors. Among its core concepts is the ability to support multiprogramming using a software-switchable set of processor registers that allowed it to perform rapid context switches between programs. This is enabled through the use of register values stored in main memory that could be swapped by changing a single pointer. TI later implemented the TI-990 in a single chip, the TMS9900, one of the first 16-bit microprocessors. Intended for use in low-end models of the TI-990, it retained the 990's memory-to-memory architecture. This chip was widely used in the TI-99/4A home computer, where aggressive cost-cutting measures presented significant performance disadvantages.
TI-990 models The TI-990 processors fell into several natural groups depending on the original design upon which they are based and which I/O bus they used. All models support the Communications Register Unit (CRU) which is a serial bit addressable I/O bus. Also, supported on higher end models is the TILINE I/O bus which is similar to DEC's popular UNIBUS. The TILINE also supports a master/slave relationship that allowed multiple CPU boards in a common chassis with arbitration control.
CRU-only models The following models used the CRU as their principal bus:
TI-990/9 — The original TTL implementation; 1974 TI-990/4 — TMS9900 microprocessor with 56 KB of memory
TILINE/CRU models The following models used the TILINE as their principal mass storage bus:
TI-990/5 — TMS9900 microprocessor with 64 KB of memory TI-990/10 — TTL processor with memory mapping support to 2 MB of ECC memory; 1975 TI-990/10A — TMS99000 microprocessor with memory mapping support to 1 MB of memory TI-990/12 — Schottky TTL processor with memory mapping to 2 MB of ECC Memory, workspace caching, hardware floating point, extended mode instructions and writeable control store
Features
Orthogonal instruction set The TI-990 series has a fairly orthogonal instruction set. The instruction formats allows for one-, two- and three-word instructions. The model 990/12 CPU allows for a four- word instruction with extended mode operations.
Workspaces In the TI-990 series, the general-purpose registers are stored in memory and are referred to through a hardware register called the Workspace Pointer. The concept behind the workspace is that main memory was based on the new semiconductor RAM chips that TI had developed and ran at the same speed as the CPU. This meant that it didn't matter if the "registers" were real registers in the CPU or stored in memory. When the Workspace Pointer is loaded with a memory address, that address is the origin of the registers. There are only three hardware registers in the 990: the Workspace Pointer (WP), the Program Counter (PC) and the Status register (ST). A context switch entailed the saving and restoring of only the hardware registers.
Architectural details Addresses are 16-bit byte addresses, so the address space is 216 bytes (65,536 bytes or 32,768 words) large. The byte ordering in words is big endian. There is no dedicated stack pointer register. Instead, branch instructions exist that save the program counter to a register (BL — Branch and Link), or change the register context (BLWP — Branch and Link Workspace Pointer, or XOP). The 16 hardware and 16 software interrupt vectors each consist of a pair of PC and WP values, so the register context switch is automatically performed by an interrupt as well. Stacks can be implemented atop either of these mechanisms. Along with the typical single-bit flags seen in most processors, the status register contains a 4-bit interrupt mask. The value, 0 to 15, indicates the maximum interrupt that can be triggered. For instance, if interrupt 10 has been called, and interrupt 12 is triggered, the CPU checks this values, sees that 10 is running, and blocks the request.
There are 16 general-purpose "workspace registers". Several registers have defined purposes in many instructions. These are:
R0 - shift counter, extended mode counter, Floating point Accumulator (FAC) most significant word R1 - FAC+2 (single precision) R2 - FAC+4 (double precision) R3 - FAC+6 (double precision) R11 - return linkage, or pointer to operand of XOP (privileged mode) R12 - CRU base address (privileged mode) R13 - Saved Workspace Pointer R14 - Saved Program Counter R15 - Saved Status Register
Addressing modes Most instruction operands are represented with an addressing mode and a general-purpose register used by that addressing mode. In these examples, Rn is a general-purpose register, 0 to 15. The addressing modes are:
Instructions The 990/9, 990/4, and 990/5 instruction sets consisted of 69 instructions, the 990/10 had 72 instructions, the 990/10A had 77 instructions, and the 990/12 had 144 instructions. For subroutine calls, the Branch and Load Workspace Pointer (BLWP) instruction loads new WP and PC values, then saves the values of WP, PC, and ST to (new) registers 13, 14, and 15 respectively. At the end of the subroutine, the Return Workspace Pointer (RTWP) restores these in reverse order. Using BLWP/RTWP, it is possible to nest subroutine calls despite the absence of a stack, however, the programmer needs to assign the appropriate register workspace explicitly. The instruction set also contains a Branch and Link (BL) opcode that only saves PC to register 11 without changing WP. In this case, a branch instruction (B) using WR11 as the destination address can serve as the return opcode, but BL-type subroutines cannot be nested without the programmer taking actions to save the return address. Then execute instruction "X" (eXecute) executes the instruction in a register or memory location. It can be used for debugging (as a breakpoint instruction), for creating indexed-opcode tables as used in byte-code interpreters and can also be used to perform a time critical I/O instruction during an interrupt. An example of its utility is shown in the code below where an interrupt is being serviced in a very encapsulated manner that would otherwise require many more instructions.
… excerpt ends here. Continue reading the full article.

