Appendix B
ASSIGN.SYS File
_____________________________________________________________________________
REQUIREMENTS
The ASSIGN.SYS file is parsed by the GDOS to create the assignment table. The assignment table resides in memory and is referenced when the application makes an Open Workstation call. The information required by the ASSIGN.SYS includes the device id number and the device driver filename and corresponding faces.
_____________________________________________________________________________
Device Id Numbers
Table B-1. Device Id Numbers
TypeNumber
Monitor 1-10
Plotter 11-20
Printer 21-30
Metafile 31-40
Camera 41-50
Tablet 51-60
_____________________________________________________________________________
Device Driver Filename
The device driver filenames follow specific naming conventions:
* They must have eight or fewer characters.
* The first character must be alphabetic.
* The file extension must be SYS.
_____________________________________________________________________________

FORMAT Figure B-1 shows the ASSIGN.SYS file format:

Device Driver... Face
...Id.. Filename.. Name

01 SCREEN.SYS FACE1.FNT

Figure B-1. ASSIGN.SYS File Format
B1
*****************************************************************************
GEM VDI Programmer's GuideSample ASSIGN.SYS
_____________________________________________________________________________
SAMPLE ASSIGN.SYS
21 printer.fnt
;comments, if desired
face1.fnt ;face1 description
face2.fnt ;face2 description
face3.fnt ;face3 description
01 screen.fnt
;comments, if desired
face4.fnt ;face4 description
face5.fnt ;face5 description
11 plotter.fnt
;comments, if desired
face6.fnt ;face6 description
face7.fnt ;face7 description

01 SDIBM7;IBM Color Adapter MONOCHROME MODE
;PC Mouse by Mouse Systems Corp.
;Communication Port #1
IBMLSS10.FNT;IBM 640 x 200 Swiss 10 Point
IBMLSS14.FNT;IBM 640 x 200 Swiss 14 Point
IBMLSS18.FNT;IBM 640 x 200 Swiss 18 Point
IBMLSS36.FNT;IBM 640 x 200 Swiss 36 Point
21 PDEHI7;IBM/Epson Graphics Printers HI RES
;Printer Parallel Port #1
EPSHSS10.FNT;EPSON Hi Res (120X144 dots/inch) Swiss 10 Point
EPSHSS14.FNT;EPSON Hi Res (120X144 dots/inch) Swiss 14 Point
EPSHSS20.FNT;EPSON Hi Res (120X144 dots/inch) Swiss 20 Point
EPSHSS28.FNT;EPSON Hi Res (120X144 dots/inch) Swiss 28 Point
EPSHSS36.FNT;EPSON Hi Res (120X144 dots/inch) Swiss 36 Point
31 META7;GEM File