home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * Programmer's Guide to EGA/VGA *
- * Programming Examples Diskette *
- * (C) Copyright 1988, Simon & Schuster Inc. *
- *******************************************************************************
-
- ARC - Archive utility, (C) COPYRIGHT 1985,86 by System Enhancement Associates
-
-
- UNPACKING THE SOURCE CODE FILES:
- --------------------------------
-
- The diskette is organized in two sub-directories, C and PASCAL. The PASCAL
- sub-directory contains the PASCAL programming examples and the C sub-
- directory contains the C and Assembly programming examples. All the source
- code files have been packed into four files:
-
- PROGA.ARC - Assembly programming examples files (C library)
- PROGC.ARC - C programming examples files
- PROGP.ARC - Pascal programming examples files
- PROGAP.ARC - Assembly routines for the Pascal library files
-
- The program ARC.EXE is a utility program which should be used to un-pack the
- *.ARC files into individual programming example files. For example to unpack
- the C programming examples, copy the ARC.EXE and the PROGC.ARC files onto
- another disk and then type the following:
-
- ARC X PROGC.ARC
-
- The other three files can be unpacked in a similar manner.
-
- FILES IN THE PASCAL SUB-DIRECTORY:
- ----------------------------------
-
- The PASCAL sub-directory contains the Pascal unit file you need in order to use
- the Pascal library routines. The file is:
-
- EGALIBP.TPU
-
- To use the library, make sure that the file is accessible by your
- TURBO PASCAL, and that the following line is included in your program:
-
- uses egalibp;
-
- The PASCAL sub-directory also contains the fully built test program PROGP.EXE
- which is used as a test program to test the Pascal programming examples.
- To run the test program, type:
-
- PROGP
-
- The PROGPA.ARC file contains source code files for all the Assembly
- routines used for the Pascal callable library. These are used to create
- the file EGALIBP.OBJ. To assemble the library routines into an object
- file, unpack the PROGPA.ARC file, and then type:
-
- MASM EGALIBP;
-
- The PROGP.ARC file contains source code for all the PASCAL examples
- found in the book. These are files named PROGPnnn.PAS. This file
- also has the file EGALIBP.PAS needed to build the EGALIBP.TPU unit.
- In addition there is a source code file PROGP.PAS which is used as a test
- program to test all the library functions. To build the Pascal unit
- EGALIBP.TPU, unpack the PROGP.ARC file, and then type:
-
- TPC EGALIBP
-
- To build the test program, type:
-
- TPC PROGP
-
- FILES IN THE C SUB-DIRECTORY:
- -----------------------------
-
- The C sub-directory contains the object file you need in order to use
- the C libray routines. The file is:
-
- EGALIB.OBJ
-
- To use the library, make sure that the file is in your path and use the linker
- to link it with your program:
-
- LINK YOUR_CODE EGALIB;
-
- The C sub-directory also contains the fully built test program PROGC.EXE
- which is used as a test program to test the C and Assembly programming
- examples. To run the test program, type:
-
- PROGC
-
- The PROG.ARC file contains source code files for all the Assembly
- routines used for the C callable library, and the Assembly programming
- examples found in the book. These are the files PROGnnn.ASM, and
- are used to create the file EGALIB.OBJ. To assemble the library routines
- into an object file, unpack the PROG.ARC, and then type:
-
- MASM EGALIB;
-
- The PROGC.ARC file contains source code for all the C examples
- found in the book. These are files named PROGCnnn.C.
- In addition there is a source code file PROGC.C which is used as a test
- program to test all the library functions. To build the test program, unpack
- the PROGC.ARC file, and then to compile and build with Microsoft C type:
-
- MSC PROGC;
- LINK PROGC EGALIB;
-
- To compile and build with TURBO C type:
-
- TCC -c PROGC
- TLINK C:LIB\C0S PROGC EGALIB,PROGC,,C:LIB\EMU C:LIB\MATHS C:LIB\CS
-
- (For Turbo C this assumes that your libraries are in the directory C:\LIB).
-
- GJS-7/25/88