Datalight ROM-DOS™

Total Page:16

File Type:pdf, Size:1020Kb

Datalight ROM-DOS™ Datalight ROM-DOS Developer’s Guide Created: April 2005 Datalight ROM-DOS Developer’s Guide Copyright © 1999-2005 by Datalight, Inc . Portions copyright © GPvNO 2005 All Rights Reserved. Datalight, Inc. assumes no liability for the use or misuse of this software. Liability for any warranties implied or stated is limited to the original purchaser only and to the recording medium (disk) only, not the information encoded on it. U.S. Government Restricted Rights. Use, duplication, reproduction, or transfer of this commercial product and accompanying documentation is restricted in accordance with FAR 12.212 and DFARS 227.7202 and by a license agreement. THE SOFTWARE DESCRIBED HEREIN, TOGETHER WITH THIS DOCUMENT, ARE FURNISHED UNDER A SEPARATE SOFTWARE OEM LICENSE AGREEMENT AND MAY BE USED OR COPIED ONLY IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF THAT AGREEMENT. Datalight and ROM-DOS are registered trademarks of Datalight, Inc. FlashFX ® is a trademark of Datalight, Inc. All other product names are trademarks of their respective holders. Part Number: 3010-0200-0715 Contents Chapter 1, Introduction..................................................................................................................5 About ROM-DOS ......................................................................................................................5 ROM-DOS Target System Requirements...........................................................................6 ROM-DOS Development System Requirements................................................................6 Requesting Technical Assistance........................................................................................6 ROM-DOS Basics......................................................................................................................7 The Major Software Components.......................................................................................7 Placing ROM-DOS in a ROM ..........................................................................................11 DOS on a Disk ..................................................................................................................12 Using ROM-DOS with Flash Memory .............................................................................13 What is SOCKETS?.................................................................................................................13 What does SOCKETS provide?...............................................................................................13 Chapter 2, About TCP/IP.............................................................................................................15 TCP/IP Layers..........................................................................................................................15 Client/Server Model.................................................................................................................16 File Transfer Protocol (FTP)....................................................................................................16 Telnet .......................................................................................................................................17 Mail..........................................................................................................................................17 Hyper Text Transfer Protocol (HTTP).....................................................................................17 Printing.....................................................................................................................................17 Application Programming Interface (API)...............................................................................18 Transmission Control Protocol (TCP)......................................................................................18 User Datagram Protocol (UDP) ...............................................................................................19 2.10. Internet Protocol (IP).......................................................................................................19 Internet Control Message Protocol (ICMP) .............................................................................20 Internet Control Message Protocol version 6 (ICMPv6)..........................................................21 Routing.....................................................................................................................................21 Internet Gateway Management Protocol (IGMP) ....................................................................21 Management Information Base version 2 (MIB II)..................................................................22 Routing Information Protocol (RIP) ........................................................................................22 Address Resolution Protocol (ARP) ........................................................................................22 BOOTP ....................................................................................................................................22 Dynamic Host Configuration Protocol (DHCP) ......................................................................23 Point-to-Point Protocol (PPP) ..................................................................................................24 Serial Line IP (SLIP)................................................................................................................24 Compressed Serial Line IP (CSLIP) ........................................................................................24 Media Support..........................................................................................................................24 Ethernet and Token Ring ..................................................................................................24 Serial Interface..................................................................................................................24 Modem pool support.........................................................................................................24 Alternate Interface support ...............................................................................................25 References................................................................................................................................25 Chapter 3, Programming Reference............................................................................................27 Library Use/Linking.................................................................................................................27 ii Contents Disclaimer.........................................................................................................................27 Compilers Supported ........................................................................................................27 Memory Models................................................................................................................27 Library and Header Locations...........................................................................................27 Header Dependencies........................................................................................................27 Sample Code.....................................................................................................................28 Contacting Support ...........................................................................................................28 ROM-DOS Libraries................................................................................................................28 Function Reference ...........................................................................................................28 TCP/IP Basic API Reference (CAPI).......................................................................................58 TCP/IP Basic API Overview ............................................................................................58 Types of Service ...............................................................................................................59 Establishing Remote Connections ....................................................................................59 Using STREAM and DATAGRAM Services...................................................................60 Blocking and Non-blocking Operations............................................................................60 Blocking Operations with Timeouts .................................................................................60 Asynchronous Notifications/Callbacks.............................................................................60 IP Address Resolution.......................................................................................................61 Obtaining SOCKETS Kernel Information........................................................................61 Error Reporting.................................................................................................................61 Low Level Interface to the Compatible API.....................................................................61 Alternatives to the Compatible API ..................................................................................62 Porting for Compilers .......................................................................................................62 DJGPP and DPMI Support
Recommended publications
  • F.A.Q. Series ROM-DOS TM
    21520 30th Drive SE #110 Bothell, WA 98021 USA Tel: (425) 951-8086 Fax: (425) 951-8095 [email protected] [email protected] www.datalight.com TM ROM-DOS F.A.Q. Series Question: Assuming they don't want FAT32, Long Filename support, or Sockets, why should my customer upgrade to the newest ROM-DOS? Answer: Since our first FAT32 and LFN release 4.00.1091, there have been several improvements to the core ROM- DOS kernel. This core code is used primarily for our DOS 6.22 compatible compilations, and then extended in the case of a FAT32 or Long Filename build. The 4.00.1091 release is also a new code base and there will be no further upgrades to the previous DOS 6.22 code. In order to obtain new features, fixes, and support a customer must upgrade to release 4.00.1091 or greater. Along with the performance enhancements for both size and speed, several corrections have been made to the ROM-DOS kernel. These include stack and memory issues, disk access issues, and compatibility with the former market leader in DOS. Most of the ROM-DOS utilities have also been improved for size and speed, along with bug fixes. The major changes happened with the XCOPY, HIMEM, MSCDEX, CHKDSK, FDISK and FORMAT utilities. In the realm of international support, the Euro was added to the keyboard and display driver code. ROM- DOS and PC-DOS 2000 are the only non-GUI operating systems to support the Euro. Finally, new ROM-DOS utilities have been added.
    [Show full text]
  • MX2 Reference Guide, Rev A
    MX2 Reference Guide MX2A137REFGD October 2000 E-EQ-MX2RG-A-ARC Copyright © 2000 by LXE Inc. An EMS Technologies Company All Rights Reserved MX2A1 3 7REFGD REV I S I ON A REGULATORY NOTICES Notice: LXE Inc. reserves the right to make improvements or changes in the products described in this manual at any time without notice. While reasonable efforts have been made in the preparation of this document to assure its accuracy, LXE assumes no liability resulting from any errors or omissions in this document, or from the use of the information contained herein. Copyright Notice: This manual is copyrighted. All rights are reserved. This document may not, in whole or in part, be copied, photocopied, reproduced, translated or reduced to any electronic medium or machine-readable form without prior consent, in writing, from LXE Inc. Copyright © 2000 by LXE Inc., An EMS Technologies Company 125 Technology Parkway, Norcross, GA 30092, U.S.A. (770) 447-4224 LXE is a registered trademark of LXE Inc. All other brand or product names are trademarks or registered trademarks of their respective companies or organizations. Note: The original equipment’s Reference Manual is copyrighted by PSC® Inc. This manual has been amended by LXE® Inc., for the MX2 and Docking Stations with PSC’s express permission. Notice: The long term characteristics or the possible physiological effects of radio frequency electromagnetic fields have not been investigated by UL. FCC Information: This device complies with FCC Rules, part 15. Operation is subject to the following conditions: 1. This device may not cause harmful interference and 2.
    [Show full text]
  • Chapter 3. Booting Operating Systems
    Chapter 3. Booting Operating Systems Abstract: Chapter 3 provides a complete coverage on operating systems booting. It explains the booting principle and the booting sequence of various kinds of bootable devices. These include booting from floppy disk, hard disk, CDROM and USB drives. Instead of writing a customized booter to boot up only MTX, it shows how to develop booter programs to boot up real operating systems, such as Linux, from a variety of bootable devices. In particular, it shows how to boot up generic Linux bzImage kernels with initial ramdisk support. It is shown that the hard disk and CDROM booters developed in this book are comparable to GRUB and isolinux in performance. In addition, it demonstrates the booter programs by sample systems. 3.1. Booting Booting, which is short for bootstrap, refers to the process of loading an operating system image into computer memory and starting up the operating system. As such, it is the first step to run an operating system. Despite its importance and widespread interests among computer users, the subject of booting is rarely discussed in operating system books. Information on booting are usually scattered and, in most cases, incomplete. A systematic treatment of the booting process has been lacking. The purpose of this chapter is to try to fill this void. In this chapter, we shall discuss the booting principle and show how to write booter programs to boot up real operating systems. As one might expect, the booting process is highly machine dependent. To be more specific, we shall only consider the booting process of Intel x86 based PCs.
    [Show full text]
  • OS 386 Multiuser/Multitasking Operating System
    OS 386 Multiuser/Multitasking Operating System REFERENCE GUIDE [Q] DIGITAL RESEARCH@ os REFERENCE GUIDE [jill DIGITAL RESEARCH~ COPYRIGHT Copyright © 1987 Digital Research Inc. All rights reserved. No part of this publication may be reproduced, 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 Inc, 60 Garden Court, Box DRI, Monterey, California 93942 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 Inc. reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation of Digital Research Inc to notify any person of such revision or changes. NOTICE TO USER This manual should not be construed as any representation or warranty with respect to the software named herein. Occasionally changes or variations exist in the software that are not reflected in the manual. Generally, if such changes or variations are known to exist and to affect the product significantly, a release note or READ.ME file accompanies the manual and the distribution disks. In that event, be sure to read the release note or READ.ME file before using the product. ii TRADEMARKS Digital Research and its logo, CP/M, and CP/M-86 are registered trademarks of Digital Research Inc. Cardfile, Concurrent, Concurrent DOS 386, Concurrent DOS XM, DR EDIX, DOS Plus and MP/M-86 are trademarks of Digital Research Inc.
    [Show full text]
  • Computing :: Operatingsystems :: DOS Beyond 640K 2Nd
    DOS® Beyond 640K 2nd Edition DOS® Beyond 640K 2nd Edition James S. Forney Windcrest®/McGraw-Hill SECOND EDITION FIRST PRINTING © 1992 by James S. Forney. First Edition © 1989 by James S. Forney. Published by Windcrest Books, an imprint of TAB Books. TAB Books is a division of McGraw-Hill, Inc. The name "Windcrest" is a registered trademark of TAB Books. Printed in the United States of America. All rights reserved. The publisher takes no responsibility for the use of any of the materials or methods described in this book, nor for the products thereof. Library of Congress Cataloging-in-Publication Data Forney, James. DOS beyond 640K / by James S. Forney. - 2nd ed. p. cm. Rev. ed. of: MS-DOS beyond 640K. Includes index. ISBN 0-8306-9717-9 ISBN 0-8306-3744-3 (pbk.) 1. Operating systems (Computers) 2. MS-DOS (Computer file) 3. PC -DOS (Computer file) 4. Random access memory. I. Forney, James. MS-DOS beyond 640K. II. Title. QA76.76.063F644 1991 0058.4'3--dc20 91-24629 CIP TAB Books offers software for sale. For information and a catalog, please contact TAB Software Department, Blue Ridge Summit, PA 17294-0850. Acquisitions Editor: Stephen Moore Production: Katherine G. Brown Book Design: Jaclyn J. Boone Cover: Sandra Blair Design, Harrisburg, PA WTl To Sheila Contents Preface Xlll Acknowledgments xv Introduction xvii Chapter 1. The unexpanded system 1 Physical limits of the system 2 The physical machine 5 Life beyond 640K 7 The operating system 10 Evolution: a two-way street 12 What else is in there? 13 Out of hiding 13 Chapter 2.
    [Show full text]
  • A Look at Video Binders 18 Daetron 29 Cameras, Vcrs, and a Sound Converter
    *.4 October 1984 Canada's Magazine for Electronics & Computing Enthusiasts A Lookat video Cameraslind VCRs Project Bonanza 0.3, Ten short oiler_ lbw Video Distrib Amp Rqpiace boX with a video am *IR Immo. *14 .10101t 71. 10 1 2 - 3 - 2 0 Computer Review: 5 74 3 70924 EXCELTRONIXTORONTO HAMILTON OTTAWA 319 College 72 James St. N. 217 Bank Some prices will go up October, 30th, 1984 1(416)921-8941 1(416)522-4124 1(613)230-9000 Gemini 10X Peripherals 3" Drive for your Apple Apple Compatable to be released soon at an Interface for your Apple unbelievable low price! 1 year warranty e435.00 120 Day Warranty CSA Approved ". 16K RAM Card 554.95 Systems Z80 Card $52.00 Apple //c $1549 5" Monitors Crn 559 Parallel Printer Card $65.00 Apple Macintosh from $3195 (Brand new open frame from Electrohome) RO x 24 Video with soft switch card .$84.00 128K Card - 64K of RAM $117.0010 Meg Hard Disk 128K Card - 128K of RAM $185.00Drive & Controller 51498 KEPCO Heavy Duty EPROM Programmer (with software) .569.00 which plugs right into your machine Switching Power Supply (programs 2716, 2732, 2764) (90 watts max.) Serial Card 579.00 Modem Card $199.00 115V or 220V provision filter and fuse SYSTEM MATE * on board, provides you with +5, PREVENT DOWNTIME, YOTRECIPI°;LIETA + 12, -12, gives you enough power Disk Drives to handle your system plus several for your Apple 5245 LOST DATA, CIRCUIT 585.00 drives with 3.8A on + 12 1 Year Warranty Special price DAMAGE,SERVICING.
    [Show full text]
  • Memory Management
    University of Mississippi eGrove American Institute of Certified Public Guides, Handbooks and Manuals Accountants (AICPA) Historical Collection 1993 Memory management American Institute of Certified Public Accountants. Information echnologyT Division Follow this and additional works at: https://egrove.olemiss.edu/aicpa_guides Part of the Accounting Commons, and the Taxation Commons Recommended Citation American Institute of Certified Public Accountants. Information echnologyT Division, "Memory management" (1993). Guides, Handbooks and Manuals. 486. https://egrove.olemiss.edu/aicpa_guides/486 This Book is brought to you for free and open access by the American Institute of Certified Public Accountants (AICPA) Historical Collection at eGrove. It has been accepted for inclusion in Guides, Handbooks and Manuals by an authorized administrator of eGrove. For more information, please contact [email protected]. INFORMATION TECHNOLOGY DIVISION BULLETIN AICPA American Institute of Certified Public Accountants TECHNOLOGY Notice to Readers This technology bulletin is the first in a series of bulletins that provide accountants with information about a particular technology. These bulletins are issued by the AICPA Information Technology Division for the benefit of Information Technology Section Members. This bulletin does not establish standards or preferred practice; it represents the opinion of the author and does not necessarily reflect the policies of the AICPA or the Information Technology Division. The Information Technology Division expresses its appreciation to the author of this technology bulletin, Liz O’Dell. She is employed by Crowe, Chizek and Company in South Bend, Indiana, as a manager of firmwide microcomputer operations, supporting both hardware and software applications. Liz is an Indiana University graduate with an associate’s degree in computer information systems and a bachelor’s degree in business management.
    [Show full text]
  • Counteracting Viruses in MS-DOS Systems
    86-01-35 Counteracting Viruses in MS-DOS Previous screen Systems A. Padgett Peterson Payoff The trapdoors programmed into the first DOS-based personal computers still persist today, providing relatively easy access for viruses and worms. By learning how malicious software exploits these weaknesses, security managers can develop a coordinated defense to counteract virus attacks now and in the future. This article describes how MS-DOS start- up processes can become exposed to viruses, discusses various intrusion methods, and presents techniques for designing a safe computing environment. Problems Addressed Today's personal computers still bear striking similarities to the first units created during the 1970s. All of the trapdoors and loopholes developed by systems experts to permit BIOS-level programming in the early stages of development of these systems are still present today, providing easy access for viruses, worms, logic bombs, and Trojan horses. It is alarming that such low-level programs are no longer being fully documented by manufacturers; they are currently treating as proprietary the techniques that were widely disseminated just a few years ago. Administrators and systems managers who are responsible for the millions of dollars of corporate investment in trusted computing systems typically lack an in-depth understanding of these systems. Unfortunately, penetration techniques, though not readily available, are known to an underground of hackers. Although numerous antivirus products have become available, these products are as available to hackers as to legitimate users. Fortunately, defenses are available to the corporate systems manager that cannot be readily compromised by the individual computer user. A trusted computing environment can be developed that is low in cost and user impact, one that not only has a high degree of reliability but permits natural and easy growth.
    [Show full text]
  • Microsoft Windows for MS
    Month Year Version Major Changes or Remarks Microsoft buys non-exclusive rights to market Pattersons Quick & Dirty Operating System from December 1980 QDOS Seattle Computer Products (Developed as 86-DOS) (Which is a clone of Digital Researches C P/M in virtually every respect) Microsoft buys all rights to 86-DOS from Seattle Computer Products, and the name MS-DOS is July 1981 86-DOS adopted for Microsoft's purposes and IBM PC- DOS for shipment with IBM PCs (For Computers with the Intel 8086 Processor) Digital Research release CP/M 86 for the Intel Q3 1981 CP/M 86 8086 Processer Pre-Release PC-DOS produced for IBM Personal Mid 1981 PC-DOS 1.0 Computers (IBM PC) Supported 16K of RAM, ~ Single-sided 5.25" 160Kb Floppy Disk OEM PC-DOS for IBM Corporation. (First August 1982 PC-DOS 1.1 Release Version) OEM Version for Zenith Computer Corporation.. (Also known as Z-DOS) This added support for September 1982 MS-DOS 1.25 Double-Sided 5.25" 320Kb Floppy Disks. Previously the disk had to be turned over to use the other side Digital Research release CP/M Plus for the Q4 1982 CP/M Plus Intel 8086 Processer OEM Version For Zenith - This added support for IBM's 10 MB Hard Disk, Directories and Double- March 1983 MS-DOS 2.0 Density 5.25" Floppy Disks with capacities of 360 Kb OEM PC-DOS for IBM Corporation. - Released March 1983 PC-DOS 2.0 to support the IBM XT Microsoft first announces it intention to create a GUI (Graphical User Interface) for its existing MS-DOS Operating System.
    [Show full text]
  • PC DOS 7 Technical Update
    PC DOS 7 Technical Update Document Number GG24-4459-00 February 1995 International Technical Support Organization Boca Raton Center Take Note! Before using this information and the product it supports, be sure to read the general information under “Special Notices” on page xiii. First Edition (February 1995) This edition applies to PC DOS Version 7. Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address given below. An ITSO Technical Bulletin Evaluation Form for reader′s feedback appears facing Chapter 1. If the form has been removed, comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. 91J Building 235-2 Internal Zip 4423 901 NW 51st Street Boca Raton, Florida 33431-1328 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1995. All rights reserved. Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Abstract IBM PC DOS 7 has been designed for all types of users who need an efficient single tasking personal computer operating system. It incorporates many new utilities such as anti-virus software, comprehensive backup programs, PCMCIA support and DOS Pen extensions. Also incorporated are new features to enhance the available memory and disk space. This book is a technical reference, upgraded from IBM DOS 5.02 and written for DOS programmers, who develop applications for IBM Personal Computers or compatible systems.
    [Show full text]
  • Windows 3.1X Disk Maintenance Procedure
    Computer System Routine Disk Maintenance Windows® 3.xx To help optimize the performance of your ChemStation system it is important that you schedule routine maintenance. The following instructions should be used as a part of your routine maintenance schedule. Deleting .TMP files in Windows® 1. Exit the ChemStation and Windows®, at the MS-DOS® prompt type: EXIT <Enter> 2. If the system is still at the MS-DOS® prompt enter: SET <Enter> otherwise repeat step1 3. Using the information displayed, find the line that states: TEMP=<Windows TEMP directory> An example listing generated by typing the SET command : CONFIG=WFW COMSPEC=C:\DOS\COMMAND.COM PATH=C:\;C:\DOS;C:\WINDOWS;C:\HPCHEM;C:\EXCEL5; TEMP=C:\TEMP *This is the <Windows® TEMP Directory>* PROMPT=$p$g windir=C:\WINDOWS This document is believed to be accurate and up-to-date. However, Agilent Technologies, Inc. cannot assume responsibility for the use of this material. The information contained herein is intended for use by informed individuals who can and must determine its fitness for their purpose. MS-DOS®, Windows® and Windows NT® are registered trademarks of Microsoft Corp. a10085.doc http:// www.chem.agilent.com Page 1 of 4 4. To delete all TMP files from the TEMP directory - at the MS-DOS® prompt type: DEL <Windows® TEMP Directory>\*.TMP <Enter> Using the previous example, you would type: DEL C:\TEMP\*.TMP Deleting files from the ChemStation Instrument TEMP directory 1. Exit the ChemStation and Windows® at the MS-DOS® prompt (C:\) type the following: EXIT <Enter> 2. If the system is still at the MS-DOS® prompt type: DEL C:\HPCHEM\#\TEMP\*.* <Enter> otherwise repeat step1 Where # = Instrument number; example for instruments #1: DEL C:\HPCHEM\1\TEMP\*.* 3.
    [Show full text]
  • Older Operating Systems
    Older Operating Systems Class Notes # 14 Computer Configuration November 20, 2003 The default configuration of DOS, which may be adequate for many users, is intended to work with the greatest number of systems. DOS also allows users to take full advantage of their computers features. We could configure our computer to operate more efficiently. There are two general ways of making our computers efficient: • Add or replace hardware • Use software to attain an optimal configuration for existing hardware resources DOS falls in the second category. With DOS we can manage our memory more efficiently and we can also use special device drivers and utility programs to enhance the performance of our hardware and software. Device Drivers Device drivers are software programs, which is used by DOS to control hardware devices. Most device drivers are loaded at boot time by including the device driver in your CONFIG.SYS. The DEVICE command tells DOS to load a device driver and uses the following syntax: DEVICE = driver /switches The driver is the actual software for the device, and the /switches are any switches that the device driver software needs. For example, the mouse device driver (MOUSE.SYS) is loaded in the CONFIG.SYS file with this command: DEVICE = C:\DRIVERS\MOUSE.SYS The DEVICE = command tells DOS that the program file name MOUSE.SYS stored in the \DRIVERS directory on drive C is a TSR needed to drive the mouse device. You may also load certain device drivers in AUTOEXEC.BAT. For example, the mouse device driver can also be loaded from the AUTOEXEC.BAT file.
    [Show full text]