COMPASS is an acronym for "COMP"rehensive "ASS"embler. COMPASS is a macro assembly language on Control Data Corporation's 3000 series, and on the 60-bit CDC 6000 series, 7600 and Cyber 70 and 170 series mainframe computers.

There are two "flavors" of COMPASS on the 60-bit machines:
* COMPASS CP is the assembly language for the CP (Central Processor), the processor running user programs. See CDC 6600 CP architecture.
* COMPASS PP is the assembly language for the PP (Peripheral Processor), only running operating system code. See CDC 6600 PP architecture.

COMPASS is a classical two-pass assembler with macro and conditional assembly features, and generates a full listing showing both the source assembly code and the generated machine code (in octal). CDC's operating systems were written almost entirely in COMPASS assembly language.

Central processor (CP or CPU) hardware maintains 24 operational registers, named A0 to A7, X0 to X7 and B0 to B7. Registers X0 to X7 are 60 bits long and are used to hold data, while registers B0 to B7 are 18 bits long and their major purpose is to hold either addresses or be used as indexing registers, except that B0 is always zero. As a programming convention, B1 (or B7) often contains positive 1.

A or address registers are also 18 bits long. Each A register pairs with the corresponding X register. Whenever an address is set into any of A1 to A5 registers, the data at that memory location (address) is transferred into the corresponding X register. Likewise, setting an address into one of A6 or A7 registers stores the data held in the corresponding X6 or X7 register to that memory location. However, A0 can be used to hold any address without affecting the contents of register X0.

CP instructions are written in a particularly user-friendly form: "SA1 A0+B1" denotes "set address register A1 to the sum of address register A0 and index register B1". The hardware then initiates a memory load from the computed address into register X1.

Peripheral processor (PP or PPU) instructions are completely different from CPU instructions. Peripheral processor hardware is simpler; it has an 18-bit A (accumulator register, a 12-bit Program Address register, a 12-bit Q register (not programmer-visible), and a 22-bit R register (used to accomplish address relocation during central memory read and write instructions on Cyber 180 systems). No special job validation was required to assemble peripheral processor programs, but to be executed, such programs were required to installed into the operating system via special system editing commands.

Example code

This COMPASS sample code displays the calendar of the year given as a parameter on the terminal. If no parameter is given, then the calendar of the current year is displayed.

External links

* [ Scanned COMPASS manuals]
* [ A newer (1986) version of scanned COMPASS manual]

Wikimedia Foundation. 2010.

Поможем написать реферат

Look at other dictionaries:

  • Compass — Com pass (k[u^]m pas), n. [F. compas, fr. LL. compassus circle, prop., a stepping together; com + passus pace, step. See {Pace}, {Pass}.] 1. A passing round; circuit; circuitous course. [1913 Webster] They fetched a compass of seven day s journey …   The Collaborative International Dictionary of English

  • Compass-G1 — Major contractors CAST Bus DFH 3 Mission type Navigation Launch date 16 January 2010 Carrier rocket …   Wikipedia

  • COMPASS-1 — Typ: CubeSat Land: Deutschland Behörde: FH Aachen, FB6 …   Deutsch Wikipedia

  • Compass — steht für Compass (Satellitennavigation) der Name des chinesischen Satellitennavigationssystems Compass Group ein britisches Nahrungsmittelunternehmen COMPASS Experiment ein Detektor am Teilchenbeschleuniger SPS COMPASS 1 ein von Studenten… …   Deutsch Wikipedia

  • Compass-1 — Operator Fachhochschule Aachen Bus 1U CubeSat Mission type Remote Sensing/Imaging Technology Demonstration Launch date 03:53:51 GMT, 28 April 2008 …   Wikipedia

  • Compass — Com pass (k[u^]m pas), v. t. [imp. & p. p. {Compassed} (k[u^]m past); p. pr. & vb. n. {Compassing}.] [F. compasser, LL. compassare.] 1. To go about or entirely round; to make the circuit of. [1913 Webster] Ye shall compass the city seven times.… …   The Collaborative International Dictionary of English

  • Compass FM — City of license Grimsby Broadcast area North East Lincolnshire Slogan The Music You Love Frequency …   Wikipedia

  • COMPASS — steht für Compass (Satellitennavigation) der Name des chinesischen Satellitennavigationssystems COMPASS Experiment ein Detektor am Teilchenbeschleuniger SPS COMPASS 1 ein von Studenten entwickelter Kleinsatellit Kinder und Jugend… …   Deutsch Wikipedia

  • COMPASS-2 — (auch Compass Two) ist ein Kleinsatellit im CubeSat Format, den Studenten der FH Aachen und derzeit zwei Diplomanden der RWTH Aachen seit Anfang 2009 entwickeln. Er soll ein Triple CubeSat werden und ist mit 100x100x340,5 mm³ und ca. 4 kg Masse… …   Deutsch Wikipedia

  • COMPASS 1 — COMPASS 1, auch Compass One ist ein Kleinsatellit im CubeSat Format, den Studenten der Fachhochschule Aachen seit 2003 entwickeln. Er wiegt ungefähr ein Kilogramm. Seine Galliumarsenid Solarpanele liefern eine elektrische Leistung von zwei Watt.… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”