Writing FCode 2.x Programs
  Search only this book
Download this book in PDF

Preface

This manual, Writing FCode 2.x Programs, replaces both Writing FCode Programs for SBus Cards and Writing FCode 2.0 Programs.

Who Should Use This Book

This manual is written for designers of SBus interface cards and other devices that use the FCode interface language. It assumes that you have some familiarity with SBus card design requirements and Forth programming.
The material covered in this manual is specifically for those developing FCode applications on OpenBoot 2.0 or later SPARCsystems, and those developing SBus cards for either OpenBoot 2.0 only or both OpenBoot 1.0 and OpenBoot 2.0 and later systems.
This manual also assumes that you have read and understood SBus Specification B.0 (or later) and OpenBoot Command Reference.

How This Book Is Organized

Related Books

This manual does not pretend to cover everything you need to know to write FCode drivers for SBus cards. You'll have to read some other books, too.
For information about SBus, OpenBoot 2.0, SBus device drivers, and writing device drivers for Sun workstations, see the following Sun manuals:
  • OpenBoot Command Reference, 800-6076-11
  • OpenBoot Quick Reference, 800-5675-11
  • SBus Specification B.0, 800-5922-10
  • Writing SBus Device Drivers, 800-4455-10
For more information about Forth and Forth programming, see:
  • Mastering Forth, Anita Anderson and Martin Tracy. Brady Communication Company, Inc., 1989.
  • Forth: A Text and Reference, Mahlon G. Kelly and Nicholas Spies. Prentice Hall.
  • Starting FORTH, Leo Brody. FORTH, Inc., second edition, 1987.
  • Forth: a New Model, Jack Woehr. M & T Books, 1992.
  • OpenBoot Command Reference, 800-6076-11

Software Tools

Some programs specifically mentioned in this manual for use in developing FCode programs are included on a diskette in the SBus Developer's Kit. Instructions for using these programs are included on the diskette.
If you don't have access to a complete SBus Developer's Kit, or if your SPARCstation doesn't have a diskette drive, contact the Sun SBus Technical Support Group (sbustech@Sun.com) for the software.

What Typographic Changes and Symbols Mean

The following table describes the typeface changes and symbols used in this book.
Table P-1
Typeface or SymbolMeaningExample
AaBbCc123The names of commands, files, and directories;
on-screen computer output
Edit your .login file.
Use ls -a to list all files.
system% You have mail.
AaBbCc123What you type, contrasted with on-screen computer output

 system%su  
 Password:   

AaBbCc123Command-line placeholder:
replace with a real name or value
To delete a file, type rm filename.
AaBbCc123Book titles, new words or terms, or words to be emphasizedRead Chapter 6 in User's Guide. These are called class options.

You must be root to do this.

Code samples are included in boxes and may display the following:
%UNIX C shell promptsystem%
okOpenBoot command promptok
$UNIX Bourne and Korn shell promptsystem$
#Superuser prompt, all UNIX shellssystem#
This manual follows a number of typographic conventions:
  • Text beginning with a capitalized letter indicates a key name or a panel button on a window-based program. For example:

    Press the Control-C key.

    When you see two key names separated by a dash, press and hold the first key down, then press the second key. For example:

    To press Control-C, press and hold Control, then press C.

  • In a command line, square brackets indicate an optional entry and italics indicate an argument that you must replace with the appropriate text. For example:

    cd [directory]

Ordering Sun Documents

The SunDocs Order Desk is a distribution center for Sun Microsystems technical documentation. You can use major credit cards and company purchase orders. You can order documentation in the following ways:
In the U.S.A.Outside the U.S.A.
Call 1-800-247-0250Call 1-801-342-3450
Fax 1-801-373-6798Fax 1-801-373-6798
World Wide Web: http://www.sun.com/sundocs/catalog.html

Sun Welcomes Your Comments

Please use the Reader Comment Card that accompanies this document. We are interested in improving our documentation and welcome your comments and suggestions.
You can also email or fax your comments to us. Please include the part number of your document in the subject line of your email or fax message.
  • Email: smcc-docs@sun.com
  • Fax: SMCC Document Feedback 1-415-786-6443