“Soul” of CP/M: the Universal System Calls That Make CP/M the World’S Most Popular Microcomputer Operating System

Total Page:16

File Type:pdf, Size:1020Kb

“Soul” of CP/M: the Universal System Calls That Make CP/M the World’S Most Popular Microcomputer Operating System SOUL OF CP/M® (How to Use the Hidden Power of Your CP/M® System) by Mitchell Waite and Robert Lafore Howard W. Sams & Co. A Division of Macmillan, Inc. 4300 West 62nd Street, Indianapolis, IN 46268 USA © 1983 by the Waite Group, Inc. FIRST EDITION THIRD PRINTING - 1986 All rights reserved. No part of this book shall be repro­ duced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. While every precaution has been taken in the preparation of this book, the pub­ lisher assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. International Standard Book Number: 0-672-22030-X Library of Congress Catalog Card Number: 83-61059 Edited by: Frank N. Speights Illustrated by: Kevin Caddell Printed in the United States of America. Preface * Have you ever wanted to know how the CP/M® operating system really works? * Would you like to use CP/M’s hidden power in your own BASIC or assembly language programs? * Are you a BASIC programmer who would like to learn assembly lan­ guage, but have been told that it’s too complicated? * Do you need to modify CP/M to work with a particular printer or some other I/O device? * Do you want to write programs that will work with any version of CP/M ? If the answer to any of these questions is yes, then this book, with its unique approach to teaching both CP/M systems calls and 8080 assembly language programming, is for you. Starting with simple three- and four-line programs, we ease you into the “soul” of CP/M: the universal system calls that make CP/M the world’s most popular microcomputer operating system. Gradually and easily, you’ll learn how to write programs to control all your I/O devices, including the disk system, and, also, perform a variety of other functions. Remember, you don’t need to know how to program in assembly language to understand this book! We’ll teach you all the 8080 assembly language that you will need to know and, since you’ll be learning the system calls at the same time, your programs will be able to perform powerful functions from the very beginning. CP/M is the registered trademark of Digital Research, Inc., Pacific Grove, CA Soul of CP/M® You’ll also learn how to use these powerful system calls in your BASIC programs, how CP/M manages disk files, and how to modify CP/M’s “BIOS” (Basic Input/Output System) to work with different I/O devices, so that you can customize CP/M for a particular printer or other device. All in all, if you want to do more with your CP/M system than simply run applications programs, then this book is for you! M it c h e l l W a it e a n d R o b e r t La f o r e Acknowledgments The authors would like to thank Mark Berger, Phil Chapnick, and Scott Kamins for their many helpful comments, criticisms, and suggestions. Their pioneering journey on the road followed by this book has resulted in remov­ ing many obstacles from the path of future readers. Dedication by Robert Lafore This book is dedicated to my parents. Contents Introduction ............................................................ 11 Soul of CP/M-Who Is This Book For—What This Book Will Teach You-8080, 8080A, 8085, Z-80: W hat’s the Difference?- What You Need To Know To Get the Most Out of This Book— How This Book Is Organized—How To Enjoy This Book CHAPTER 1 T h e B ig Pic t u r e : H ow CP/M Is O r g a n iz e d ................................................... 17 What Is an Operating System, Anyway?—What’s So Great About CP/M?-The Parts of CP/M—8080 Architecture—DDT-The Programmer’s X Ray and Probe—Back Down to Earth CHAPTER 2 ONE T o e IN t h e W a t e r : Console System C a lls....................................... 31 Console Output System Call—Get Console Status—Barber-Pole Display Program-Console Input—Executing Programs From CP/M —System Rest-A Warm Boot—So Long, Chapter 2, It’s Been Good To Know You CHAPTER 3 G e t t in g in D e e p e r : Advanced Console System Calls .......................... 71 Print String-Read Console Buffer—Echo Program-Name Display Program—Direct Console I/O-List Output to Printer-Reader Input-Punch Output-Get I/O Byte-Set I/O Byte-Goodbye, Nondisk System Calls CHAPTER 4 U s in g t h e A s s e m b l e r ................................................................................................... 107 What’s an Assembler Do, Anyway?—What ASM Does—The “DECIBIN” Routine-Reads Decimal From Keyboard-DECIHEX Program-Converts Decimal to Hex, on Screen—BINIHEX-Binary to Decimal Conversion Routine—Using CP/M’s Submit Utility— Graduation Time CHAPTER 5 D isk Sy st e m C a l l s ............................................................................................................137 Records, Files, Tracks, Sectors, Allocation Units, Extents, and Goodness Knows What Else—Talking to BDOS—Open File—The Problem With Where the DMA Is Located—Read Sequential Sys­ tem Call—Set DMA Address—TYPE2 Program-Imitates the “TYPE” Command—LINES Program-Prints Number of Lines in Text File—Life on the Fast Track CHAPTER 6 W riting to t h e D i s k ......................................................................................................169 Writing a Sequential Record—Make File—Write Sequential Rec­ ord-Close File System Call—Program to Write a Sequential Rec­ ord—STORE Program-Stores Text in File-Delete File System Call—Random Records-Read Random System Call-Write Ran­ dom System Call—RANDYMOD-Program to Modify a Random Record—Compute File Size System Call-Set Random Record Sys­ tem Call-Out of Ink CHAPTER 7 So u l Se a r c h in g : Wildcards and the Disk D ire c to ry ...............................201 How CP/M Stores Files on the Disk—Search For First System Call—Wildcards—Search For Next System Call—Erased Files—Sav­ ing an Erased File—The Bit Map-WORDS Program-Counts Words in Files and Uses Wildcards CHAPTER 8 T e a m w o r k : Using System Calls From B A S IC ............................................243 Where Do We Put the A-L Program in Memory?—How To Get the A-L Program Where We Want It To Go—How Do We Transfer Control Between BASIC and the A-L Routine?-How Do We Pass Arguments Between BASIC and the A-L Routine?-BINIHEX2- A-L Routine Called From BASIC-Other Ways To Put the A-L Routine Into Memory-HEXIBIN2-Passing Arguments to BASIC From an A-L Routine-Operating on Strings With an A-L Rou­ tine-Back to Basics CHAPTER 9 T h e In n e r m o s t So u l o f CP/M : H ow To Modify CP/M for Different Peripherals............................................................................................ 279 Why You’re Reading This Chapter-What Is the BIOS Anyway?— Learning Your Way Around the BIOS-The Complete BIOS List­ ing—How to Modify Your Printer Driver—Installing the New Driver Into Your BlOS-Inserting the New Driver Into the CP/M System-A Shortcut-Modifying BIOS for Different Control Char- acters-The Sky’s the Limit APPENDIX A H e x a d e c im a l N o t a t i o n ............................................................................................... 323 Why Use Hexadecimal Notation?—Binary Notation—Decimal Notation—Hexadecimal Notation—Converting Hex to Decimal- Converting Decimal to Hex APPENDIX B U t il it y Pr o g r a m s ............................................................................................. 331 HEXDUMP-Micro Space Invaders-HEXIDEC-FILEDUMP APPENDIX C Su m m a r y o f 8080 Instructions ................................................................... 345 8080 Architecture—8080 Instructions—Assembler Directives APPENDIX D T a b l e s ..................................: ............................................................................. 359 ASCII Character Set With Hexadecimal Equivalents—Hexadeci- mal-to-Decimal Conversion—Multiples of IK (1024), in Decimal and Hexadecimal—Decimal, Hex, and Binary Conversion APPENDIX E Su m m a r y o f B D O S Sy st e m Ca lls (F o r CP/M 2.2) 365 APPENDIX F Su m m a r y o f DDT C o m m a n d s ......................................................................369 Loading DDT—“A” for Assemble—“D” for Dump Memory—“F” for Fill—“G” for GO—“H” for Hexadecimal Arithmetic—“I” Com- mand-“L” for List-“M” for Move-“R” for Read-“S” for Set Memory-“T” for Trace-“U” for Untrace-“X” for Examine Reg­ isters APPENDIX G Su m m a r ie s o f P r o g r a m s U s e d a n d Lo c a t io n s o f In s t r u c t io n D escription s ....................................................................................................................... 379 Programs Used-Descriptions of Instructions In d e x 383 Introduction SOUL OF CP/M® What do we mean by the “Soul” of CP/M? One of CP/M’s most pleasant features is its ease of use. The loading of applications programs, the use of such CP/M functions as DIR, STAT, and PIP, and the use of higher-level languages such as BASIC or FORTRAN, are all simple and straightforward 11 Soul of CP/M® in the CP/M environment. In fact, this efficient facade is all that many users will ever know about CP/M.
Recommended publications
  • Xbase++ Language Concepts for Newbies Geek Gatherings Roger Donnay
    Xbase++ Language Concepts for Newbies Geek Gatherings Roger Donnay Introduction Xbase++ has extended the capabilities of the language beyond what is available in FoxPro and Clipper. For FoxPro developers and Clipper developers who are new to Xbase++, there are new variable types and language concepts that can enhance the programmer's ability to create more powerful and more supportable applications. The flexibility of the Xbase++ language is what makes it possible to create libraries of functions that can be used dynamically across multiple applications. The preprocessor, code blocks, ragged arrays and objects combine to give the programmer the ability to create their own language of commands and functions and all the advantages of a 4th generation language. This session will also show how these language concepts can be employed to create 3rd party add-on products to Xbase++ that will integrate seamlessly into Xbase++ applications. The Xbase++ language in incredibly robust and it could take years to understand most of its capabilities, however when migrating Clipper and FoxPro applications, it is not necessary to know all of this. I have aided many Clipper and FoxPro developers with the migration process over the years and I have found that only a basic introduction to the following concepts are necessary to get off to a great start: * The Xbase++ Project. Creation of EXEs and DLLs. * The compiler, linker and project builder . * Console mode for quick migration of Clipper and Fox 2.6 apps. * INIT and EXIT procedures, DBESYS, APPSYS and MAIN. * The DBE (Database engine) * LOCALS, STATICS, PRIVATE and PUBLIC variables. * STATIC functions.
    [Show full text]
  • Dbase Plus 1 Table Designer Behavior
    User’s Guide VERSION 7.5 release 2.61 for Windows® 98, 2000, NT ME and XP dataBased Intelligence, Inc. Vestal, NY http://www.dbase.com news://news.dbase.com dataBased Intelligence, Inc. or Borland International may have patents and/or pending patent applications covering subject matter in this document. The furnishing of this document does not give you any license to these patents. COPYRIGHT © 2006 dataBased Intelligence, Inc. All rights reserved. All dBASE product names are trademarks or registered trademarks of dataBased Intelligence, Inc. All Borland product names are trademarks or registered trademarks of Borland International, Inc. Other brand and product names are trademarks or registered trademarks of their respective holders. Printed in the U.S.A. Contents Chapter 1 Source Editor behavior . .10 Introduction to dBASE Plus 1 Table Designer behavior . .11 Optimized ReportViewer . .11 Welcome to dBASE Plus !. 1 Overview of dBASE Plus version 2.5. .11 What is dBASE Plus? . 1 Mouse events . .11 dBASE Newsgroups . 2 Grid Class . .11 The dBASE Plus Knowledgebase: . 2 Project Explorer . .11 Changes from earlier versions . 2 TreeView. .12 Visual dBase 5.x through Visual dBase 7.0 . 2 Array Class . .12 Report objects and the integrated Report designer . 3 Report . .12 Project Explorer . 3 Inspector . .12 Data objects. 3 _app Object . .12 Visual designers . 3 _app.frameWin . .12 ActiveX integration. 4 Procedure files . .12 The Inspector . 4 Report Designer . .12 Full-featured Source editor . 4 Error Handling. .12 SQL designer . 4 CHOOSEPRINTER( ) and choosePrinter( ) . .13 BDE Administrator and database support . 4 Overview of dBASE Plus version 2.6 . .13 DBF7 file format features .
    [Show full text]
  • Quick Recovery for Dbase
    QUICK RECOVERY FOR DBASE QUICK RECOVERY FOR DBASE Operation steps Who Suffers most Features 100% data recovery is possible if Recovery Modes Frequently asked Questions © Unistal Systems Pvt. Ltd., New Delhi Quick Recovery for Dbase Quick Recovery for Dbase recovers corrupted Dbase (Database) files which get corrupted due to unexpected software crash, unexpected system shutdown, virus attacks or error reading media where documents are stored. It is a professional file repair tool to repair corrupt FoxPro databases, dBase database file. During repairing process a complete scan of the damaged database is performed to locate and extract the recoverable information from the database. After complete scanning, the database contents which are recoverable are shown in the preview window. You can then easily save the recovered results as a working dbf database file. Its unique Guided File Excavation Technology (GFETch) helps in locating files and folders lost behind overwritten partitions too. FEATURES Quick and Automated Analysis with Simple & Well guided steps to recover & repair DBF files Recovers deleted DBF files from crashed & formatted HDD Repairs Corrupt DBF table Repair .DBF files with memo or binary data fields stored in DBT files. Support for batch repairing of DBF files All recovery cases possible that have been experienced by Unistal have been incorporated All recovery cases possible that have been experienced by Unistal have been incorporated Unique Guided File Excavation Technology (GFETch) used 100% data recovery and repair is possible if; Files are accidentally deleted. Header or footer is corrupted File summary, user or track information is corrupted internal links are Intact © Unistal Systems Pvt.
    [Show full text]
  • 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]
  • Meeting Microcomputers and Bibliographic Information Systems in Latin America: Problems, Experiences and Projections
    CEPAL MEETING MICROCOMPUTERS AND BIBLIOGRAPHIC INFORMATION SYSTEMS IN LATIN AMERICA: PROBLEMS, EXPERIENCES AND PROJECTIONS Santiago, Chile 24 to 27 April 1984 eee usti CANADA Economic Commission for Latin America and the Caribbean International Development Research Centre United Nations Educational, Scientific and Cultural Organization MEETING MICROCOMPUTERS 6ND BIBLIOGRAPHIC INFORMATION SYSTEMS IN LATIN AMERICAS PROBLEMS,EXPERIENCES AND PROJECTIONS Santiago,Chile 24 to 27 April 1984 Santiago de Chile LC/L.306 CL/L.20 August 1984 CONTENTS I. Introduction «.....„...t............................ II. Objectives and conclusions of the meeting ......... III. Recommendations ................................... Appendices 1. List of participants .............................. 2. List of acronyms of institutions, information networks and software packages .................... 3 o AÇ Blld El ea««ooeao«»«aas»0O««aooo*o«O0oeo0OA«D»e«e«o« 4. Abstracts of presentations ........................ 5. Features of software packages examined ............ 6. Documentation distributed ......................... 1 I. INTRODUCTION The use of microcomputer technology is rapidly expanding in developing regions. In areas such as Latin America and the Caribbean many computerized information and documentation networks are in place and many institutions are setting up their own data bases relying upon the new microcomputer equipment for their implementation. It is to be expected that this trend will have both positive and negative implications. On the positive side,
    [Show full text]
  • Compatible with the World
    EN DE FR NL IT PsiWin 2 Supported Applications Windows compatibility? No need to worry. PsiWin 2 ensures that your Series 5 handheld computer integrates seamlessly with leading Windows programs. See the chart below, for details. compatible with the world Synchronizes with Psion Series 5 Agenda, and Data (for contacts) Office 97 Word 97 (8.0) SmartSuite Organizer 97 WordPerfect WordPerfect 8.0 Excel 97 (8.0) 97 Suite 8 Quattro Pro 8.0 Outlook 97 Office 95 / Word 95 (7.0) SmartSuite Organizer 2.1 Office WordPerfect 7.0 Pro Excel 95 (7.0) 96 / Professional 7 Quattro Pro 7.0 Schedule+ 7/7a NotesSuite / WordPerfect (.WB3) Access 95 (Pro 96 Suite 7 version) Office 4.2 / Word 6.0 SmartSuite Organizer 2.1 Office for WordPerfect 7.0 4.3 (Pro) Excel 5.0 4.0 Windows NT Quattro Pro 7.0 FoxPro 2.6 (Pro Server 4.0 (.WB3) version) Office 3.0 Word 2.0 SmartSuite Ami Pro 3.0 WordPerfect WordPerfect 6.1 Excel 4.0 3.0 / 3.1 Organizer 2.1 Suite / Office Quattro Pro 6.0 (3.1 version) Professional / (.WB2) Windows 3.1x Client Software Other Works 3.0 (word Other 1-2-3 WK1 Other WordPerfect 5.1 Applications processor) Applications 1-2-3 WK3 Applications WordPerfect 5.2 Works 4.0 (word 1-2-3 WK4 WordPerfect processor) 6.0a FoxPro 2.0, 2.5, 2.6 Quattro Pro 5.0 (.WB1) Text Rich Text Format(RTF) Database Borland Int. dBASE III, IV, 5.0 Text for Windows Comma Separated Values MS Text for MS DOS DOS Pictures Series 5 Sketch to/from Windows Sound Series 5 Record (uncompressed) BMP to/from Windows WAV Synchronizes with Psion Series 5 Agenda, and Data (for contacts) Two way exchange Word If you have Lotus SmartSuite 97 you can open and save previous Sheet versions of SmartSuite applications' files, which are Psion compatible.
    [Show full text]
  • R&R Report Writer Version 9.0, Xbase & SQL Editions New Release
    R&R Report Writer Version 9.0, xBase & SQL Editions New Release Enhancements and New Capabilities Liveware Publishing is pleased to announce an exciting set of enhancements to R&R Report Writer!! This is the first MAJOR update to R&R in almost five years, but Liveware has made up for lost time with substantial improvements for every R&R user. Developers building reports for their applications, end-users creating their own ad-hoc and production reports, and even casual R&R runtime users will all find something in this release to streamline their reporting activities. For those who have purchased and implemented every update, and particularly Liveware’s Version 8.1 release licensees, you will be rewarded for your loyalty with a reduced upgrade price and a wide range of capabilities that will make R&R even more indispensable. For others who waited, this is the upgrade to buy since it contains so many unique and compelling ideas about reporting -- and ones you can use right away!! Version 9.0 includes 5 new “modules” -- what we consider significant extensions of R&R capabilities -- and many convenience and usability improvements to open reporting to database users at all levels. The 5 new modules are (with page number in parenthesis): Email Report Bursting & Distribution (2) Report Librariantm (4) ParameteRRtm Field Prompting (9) FlexLinktm Indexing-on-the-fly (11) Rapid Runnertm Runtime Control (16) Among the other improvements, the most significant are: Pervasive Band Color-coding (18) Page X of Y Functions (20) Redesigned Table Join Dialog (21) Print Preview Band Identification (23) Drill-down in Result Set Browser (24) Visual dBase 7 Support (25) This document will summarize each of these modules and improvements and describe how they expand R&R’s capabilities to an ever-wider range of reporting needs.
    [Show full text]
  • Introduction Mainframes
    LL I I I I Introduction . 11.. V ZI i ..O. There is little question that the current enthusiasm in personal computing was catalyzed by the introduction of the MITS Altair computer kit in January 1975. This computer kit demonstrated by its cost (originally less than $400) that individuals could now afford a computer. And by its design the Altair established a standard bus structure for the personal computing industry. Less than six months after MITS announced the Altair computer, other manufacturers were announcing com- patible memory boards, interface boards, and peripherals. Within the year bus-compatible mainframes were also introduced. Today over 50 manufacturers support what is known as the Standard 100 or S-100 bus derived from the 100-wire bus used in the original Altair computer. Over 20,000 mainframes using the S-100 bus are now in the field. One key reason for the rapid growth of the personal computer industry can be found in the widespread adoption of a standard microcomputer bus. A second key reason can be found in the design innovations in mainframes, memories, and I/O interfaces designed for the S-100 bus. Figure 1. The basic personal computer can accept a number of standard 5" x 10" cards designed for the industry standard S-100 microcomputer bus. A large selection of CPU, memory, and interface cards offers a great deal of flexibility in system Mainframes design. The basic personal computer mainframe consists of a CPU, computer bus, and power supply. Most mainframes are sold in kit form (Figure 1). Without exception in the personal computing industry of manufacturer support for the S-100 bus, no fewer than a microprocessor serves as the CPU.
    [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]