DIGITAL RESEARCH TM CP/M Operating System Manual CP/M Features and Facilities the CP/M Editor

Total Page:16

File Type:pdf, Size:1020Kb

DIGITAL RESEARCH TM CP/M Operating System Manual CP/M Features and Facilities the CP/M Editor CP/M Features and Facilities The CP/M Editor DIGITAL RESEARCH TM CP/M Operating System Manual COPYRIGHT Copyright C 1976, 1977, 1978, 1979, 1982, and 1983 by Digital Research. All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise, without the prior written permission of Digital Research, Post Office Box 579, Pacific Grove, California 93950. This manual is, however, tutorial in nature. Thus, the reader is granted permission to include the example programs, either in whole or in part, in his own programs. DISCLAIMER Digital Research makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. Further, Digital Research reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation of Digital Research to notify any person of such revision or changes. TRADEMARKS CP/M and CP/NET are registered trademarks of Digital Research. ASM, DESPOOL, DDT, LINK-80, MAC, MP/M, PL/1-80 and SID are trademarks of Digital Research. Intel is a registered trademark of Intel Corporation. TI Silent 700 is a trademark of Texas Instruments Incorporated. Zilog and Z80 are registered trademarks of Zilog, Inc. The CP/M Operating System Manual was printed in the United States of America. First Edition: 1976 Second Edition: July 1982 Third Edition: September 1983 Table of Contents 1 CP/M Features and Facilities 1.1 Introduction 1-1 1.2 Functional . Description .......................... 1-3 1.2.1 ....General Command Structure ............. 1-3 1.2.2 ....File References ........................ 1-4 1.3 Switching . Disks ................................ 1-7 1.4 Built-in . Commands ............................ 1-7 1.4.1 ....ERA ................................. 1-8 1.4.2 ....DIR .................................. 1-9 1.4.3 ....REN ................................ 1-10 1.4.4 ....SAVE ............................... 1-11 1.4.5 ....TYPE ............................... 1-11 1.4.6 ....USER ............................... 1-12 1.5 Line Editing and Output Control 1-12 1.6 Transient Commands 1-14 1.6.1 STAT .......................................I -15 1.6.2 ASM ........................................1-22 1.6.3 LOAD .......................................1-24 1.6.4 PIP ..........................................1-25 1.6.5 ED ..........................................1-35 1.6.6 SYSGEN ....................................1-37 1.6.7 SUBMIT .....................................1-39 1.6.8 DUMP ......................................1-41 1.6.9 MOVCPM ...................................1-42 1.7 BDOS Error Messages ............................... 1-44 1.8 Operation of CP/M on the MDS ....................... 1-46 2 ED 2.1 Introduction to ED ................................... 2-1 2.1.1 ED Operation ............................... 2-1 2.1.2 Text Transfer Functions ....................... 2-3 2.1.3 Mei-norv Buffer Organization .................. 2-4 2.1.4 Line numbers and ED Start Up ................. 2-5 2.1.5 Metnorv Buffer Operation ..................... 2-7 2.1.6 Command Strings ............................ 2-8 Table of Contents (continued) 2.1.7 Text Search and Alteration .......... 2-11 2.1.8 Source Libraries ................... 2-15 2.1.9 Repetitive Command Execution ...... 2-17 2.2 ED Error Conditions ....................... 2-18 2.3 Control Characters and Commands 2-19 3 CP/M Assembler 3.1 Introduction ...................................... 3-1 3.2 Program Format ................................... 3-3 3.3 Forming the Operand ............................... 3-4 3.3.1 Labels ................................... 3-5 3.3.2 Numeric Constants ......................... 3-5 3.3.3 Reserved Words ........................... 3-6 3.3.4 String Constants ........................... 3-7 3.3.5 Arithmetic and Logical Operators ............. 3-7 3.3.6 Precedence of Operators ..................... 3-9 3.4 Assembler Directives .............................. 3-10 3.4.1 The ORG Directive ........................ 3-11 3.4.2 The END Directive ........................ 3-11 3.4.3 The EQU Directive ........................ 3-12 3.4.4 The SET Directive ........................ 3-13 3.4.5 The IF and ENDIF Directive ................ 3-13 3.4.6 The DB Directive ......................... 3-15 3.4.7 The DW Directive ......................... 3-15 3.4.8 The DS Directive ......................... 3-16 3.5 Operation Codes ................................. 3-16 3.5.1 Jumps, Calls, and Returns .................. 3-17 3.5.2 Immediate Operand Instructions ............. 3-19 3.5.3 Increment and Decrement Instructions ........ 3-20 3.5.4 Data Movement Instructions ................ 3-21 3.5.5 Arithmetic Logic Unit Operations ............ 3-22 3.5.6 Control Instuctions ........................ 3-24 3.6 Error Messages ................................... 3-24 3.7 A Sample Session ................................ 3-26 Table of Contents (continued) 4 CP/M Dynamic Debugging Tool 4.1 Introduction 4-1 4.2 DDT Commands 4-4 4.2.1 The A (Assembly) Command 4-4 4.2.2 The D (Display) Command ................... 4-5 4.2.3 The F (Fill) Command ....................... 4-5 4.2.4 The G (Go) Command ....................... 4-6 4.2.5 The I (Input) Command ...................... 4-7 4.2.6 The L (List) Command ....................... 4-7 4.2.7 The M (Move) Command ..................... 4-8 4.2.8 The R (Read) Command ...................... 4-8 4.2.9 The S (Set) Command ........................ 4-9 4.2.10 The T (Trace) Command ..................... 4-9 4.2.11 The U (Untrace) Command .................. 4-10 4.2.12 The X (Examine) Command ................. 4-10 4.3 Implementation Notes 4-11 4.4 A Sample Program 4-12 · CP/M 2 System Interface 5.1 Introduction ...................................... 5-1 5.2 Operating Svstem Call Conventions .................. 5-4 5.3 A Sample Flie-to-File Copy Program ................. 5-36 5.4 A Sample File Dump Utility ........................ 5-40 5.5 A Sample Random Access Program .................. 5-46 5.6 System Function Summary ......................... 5-54 6 CP/M Alteration 6.1 Introduction ...................................... 6-1 6.2 First-level System Regeneration ...................... 6-3 6.3 Second-level System Generation ..................... 6-6 6.4 Sample GETSYS and PUTSYS Program ............. 6-11 6.5 Disk Organization ................................ 6-13 6.6 The BIOS Entry Points ............................ 6-15 6.7 A Sample BIOS .................................. 6-25 6.8 A Sample Cold Start Loader ........................ 6-25 Table of Contents (continued) 6.9 Reserved Locations in Page Zero .......................6-26 6.10 Disk Parameter Tables ................................6-28 6.11 The DISKDEF Macro Library ..........................6-34 6.12 Sector Blocking and Deblocking ........................6-39 Appendixes A The MDS Basic 1/0 System (BIOS) ........................ A-1 B A Skeletal CBIOS ...................................... B-1 C A Skeletal GETSYS/PUTSYS Program .................... C-1 D The MDS-800 Cold Start Loader for CP/M 2 ................ D-1 E A Skeletal Cold Start Loader ............................. E-1 F CP/M Disk Definition Library .............................F-I G Blocking and Deblocking Algorithms ...................... G-1 H Glossary .............................................. H-1 I CP/M Messages ........................................ 1-1 Tables 1-1 Line-editing Control Characters ............................1-12 1-2 CP/M Transient Commands ...............................1-14 1-3 Physical Devices ........................................1-17 1-4 PIP Parameters ..........................................1-31 2-1 ED Text Transfer Commands ...............................2-3 2-2 Editing Commands .......................................2-8 2-3 Line-editing Controls ......................................2-9 2-4 Error Message Symbols ...................................2-18 2-5 ED Control Characters ...................................2-19 2-6 ED Commands ..........................................2-20 3-1 Reserved Characters ......................................3-6 3-2 Arithmetic and Logical Operations ..........................3-7 3-3 Assembler Directives .....................................3-10 3-4 Jumps, Calls, and Returns .................................3-17 3-5 Immediate Operand Instructions ............................3-19 3-6 Increment and Decrement Instructions .......................3-20 Table of Contents (continued) 3-7 Data Movement Instructions .............................3-21 1-1 Arithmetic Logic Unit Operations .........................3-22 3-9 Error Codes ...........................................3-24 3-10 Error Messages ........................................3-25 4-1 Line-editing Controls ....................................4-2 4-2 DDT Comniatids ........................................4-2 4-3 CPU Registers .........................................4-11 5-1 CP/M Filetypes .........................................5-7 5-2 File Control Block Fields .................................5-9 5 -3 Edit Control Characters .................................5-16 6-1 Standard Memory Size Values .............................6-3 6-2 Common Values for CP/M
Recommended publications
  • Go Forth with TTL !
    Go Forth with TTL ! The Gigatron TTL Color Computer Forth for a Very Unusual Processor Ken Boak SV Fig. Forth Day 2019 . In September of 1975, MOS Technology launched the 6502 at the Wescon75 Computer Conference in San Francisco. Chuck Peddle and his team had created a very lean, stripped down, small die cpu. Costing just $25, the 6502 was a fraction of the cost of its nearest competitor. At that time the Intel 8080 was $360 and the Motorola 6800 was $175 . The 6502 was clearly a disruptive usurper. 25 year old, HP Engineer, Steve Wozniak, realised that this new microprocessor would be a game-changer and went on to incorporate it into the small computer he was developing. That machine went on to become the Apple I. In 1975 7400 TTL was the “Bread and Butter” of logic design: 7400 series TTL integrated circuits were developed in the early 1960’s. Initially quite expensive so mainly used in Military and Aerospace applications. By the early 1970’s TTL had become a versatile family of standardised, low cost,. easy to use logic. Typically about $1 per device. 7400 series logic was widely used in the design of minicomputers, including the PDP-11, the Data General Nova 1200 and later models of PDP-8. TTL was a viable, faster and cheaper processing solution than the emerging 8-bit microprocessors such as MOS 6502, Intel 8080 and the Motorola 6800. Essential Reading 16-bit TTL CPU board from Data General Nova 1200 The Gigatron TTL Computer – What is it? Started as a Hackaday.io project in Spring 2017 by Marcel van Kervinck of The Hague, Netherlands.
    [Show full text]
  • Exploring Software Inefficiency With
    ZeroSpy: Exploring Software Inefficiency with Redundant Zeros Xin You∗, Hailong Yang∗y, Zhongzhi Luan∗, Depei Qian∗ and Xu Liuz Beihang University, China∗, North Carolina State University, USAz State Key Laboratory of Mathematical Engineering and Advanced Computing, Wuxi, Chinay fyouxin2015,hailong.yang,07680,[email protected]∗, [email protected] Abstract—Redundant zeros cause inefficiencies in which the 1 for(int i=0;i<1000;++i) { 2 A[i] = 0; B[i] = i; zero values are loaded and computed repeatedly, resulting in 3 } 4 ... unnecessary memory traffic and identity computation that waste 5 for(int i=0;i<1000;++i) memory bandwidth and CPU resources. Optimizing compilers 6 I C[i] = A[i]-B[i]; is difficult in eliminating these zero-related inefficiencies due to Listing 1. An example code working on redundant zeros, where all variables are 32-bit integers. limitations in static analysis. Hardware approaches, in contrast, optimize inefficiencies without code modification, but are not enough to fulfill the computation, which yields better cache widely adopted in commodity processors. In this paper, we 1 propose ZeroSpy - a fine-grained profiler to identify redundant usage and vectorization potentials . zeros caused by both inappropriate use of data structures and Actually, a larger number of real-world applications (e.g., useless computation. ZeroSpy also provides intuitive optimization deep neural network and high-efficiency video coding) have guidance by revealing the locations where the redundant zeros already been reported to contain a significant amount of happen in source lines and calling contexts. The experimental redundant zeros and achieved significant speedup from the results demonstrate ZeroSpy is capable of identifying redundant zeros in programs that have been highly optimized for years.
    [Show full text]
  • 6502 Introduction
    6502 Introduction Philipp Koehn 18 September 2019 Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 1 some history Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 1971 2 • First microprocessor on an integrated circuit: Intel 4004 • 4-bit central processing unit, 12 bit address space (4KB) Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 1975 3 • MOS Technology 6502 • Dominant CPU in home computers for a decade (Atari, Apple II, Nintendo Entertainment System, Commodore PET) Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 1977 4 • Atari 2600 • Video game console: Pong, Pac Man, ... connected to TV Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 1980 5 • Commodore VIC20 • 1 MHz, 5KB RAM, BASIC, 3.5KB RAM, 176x184 3 bit color video Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 1982 6 • Commodore C64 • 64KB RAM, 320x200 4 bit color video Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 Commodore C64 7 • BASIC programming language, but serious programs written in assembly • No fancy stuff like multi-process, user accounts, virtual memory, etc. • Machine itself had no mass storage - had to buy tape drive, then floppy disk drive, machine was obsolete once hard drives came around Philipp Koehn Computer Systems Fundamentals: 6502 Introduction 18 September 2019 BASIC Demo 8 • Commands get executed (just like Python interpreter)
    [Show full text]
  • Download a Sample
    Preface Like many American kids in 1979, I woke up to find that Santa had left a brand new Atari VCS1 under the tree (thanks, Mom and Dad, for paying Santa’s invoice!). This was a pretty big deal for a six- year-old who could tell you the location and manufacturer of every standup arcade cabinet within a five mile radius. Having an “arcade in your home” wasn’t just a thing you saw on Silver Spoons, it was now a real thing. The sights and sounds that jumped o↵ of our little Panasonic color TV probably deserve a gigantic run-on sentence worthy of Dylan Thomas, as my brother and I bounced tiny pixellated missiles o↵ of walls in Combat, combed through the perplexing game modes of Space Invaders, battled angry duck-like dragons in Adventure, and became Superman as we put flickering bad guys in a flickering jail. These cartridges were opaque obelisks packaged in boxes with fantastically unattainable illustrations, available at K-Mart for $30 or so. You could tell these species of video games weren’t related to arcade games, though they had a unique look-and-feel of their own. We also had an Apple ][ by this time, so I tried to fit all of these creatures into a digital taxonomy. Atari games had colors and fast motion, but not as much as arcade games, and they never were as complex as Apple ][ games. What made them tick? Why were Activision games so much more detailed? Would the missile still blow up your spaceship if you turned the TV o↵? (Turns out the answer is yes.) 1 It wasn’t sold as “Atari 2600” until 1982.
    [Show full text]
  • The Ultimate C64 Overview Michael Steil, 25Th Chaos Communication Congress 2008
    The Ultimate C64 Overview Michael Steil, http://www.pagetable.com/ 25th Chaos Communication Congress 2008 Retrocomputing is cool as never before. People play Look and Feel C64 games in emulators and listen to SID music, but few people know much about the C64 architecture A C64 only needs to be connected to power and a TV and its limitations, and what programming was like set (or monitor) to be fully functional. When turned back then. This paper attempts to give a comprehen- on, it shows a blue-on-blue theme with a startup mes- sive overview of the Commodore 64, including its in- sage and drops into a BASIC interpreter derived from ternals and quirks, making the point that classic Microsoft BASIC. In order to load and save BASIC computer systems aren't all that hard to understand - programs or use third party software, the C64 re- and that programmers today should be more aware of quires mass storage - either a “datasette” cassette the art that programming once used to be. tape drive or a disk drive like the 5.25" Commodore 1541. Commodore History Unless the user really wanted to interact with the BA- SIC interpreter, he would typically only use the BA- Commodore Business Machines was founded in 1962 SIC instructions LOAD, LIST and RUN in order to by Jack Tramiel. The company specialized on elec- access mass storage. LOAD"$",8 followed by LIST tronic calculators, and in 1976, Commodore bought shows the directory of the disk in the drive, and the chip manufacturer MOS Technology and decided LOAD"filename",8 followed by RUN would load and to have Chuck Peddle from MOS evolve their KIM-1 start a program.
    [Show full text]
  • Operating System
    OPERATING SYSTEM INDEX LESSON 1: INTRODUCTION TO OPERATING SYSTEM LESSON 2: FILE SYSTEM – I LESSON 3: FILE SYSTEM – II LESSON 4: CPU SCHEDULING LESSON 5: MEMORY MANAGEMENT – I LESSON 6: MEMORY MANAGEMENT – II LESSON 7: DISK SCHEDULING LESSON 8: PROCESS MANAGEMENT LESSON 9: DEADLOCKS LESSON 10: CASE STUDY OF UNIX LESSON 11: CASE STUDY OF MS-DOS LESSON 12: CASE STUDY OF MS-WINDOWS NT Lesson No. 1 Intro. to Operating System 1 Lesson Number: 1 Writer: Dr. Rakesh Kumar Introduction to Operating System Vetter: Prof. Dharminder Kr. 1.0 OBJECTIVE The objective of this lesson is to make the students familiar with the basics of operating system. After studying this lesson they will be familiar with: 1. What is an operating system? 2. Important functions performed by an operating system. 3. Different types of operating systems. 1. 1 INTRODUCTION Operating system (OS) is a program or set of programs, which acts as an interface between a user of the computer & the computer hardware. The main purpose of an OS is to provide an environment in which we can execute programs. The main goals of the OS are (i) To make the computer system convenient to use, (ii) To make the use of computer hardware in efficient way. Operating System is system software, which may be viewed as collection of software consisting of procedures for operating the computer & providing an environment for execution of programs. It’s an interface between user & computer. So an OS makes everything in the computer to work together smoothly & efficiently. Figure 1: The relationship between application & system software Lesson No.
    [Show full text]
  • W65C02S Microprocessor DATA SHEET
    The Western Design Center, Inc. February 2004 W65C02S Data Sheet W65C02S Microprocessor DATA SHEET WDC ã The Western Design Center, Inc., 2003. All rights reserved The Western Design Center, Inc. February 2004 W65C02S Data Sheet WDC reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. Information contained herein is provided gratuitously and without liability, to any user. Reasonable efforts have been made to verify the accuracy of the information but no guarantee whatsoever is given as to the accuracy or as to its applicability to particular uses. In every instance, it must be the responsibility of the user to determine the suitability of the products for each application. WDC products are not authorized for use as critical components in life support devices or systems. Nothing contained herein shall be construed as a recommendation to use any product in violation of existing patents or other rights of third parties. The sale of any WDC product is subject to all WDC Terms and Conditions of Sales and Sales Policies, copies of which are available upon request. Copyright Ó1981-2004 by The Western Design Center, Inc. All rights reserved, including the right of reproduction, in whole, or in part, in any form. The Western Design Center, Inc. W65C02S Data Sheet 2 The Western Design Center, Inc. W65C02S Data Sheet TABLE OF CONTENTS 1 INTRODUCTION................................................................................................................................................................................5
    [Show full text]
  • W65C02S 8–Bit Microprocessor
    October 19, 2010 W65C02S 8–bit Microprocessor WDC reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. Information contained herein is provided gratuitously and without liability, to any user. Reasonable efforts have been made to verify the accuracy of the information but no guarantee whatsoever is given as to the accuracy or as to its applicability to particular uses. In every instance, it must be the responsibility of the user to determine the suitability of the products for each application. WDC products are not authorized for use as critical components in life support devices or systems. Nothing contained herein shall be construed as a recommendation to use any product in violation of existing patents or other rights of third parties. The sale of any WDC product is subject to all WDC Terms and Conditions of Sales and Sales Policies, copies of which are available upon request. Copyright ©1981-2010 by The Western Design Center, Inc. All rights reserved, including the right of reproduction, in whole, or in part, in any form. TABLE OF CONTENTS 1 INTRODUCTION ....................................................................................................... 5 1.1 FEATURES OF THE W65C02S ........................................................................................................... 5 2 FUNCTIONAL DESCRIPTION .................................................................................. 6 2.1 INSTRUCTION REGISTER (IR) AND DECODE .......................................................................................
    [Show full text]
  • Programming the 65816
    Programming the 65816 Including the 6502, 65C02 and 65802 Distributed and published under COPYRIGHT LICENSE AND PUBLISHING AGREEMENT with Authors David Eyes and Ron Lichty EFFECTIVE APRIL 28, 1992 Copyright © 2007 by The Western Design Center, Inc. 2166 E. Brown Rd. Mesa, AZ 85213 480-962-4545 (p) 480-835-6442 (f) www.westerndesigncenter.com The Western Design Center Table of Contents 1) Chapter One .......................................................................................................... 12 Basic Assembly Language Programming Concepts..................................................................................12 Binary Numbers.................................................................................................................................................... 12 Grouping Bits into Bytes....................................................................................................................................... 13 Hexadecimal Representation of Binary................................................................................................................ 14 The ACSII Character Set ..................................................................................................................................... 15 Boolean Logic........................................................................................................................................................ 16 Logical And.......................................................................................................................................................
    [Show full text]
  • Memory Management in Linux Is a Complex System ○ Supports a Variety of Systems from MMU-Less Microcontrollers to Supercomputers
    Linux Memory Management Ahmed Ali-Eldin This lecture ● Kernel memory allocations ● User-space memory management ● Caching in memory Numbers every programmer should know... Yearly updated data: https://colin-scott.github.io/personal_website/research/interactive_latency.html Kernel memory allocation ● Kernel processes require memory allocation ○ kernel cannot easily deal with memory allocation errors ○ kernel often cannot sleep ● The kernel memory allocation mechanisms differ from user-space allocation ● The kernel treats physical pages as the basic unit of memory management ● x-86 processors include a hardware Memory Management Unit (MMU) ● Memory management in Linux is a complex system ○ supports a variety of systems from MMU-less microcontrollers to supercomputers. Pages in Linux ● Old days: Pages with default size 4 KB ● Now: Huge pages + 4KB pages (since kernel 2.6.3) ● Rationale ○ on a machine with 8KB pages and 32GB of memory, physical memory is divided into 4,194,304 distinct pages ○ 64-bit Linux allows up to 128 TB of virtual address space for individual processes, and can address approximately 64 TB of physical memory ○ While assigning memory to a process is relatively cheap, memory management is not! ■ Every memory access requires a page walk ■ Typically take 10 to 100 cpu cycles ■ A TLB can hold typically only 1024 entries (out of the 4 Million distinct pages above) and has to be flushed every context switch Large Memory Applications ● Applications touching greater than 10 GB such as a large in-memory database with 17 GiB with 1000 connections ○ Uses approximately 4.4 million pages ○ With a page table size of 16 GiB ● Idea: Having larger page sizes enables a significant reduction in memory walks for such an application Huge Pages ● on x86, it is possible to map 2M and even 1G pages using entries in the second and the third level page tables.
    [Show full text]
  • 6500 Microprocessors
    C o m m o d o r e Semiconductor G roup C f q division of Commodore Business Machines, Inc. 950 Rjrrenhouse Rood. Nomsrown PA 19403 • 215/666-7950 • TWX 510-660-4160 NMOS 6500 MICROPROCESSORS 6500 MICROPROCESSORS THE 6500 MICROPROCESSOR FAMILY CONCEPT — The 6500 Series Microprocessors represent the first totally software compatible microprocessor family. This family of products includes a range of software compatible microprocessors which provide a selection of addressable memory range, interrupt input options and on-chip clock oscillators and drivers. All of the microprocessors in the 6500 group are software compatible within the group and are bus compatible with the M6800 product offering. The family includes six microprocessors with on-board clock oscillators and drivers and four microprocessors driven by external clocks. The on-chip clock versions are aimed at high performance, low cost applications where single phase inputs, crystal or RC inputs provide the time base. The external clock versions are geared for the multi processor system applications where maximum timing control is mandator/. All versions of the microprocessors are available in 1 MHz, 2 MHz (“A" suffix on product numbers), 3 MHz ("B” suffix on product numbers), and 4 MHz (“C” suffix on product numbers) maximum operating frequencies. FEATURES OF THE 6500 FAMILY . Single +5 volt supply • 8 BIT Bi-directional Data Bus . N channel, silicon gate, depletion load • Addressable memory range of up to 65K technology bytes • Eight bit parallel processing • “Ready” input (for single cycle execution) • 56 Instructions • Direct memory access capability . Decimal and binary arithmetic • Bus compatible with M6800 . Thirteen addressing modes • Choice of external or on-board clocks « True indexing capability • 1 MHz, 2 MHz, 3 MHz and 4 MHz operation .
    [Show full text]
  • Virtual Memory 2
    virtual memory 2 1 last time message passing as alternative to threads run multiple processes without sharing memory explicit send/recv calls to move data single-level page tables program addresses = virtual addresses machine addresses = physical addresses divide up memory (virtual + physical) into pages page size = power of two page table: map from virtual to physical pages multi-level page tables (wide) tree to store page table split up virtual page number into parts, use each part at each level first-level points to location of second-level last-level points to actual program data omit parts of second level that are entirely invalid 2 first-level page table entries page table base register (CR3) second-level page table entries x86-32 page table entries 3 first-level page table entries second-level page table entries x86-32 page table entries page table base register (CR3) 3 page table base register (CR3) second-level page table entries x86-32 page table entries first-level page table entries 3 first-level page table entries page table base register (CR3) x86-32 page table entries second-level page table entries 3 x86-32 page table entry v addresses phys. physical page number zeros page byte addr flags trick: page table entry with lower bits zeroed = physical byte address of corresponding page page # is address of page (212 byte units) makes constructing page table entries simpler: physicalAddress | flagsBits 4 x86-32 pagetables: page table entries xv6 header: mmu.h // Page table/directory entry flags. #define PTE_P 0x001 // Present
    [Show full text]