Share to: share facebook share twitter share wa share telegram print page

OS/8

OS/8
DeveloperDigital Equipment Corporation
Working stateDiscontinued
Source modelClosed source
Initial release1971; 53 years ago (1971)
PlatformsPDP-8
Default
user interface
Concise Command Language (CCL)
(Command-line interface)
LicenseProprietary
Preceded byPS/8

OS/8 is the primary operating system used on the Digital Equipment Corporation's PDP-8 minicomputer.

PDP-8 operating systems which precede OS/8 include:

Other/related DEC operating systems are OS/78, OS/278,[3] and OS/12. The latter is a virtually identical version of OS/8, and runs on Digital's PDP-12 computer.

Digital released OS/8 images for non-commercial purposes[4] which can be emulated through SIMH.

Overview

OS/8 provides a simple operating environment[5] that is commensurate in complexity and scale with the PDP-8 computers on which it ran. I/O is supported via a series of supplied drivers which uses polled (not interrupt-driven) techniques. The device drivers have to be cleverly written[6] as they can occupy only one or two memory pages of 128 12-bit words, and have to be able to run in any page in field 0. This often requires considerable cleverness, such as the use of the OPR instruction (7XXX) for small negative constants.

The memory-resident "footprint" of OS/8 is only 256 words; 128 words at the top of Field 0 and 128 words at the top of Field 1. The rest of the operating system (the USR, "User Service Routines") swaps in and out of memory transparently (with regard to the user's program) as needed. This disk-resident (or more properly, system-device-resident) part of OS/8 is the first 14K words (56 blocks) of the SYS: device, including swap space.

The remaining memory contents are preserved between some of the basic user commands. This is exploited by the process by which executable programs are built: for example, an assembly language program is first assembled into a .BN (binary) file. Then one or more .BN files are loaded into memory using the LOAD (ABSLDR) command. You could then execute the loaded program with the START command, debug it with ODT, or SAVE it to a .SV file which can be later retrieved with the GET command or executed immediately with R or RUN commands. Information about the currently loaded program is maintained in the CCB (Core Control Block), which is located on the SYS: device. This information includes which parts of memory are used by the program (which parts should be saved) and the program's starting address.

This concept of preserved memory being associated with a user or job also appears in other DEC operating systems, including TOPS-10 for the PDP-10, where such memory is known as a context.

OS/8 can boot from a hard disk and present the command prompt in under half a second.

The Concise Command Language

Early versions of OS/8 have a very rudimentary command-line interpreter with very few basic commands: GET, SAVE, RUN, ASSIGN, DEASSIGN, and ODT. With version 3 they add a more sophisticated overlay called CCL (Concise Command Language) that implements many more commands. OS/8's CCL is directly patterned after the CCL found on Digital's PDP-10 systems running TOPS-10. In fact, much of the OS/8 software system is deliberately designed to mimic, as closely as possible, the TOPS-10 operating environment. (The CCL command language is used on PDP-11 computers running RT-11, RSX-11, and RSTS/E, providing a similar user operating environment across all three architectures: PDP-8s, PDP-10s, and PDP-11s.)

The basic OS and CCL implements many rather sophisticated commands, many of which still do not exist in modern command languages, not even in MS-DOS, Windows, or Unix-like operating systems.

For example, the COMPILE command automatically finds the right compiler for a given source file and starts the compile/assemble/link cycle.

The ASSIGN and DEASSIGN commands permit the use of logical device names in a program instead of physical names (as required in MS-DOS). For example, a program can write to device FLOP:AAA.TXT, and with an initial "ASSIGN FLOP: RXA2:" then the file is created on physical device RXA2 (the second floppy disk drive). VAX/VMS and the Amiga's operating system AmigaOS (and other OSes built around TRIPOS) make considerable use of this feature.

The SET command is capable of setting many system options by patching locations in the system binary code. One of them, a command under OS-78,[7] is SET SYS OS8, which re-enables the MONITOR commands that are not part of OS-78.

The BUILD command can reconfigure the OS on the fly, even adding device drivers, often without having to reboot the OS.

The OS/8 Filesystem

OS/8 supports a simple, flat file system on a variety of mass storage devices including:

Filenames on the PDP-8 take the form of FFFFFF.XX where "F" represents an uppercase, alphanumeric character of the filename and "X" represents an uppercase, alphanumeric character of the extension (filetype).

  • .PA : Assembly language
  • .SV : saved core-images (executable programs)
  • .FT : Fortran source files
  • .DA : Data files[d]

The contents of any given file is stored contiguously in a single "extent". Allocation works as follows:[9] a program first opens a tentative file (using the User Service Router (USR) "ENTER" function). This assigns either the largest free extent to the file, or if the desired file size is known in advance, the smallest extent that it fits in. ENTER returns the starting block number and size of the file to the program which then writes to the file by directly calling the device driver. Once writing is complete, the program calls the USR "CLOSE" function. CLOSE marks the tentative file as a permanent file and creates an extent for the remaining free space for future allocations. It also deletes (marks as available free space) any other file with the same name. This facilitates replacing an existing file with a new version, for example after editing ("CLOSE" doubles as the file deletion call). Only one tentative file per volume may be open at a time. This seems limiting, but works for something like the PAL8 assembler since only one output file is generated at a time for each pass.

PIP includes an option to compress ("squeeze") the filesystem, so that all unallocated space is moved to a single extent at the end of the disk. This can be invoked by the SQuish CCL command, much as MUNG can be used to run a TECO macro.[citation needed]

OS/8 volumes have a limited maximum storage size (4096 blocks of 256 twelve-bit words) and the RK05 (2.4MB) moving-head disk exceeds this size: "1.6 million words of storage".[10] Because of this, RK05 cartridges are divided into two partitions. For example, the first RK05 on a system is known as both RKA0: (SY:) and RKB0:. This division refers to "the outer cylinders" and "the inner cylinders".

ASCII

There are two systems for handling ASCII text. ASCII files are stored as three 8-bit characters per pair of 12-bit words. The first two characters (marked with bits a0–a7 and b0–b7 below) are stored whole in their words, while the third character (bits c0–c7) is stored with half of its bits in word 1 and the other half in word 2.[7]

  • WORD 1: c0 c1 c2 c3 | a0 a1 a2 a3 a4 a5 a6 a7
  • WORD 2: c4 c5 c6 c7 | b0 b1 b2 b3 b4 b5 b6 b7
    ASCII files end with a CTRL/Z (ASCII 232).

6-bits per character uppercase only ASCII strings are also used. In this case, two characters efficiently fit in each word. This is used for filenames in directory entries, but also for strings in BASIC. In BASIC, even though strings use 6-bit characters, you may print any 8-bit code by using the PNT() function within PRINT, for example use PNT(27) to print an ASCII ESC character.

OS/8 date format

OS/8 allocates the PDP-8's 12 bit words for storing dates per:

  • 4 bits for the month
  • 5 bits for the date therein
  • 3 bits for the year.[e][11]

The insufficiency of a three-bit year field, capable of storing only eight years, was recognized when COS-310 was developed.[12]

OS/8 CUSPs (Utility Programs)

The CUSPs (Commonly-Used System Programs, that is utilities) supplied with OS/8 include:

  • BUILD (the program to install a configured OS/8 system onto mass storage)
  • DIR (the directory-listing program)
  • EDIT (A line-oriented editor)[13]
  • MACREL (A relocating assembler that, unlike PAL, implements macros. Written by Stanley Rabinowitz of DEC's Small Systems Group. Stan had an ASCII-artwork picture of a fish in his office that said "MACREL IS A FISH")[citation needed]
  • FLAP (An absolute assembler derived from RALF)
  • FORTRAN-II.[14]
  • FOTP (File-Oriented Transfer Program, an alternative to PIP)
  • PAL (The assembler)
  • PIP (the Peripheral Interchange Program, used to copy files)
  • PIP10 (a version of PIP used to copy files to from PDP-10 DECtapes)
  • RALF (Another relocating assembler for the FPP)
  • TECO (Text Editor and COrrector, a sophisticated editor). The MUNG command runs TECO macros.
  • CCL, the command line interpreter, supplied in source form and user-extensible.

Programming languages

BASIC

A single-user BASIC and two multi-user versions of BASIC are available as options.

The single-user BASIC uses several overlays to provide the full functionality of the language; when OS/8 is booted from a DECtape, a noticeable delay occurred each time BASIC is required to switch overlays as they need to be read from tape.

The multi-user versions of BASIC (EDU20 and EDU25) differ only in whether or not they support block-replaceable devices (DECtape or disk). Due to cost constraints, many PDP-8s have punched paper tape readers as their only mass-storage I/O device. EDU20 loads from paper tape and can do output to a paper tape writer if the machine has one, whereas EDU25 understands the structure of a filesystem, can load from DECtape or disk, and can create files on DECtape or disk. Both can run multiple BASIC programs simultaneously using a primitive task-scheduler that round-robins among the attached terminals. Memory is always tight because the PDP-8 uses core memory, which was extremely expensive compared to RAM technology. In 8K of 12-bit words EDU20 can support up to 4 terminals at once, although more memory was recommended. EDU25 requires an additional 4K memory bank (for a minimum of 12K) because the code contains a disk device driver and a filesystem handler. While running, EDU20 and EDU25 are self-contained programs that don't use any OS/8 system calls. Immediately upon being invoked from the OS/8 command interpreter, they overwrite OS/8's entire resident portion – all 256 words of it. Upon startup, EDU25 saves the contents of memory to DECtape or disk and restores it upon exit. But EDU20 cannot do this as it is targeted at hardware configurations without any block-replaceable device.

FORTRAN

In addition to a freely available FORTRAN II compiler, there is also a rather complete FORTRAN IV compiler available. This compiler generates code for the optional FPP-8 floating-point processor, which is essentially a separate CPU, only sharing memory with the PDP-8 CPU. With the FPP-8 option installed, the FORTRAN runtime code detects it and uses the FPP-8 to run the main program code, and the PDP-8 CPU runs as an I/O processor. Lacking the FPP-8, the runtime code instead calls an FPP-8 interpreter running on the PDP-8 CPU, so the program runs at reduced speed.

This FORTRAN IV compiler in version 1 has the interesting bug that DO loops counted incorrectly: DO loops would count 1,2,3,5,6,7,… (skipping 4). A quick patch was released to fix this.[citation needed]

See also

Footnotes

  1. ^ Yes, with a question-mark!
  2. ^ Measured in 12-bit words
  3. ^ 256K × 12-bit words
  4. ^ Although other filetypes can also be used for storing data.
  5. ^ 1970 to 1977.

References

  1. ^ for Richard Lary, who also was involved with OS/8 and RTS8. "What is a PDP 8?". Archived from the original on 2004-08-25.
  2. ^ "Disk Monitor System" (PDF). BitSavers.
  3. ^ COMPUTERWORLD, June 1984: "OS/278 is available for $74." "Decmate II 08/278 Digital Equipment Corp. has introduced a new version of its OS/8 ..." Computerworld. June 11, 1984. p. 130.
  4. ^ File: /Licenses/os8_license.txt in os8swre.tar.Z
  5. ^ An annotated list of commands is available at "OS/8 MONITOR COMMANDS".
  6. ^ "My PDP8/E".
  7. ^ a b Moore, Rick. "OS-8 Field Service Assistance Brochure".
  8. ^ "DF32/DS32 hard disk drive". The DF32 Disk File and Control is a fixed head hard drive with a total capacity of 32K 12 bit words.
  9. ^ For an explanation of the allocation algorithm, see chapter 2 of "OS/8 Software Support Manual" (PDF). Bitsavers. Digital Equipment Corporation.
  10. ^ pp. 6–67 in PDP 8/e Small Computer Handbook. Digital Equipment Corporation. 1973.
  11. ^ "Directory of linctape-images/os8l/ps-8-system-25.linc". Online PDP-8 Home Page. This directory is in the format the OS/8 operating system uses. OS/8 can only store dates for an 8 year period so dates will be shown as 1970–1977 unless the media had a printed directory or other information find the correct date range.
  12. ^ "The Digital Equipment Corporation PDP-8: Frequently Asked Questions". COS-310 was a derivative of MS/8 and OS/8, but with a new text file format. The file system is almost the same as OS/8, but dates are recorded differently[...].
  13. ^ For a programmer's overview of OS/8 EDIT, see "Editing Files on a PDP-8 using OS/8 EDIT". 24 May 2014.
  14. ^ "4K Fortran programmer's reference manual" (PDF).

Read other articles:

L'Assomption merupakan sebuah pinggiran kota lepas pulau Montreal, di baratlaut Quebec, Kanada, di Sungai L'Assomption. Merupakan kedudukan dari Kotamadya Kabupaten Regional L'Assomption. Terletak di luar wilayah urban Montreal. Sebagian ekonominya bergantung pada industri pertanian di daratan sekitarnya. Juga merupakan pusat budaya di daerah itu. Kota ini dikenal sebagai rumah bagi band metal Reanimator, dapat terdengar teriakan Merci L'Assomption! (yang berarti Terima kasih L'Assomption) di ak…

Dalam artikel ini, pertama atau paternal nama keluarganya adalah García dan nama keluarga maternal atau keduanya adalah Maura. Excelentísima Señora DoñaCarmen MauraOAXSLahirMaría del Carmen García Maura15 September 1945 (umur 78)Madrid, SpanyolPekerjaanAktrisTahun aktif1969–sekarang María del Carmen García Maura OAXS (lahir 15 September 1945) adalah seorang aktris asal Spanyol. Dalam karir yang telah berlangsung selama enam dekade, Maura terkenal karena kolaborasinya …

GalvatronTokoh TransformersInformasiAfiliasiDecepticonFungsiDecepticon LeaderPangkat9SemboyanMy power is everything; defeat is absurd!Model alternatifLaser Cannon/Pistol Galvatron merupakan salah satu karakter robot fiksi dari serial The Transformers. Ia merupakan re-inkarnasi dari Megatron yang diceritakan tewas bersama Optimus Prime saat perang besar yang terjadi pada tahun 2005. Profil Kata Galvatron bermakna sebagai sebuah batere elektronik berkekuatan besar. Ia merupakan robot dari hasil pe…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Desember 2023. Candra Sukma Kumara Kasubdit II Dittipideksus Bareskrim Polri Informasi pribadiLahir22 April 1973 (umur 50)JakartaAlma materAkademi Kepolisian (1995)Karier militerPihak IndonesiaDinas/cabang Kepolisian Negara Republik IndonesiaMasa dinas19…

1621 naval battle of the Eighty Years' War For other uses, see Battle of Gibraltar (disambiguation). Battle of GibraltarPart of the Eighty Years' WarThe Battle of Gibraltar, by Enrique Jácome y Brocas, c. 1630Date21 August 1621 (1621-08-21)LocationBay of GibraltarResult Spanish victoryBelligerents  Spain  United Provinces Denmark–NorwayCommanders and leaders Fadrique de Toledo Willem Haultain de ZoeteStrength 6 galleons3 warships[1] 20 warships[…

Pour les articles homonymes, voir V. Cette page contient des caractères spéciaux ou non latins. S’ils s’affichent mal (▯, ?, etc.), consultez la page d’aide Unicode. V Graphies Capitale V Bas de casse v Lettre modificative ᵛ, ⱽ, ᵥ Diacritique suscrit ◌ͮ Utilisation Alphabets Latin Phonèmes principaux /v/, /f/, /ə/, ... modifier  V est la 22e lettre et la 17e consonne de l'alphabet latin moderne. À l'origine, en latin, il n'était pas différencié de u. Elle …

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Desember 2022. Roque Cinchado dan Teide di latar belakang. Roque Cinchado adalah sebuah formasi batuan yang dianggap sebagai lambang pulau Tenerife (Kepulauan Canary, Spanyol). Formasi batuan ini terletak di dalam Taman Nasional Teide (sebuah Situs warisan dunia) di ko…

JE05 Stasiun Shin-Kiba新木場駅Di depan stasiun, 2020LokasiKōtō-ku, TokyoJepangKoordinat35°38′45″N 139°49′37″E / 35.645912°N 139.826833°E / 35.645912; 139.826833Koordinat: 35°38′45″N 139°49′37″E / 35.645912°N 139.826833°E / 35.645912; 139.826833Operator JR East Tokyo Metro TWR Jalur JE Jalur Keiyo Yurakucho Line Jalur Rinkai Informasi lainKode stasiunY-24SejarahDibuka08 Juni 1988 (1988-06-08)Operasi layanan Stasiun…

Questa voce o sezione sull'argomento mesoregioni del Brasile non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Litoral Norte Espírito-SantensemesoregioneLocalizzazioneStato Brasile Stato federato Espírito Santo TerritorioCoordinate18°42′57″S 39°51′32″W / 18.715833°S 39.858889°W-18.715833; -39.858889 (Litoral Norte Esp…

Valle del Messico Stati Messico È tradizionalmente considerata Valle del Messico o Valle di Anáhuac quella regione geografica dell'America del Nord alimentata da un esteso sistema di fiumi e laghi - il più grande dei quali era il Lago Texcoco - nella cui conca si estende attualmente Città del Messico e gran parte della sua cintura urbana. Questa regione si caratterizza per essere relativamente pianeggiante ed essere circondata quasi completamente da diverse catene montuose, tra cui la S…

Sampul Playground Psychotics adalah album oleh Frank Zappa, diterbitkan pada 1992 oleh Barking Pumpkin. Daftar lagu Disc one Here Comes the Gear, Lads – 1:00 The Living Garbage Truck – 1:20 A Typical Sound Check – 1:19 This Is Neat – 0:23 The Motel Lobby – 1:21 Getting Stewed – 0:55 The Motel Room – 0:29 Don't Take Me Down – 1:11 The Dressing Room – 0:24 Learning Penis Dimension – 2:02 You There, with the Hard On! – 0:25 Zanti Serenade (Ian Underwood, Don Preston, Zappa) …

U.S. satellite in 1957 Kaputnik redirects here. For the David Berg character Roger Kaputnik, see The Lighter Side of... Vanguard TV-3Vanguard TV-3 spacecraftNamesVanguard Test Vehicle-ThreeMission typeEarth scienceOperatorU.S. NavyMission durationFailed to orbit (2 seconds) Spacecraft propertiesSpacecraftVanguard 1ASpacecraft typeVanguardManufacturerNaval Research LaboratoryLaunch mass1.5 kg (3.3 lb) [1]Dimensions16.3 cm of diameter Start of missionLaunch date6 December 1957, 1…

1999 single by Chris Cornell For the Vince Neil song Can't Change Me, see Exposed (Vince Neil album). Can't Change MeSingle by Chris Cornellfrom the album Euphoria Morning B-sideFlutter Girl,Nowhere But YouReleased1999Recorded1998Studio11 AD Studios in Los Angeles, California[1]GenreAlternative rockLength3:23LabelInterscopeSongwriter(s)Chris CornellProducer(s)Chris CornellNatasha ShneiderAlain JohannesChris Cornell singles chronology Sunshower (1998) Can't Change Me (1999) Preaching the …

Cet article est une ébauche concernant le christianisme. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Martyrs scillitains Saints, martyrs Naissance IIe siècle Décès 17 juillet 180  Carthage, Afrique proconsulaire, Empire romain (aujourd'hui en Tunisie) Vénéré par Église catholique, Église orthodoxe orientale Fête 17 juillet modifier  Les martyrs scillitains sont douze chrétiens, sept hom…

Battaglia di Guard HillBattaglia di Crooked RunBattaglia di Cedarville o Battaglia di Front Royalparte Guerra di secessione americanaDisegno di Jedediah HotchkissData16 agosto 1864 Luogocontea di Warren (Virginia) EsitoNullo SchieramentiUnioneStati Confederati d'America ComandantiThomas C. DevinWilliam Wofford Perdite71 morti480 morti Voci di battaglie presenti su Wikipedia Manuale V · D · MCampagna della Valle dello Shenandoah La Campagna di LynchburgNew Market – Pie…

Self-governing Native American community in the United States This article is about the term the United States uses for Native self-governments and global sovereign nations. For the unorganized U.S. territory whose general borders were initially set by the Indian Intercourse Act of 1834, see Indian Territory. For other uses, see Indian country (disambiguation). BIA map of Indian Reservations in the Continental United States Indian country is any of the many self-governing Native American/America…

For other stations using the WTOB call sign, see WTOB (disambiguation). Radio station in Winston-Salem, North CarolinaWTOBWinston-Salem, North CarolinaBroadcast areaPiedmont TriadFrequency980 kHzBrandingClassic Hits WTOBProgrammingFormatClassic hitsAffiliationsCompass Media NetworksPremiere NetworksWestwood OneCarolina ThunderbirdsWinston-Salem State RamsOwnershipOwnerRichard Miller, Robert Scarborough and Richard Parker(Southern Broadcast Media LLC)Sister stationsWWBG, WCOGHistoryFirst air date…

American mathematician This article is written like an obituary. Wikipedia is not a memorial site; please help improve the article to make it more encyclopedic. (May 2022) Martin KruskalBornMartin David Kruskal(1925-09-28)September 28, 1925New York City, New York, USDiedDecember 26, 2006(2006-12-26) (aged 81)Princeton, New Jersey, USCitizenshipUnited StatesAlma mater New York University University of Chicago Known forKruskal–Szekeres coordinatesKruskal–Shafranov instabilityBer…

American writer (born 1972) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Joe Hill writer – news · newspapers · books · scholar · JSTOR (February 2024) (Learn how and when to remove this message) For other people with similar names, see Joe Hill and Joe King. Joe HillHill at the 2019 WonderConBornJoseph …

莎拉·阿什頓-西里洛2023年8月,阿什頓-西里洛穿著軍服出生 (1977-07-09) 1977年7月9日(46歲) 美國佛羅里達州国籍 美國别名莎拉·阿什頓(Sarah Ashton)莎拉·西里洛(Sarah Cirillo)金髮女郎(Blonde)职业記者、活動家、政治活動家和候選人、軍醫活跃时期2020年—雇主內華達州共和黨候選人(2020年)《Political.tips》(2020年—)《LGBTQ國度》(2022年3月—2022年10月)烏克蘭媒體…

Kembali kehalaman sebelumnya