home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / PROGRAM / PRBGI094.ZIP / DRIVERS.ASM < prev    next >
Assembly Source File  |  1992-05-19  |  57KB  |  1,030 lines

  1. MASM51
  2. .XALL
  3.  
  4. MaxDriversNo    = 16;  <----- If you want to define more drivers change this number
  5.  
  6. ; Adding, deleting or changing the order of drivers definitions requires
  7. ; appriopriate changes in PRTGRAPH.H and PDrivers.pas.
  8. ;
  9.  
  10. include drivers.inc
  11.  
  12.  MODEL large
  13. ;;.MODEL FarStack large pascal
  14. ifNdef WithCode
  15.    WithCode EQU 1
  16. endif
  17. IF WithCode
  18.  
  19.    .CODE
  20.  
  21.    EXTRN  Pascal PRT__DriversPtr: word:2
  22.    PUBLIC pascal PRT_LinkDriversDefinitions
  23.    PRT_LinkDriversDefinitions PROC pascal FAR
  24.                    mov  AX, seg PRT__DriversPtr
  25.                    mov  ES,AX
  26.                    mov  ES:PRT__DriversPtr, offset PRT__Drivers
  27.                    mov  ES:PRT__DriversPtr+2, seg PRT__Drivers
  28.                    RET
  29.    PRT_LinkDriversDefinitions ENDP
  30.  
  31. ENDIF
  32.  
  33.   .DATA
  34.  
  35. PRT__Drivers   LABEL WORD
  36.  
  37. PRT__MaxDriverNo dw  ?  ; will be defined at the end of the file
  38.                  dw  2  ; index to PRT__DriversOffsets
  39. PRT__DriversOffsets  dw  MaxDriversNo dup (0) ; place for drivers definitions offsets
  40.  
  41.  
  42.         ; /*===============================*/
  43.         ; /* 9-pins : STAR SR              */
  44.         ; /*===============================*/
  45.          DriverDef
  46.          ;         4,                            /* ModesNo  */
  47.          CompressionType  0                      /* CompressionType */
  48.          DriverName      <'9 pins: STAR SR'> ;
  49.          ASCIInumbers    0;
  50.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  51.          InitPRTStr      NULL;                   /* Init PRT string */
  52.          EndPRTStr       NULL;                   /* End PRT string */
  53.          CompressedStr   NULL;                   /* CompressedStr  */
  54.          UncompressedStr NULL;                   /* UncompressedStr  */
  55.          LeftMargin     <1bh,'M'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  56.          TopMargin      <1bh,'R'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  57.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  58.  
  59.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  60.          ModeOptions  0;                         /* Planes, SimPlanes */
  61.          ColorPalette   NULL;                    /* Color palette        */
  62.          InitGraphStr   NULL;                    /* InitGraphStr */
  63.          EndGraphStr    NULL;                    /* EndGraphStr  */
  64.          PicWidth
  65.          InitTransferStr <CR, Esc,'g',0>,NULL
  66.          PinsPerHead    8
  67.          PixelsStep     1
  68.          EolnStr   NULL;                         /* EolnStr          */
  69.          SmallEoln  <Esc,04Ah>,NULL,2,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  70.  
  71.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  72.          ModeOptions  0;                         /* Planes, SimPlanes */
  73.          ColorPalette   NULL;                    /* Color palette        */
  74.          InitGraphStr   NULL;                    /* InitGraphStr */
  75.          EndGraphStr    NULL;                    /* EndGraphStr  */
  76.          PicWidth
  77.          InitTransferStr <CR, Esc,'g',1>,NULL
  78.          PinsPerHead    8
  79.          PixelsStep     1
  80.          EolnStr   NULL;                         /* EolnStr          */
  81.          SmallEoln  <Esc,04Ah>,NULL,2,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  82.  
  83.          ModeDef  120,144,2;                     /* X and Y densities, ColorsNo */
  84.          ModeOptions  0;                         /* Planes, SimPlanes */
  85.          ColorPalette       NULL;                /* Color palette        */
  86.          InitGraphStr   NULL;                    /* InitGraphStr */
  87.          EndGraphStr    NULL;                    /* EndGraphStr  */
  88.          PicWidth
  89.          InitTransferStr <CR, Esc,'g',1>,NULL
  90.          PinsPerHead    8
  91.          PixelsStep     2
  92.          EolnStr   NULL;                         /* EolnStr          */
  93.          SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  94.  
  95.          ModeDef  240,144,2;                     /* X and Y densities, ColorsNo */
  96.          ModeOptions  0;                         /* Planes, SimPlanes */
  97.          ColorPalette     NULL;                  /* Color palette        */
  98.          InitGraphStr   NULL;                    /* InitGraphStr */
  99.          EndGraphStr    NULL;                    /* EndGraphStr  */
  100.          PicWidth
  101.          InitTransferStr <CR, Esc,'g',3>,NULL
  102.          PinsPerHead    8
  103.          PixelsStep     2
  104.          EolnStr   NULL;                         /* EolnStr          */
  105.          SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  106.  
  107.          EndDriverDef   ; <----------------------------
  108.  
  109.  
  110.          ;/*===============================*/
  111.          ;/* 9 pins : IBM, EPSON */
  112.          ;/*===============================*/
  113.  
  114.          DriverDef
  115.          ;         4,                            /* ModesNo  */
  116.          CompressionType  0                      /* CompressionType */
  117.          DriverName     <'9 pins: IBM, EPSON'>
  118.          ASCIInumbers    0;
  119.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  120.          InitPRTStr      NULL;                   /* Init PRT string */
  121.          EndPRTStr       NULL;                   /* End PRT string */
  122.          CompressedStr   NULL;                   /* CompressedStr  */
  123.          UncompressedStr NULL;                   /* UncompressedStr  */
  124.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  125.          TopMargin      <Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  126.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  127.  
  128.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  129.          ModeOptions  0;                         /* Planes, SimPlanes */
  130.          ColorPalette       NULL;                /* Color palette        */
  131.          InitGraphStr   NULL;                    /* InitGraphStr */
  132.          EndGraphStr    NULL;                    /* EndGraphStr  */
  133.          PicWidth
  134.          InitTransferStr <CR, Esc,'K'>,NULL
  135.          PinsPerHead    8
  136.          PixelsStep     1
  137.          EolnStr   NULL;                         /* EolnStr          */
  138.          SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  139.  
  140.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  141.          ModeOptions  0;                         /* Planes, SimPlanes */
  142.          ColorPalette       NULL;                /* Color palette        */
  143.          InitGraphStr   NULL;                    /* InitGraphStr */
  144.          EndGraphStr    NULL;                    /* EndGraphStr  */
  145.          PicWidth
  146.          InitTransferStr <CR, Esc,'L'>,NULL
  147.          PinsPerHead    8
  148.          PixelsStep     1
  149.          EolnStr   NULL;                         /* EolnStr          */
  150.          SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  151.  
  152.          ModeDef  120,216,2;                     /* X and Y densities, ColorsNo */
  153.          ModeOptions  0;                         /* Planes, SimPlanes */
  154.          ColorPalette       NULL;                /* Color palette        */
  155.          InitGraphStr   NULL;                    /* InitGraphStr */
  156.          EndGraphStr    NULL;                    /* EndGraphStr  */
  157.          PicWidth
  158.          InitTransferStr <CR, Esc,'L'>,NULL
  159.          PinsPerHead    8
  160.          PixelsStep     3
  161.          EolnStr   NULL;                         /* EolnStr          */
  162.          SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  163.  
  164.          ModeDef  240,216,2;                     /* X and Y densities, ColorsNo */
  165.          ModeOptions  0;                         /* Planes, SimPlanes */
  166.          ColorPalette       NULL;                /* Color palette        */
  167.          InitGraphStr   NULL;                    /* InitGraphStr */
  168.          EndGraphStr    NULL;                    /* EndGraphStr  */
  169.          PicWidth
  170.          InitTransferStr <CR, Esc,'Z'>,NULL
  171.          PinsPerHead    8
  172.          PixelsStep     3
  173.          EolnStr   NULL;                         /* EolnStr          */
  174.          SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  175.  
  176.          EndDriverDef   ; <----------------------------
  177.  
  178.          ;/*===============================*/
  179.          ;/* 9-pins : PANASONIC KX-P1124   */
  180.          ;/*===============================*/
  181.  
  182.          DriverDef
  183.          ;         4,                            /* ModesNo  */
  184.          CompressionType  0                      /* CompressionType */
  185.          DriverName       <'9 pins: Panasonic KX-P1124'>
  186.          ASCIInumbers    0;
  187.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  188.          InitPRTStr      NULL;                   /* Init PRT string */
  189.          EndPRTStr       NULL;                   /* End PRT string */
  190.          CompressedStr   NULL;                   /* CompressedStr  */
  191.          UncompressedStr NULL;                   /* UncompressedStr  */
  192.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  193.          TopMargin      <Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  194.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  195.  
  196.          ModeDef  60,72,2;                       /* X and Y densities, ColorsNo */
  197.          ModeOptions  0;                         /* Planes, SimPlanes */
  198.          ColorPalette       NULL;                /* Color palette        */
  199.          InitGraphStr   NULL;                    /* InitGraphStr */
  200.          EndGraphStr    NULL;                    /* EndGraphStr  */
  201.          PicWidth
  202.          InitTransferStr <CR, Esc,'K'>,NULL
  203.          PinsPerHead    8
  204.          PixelsStep     1
  205.          EolnStr   NULL;                         /* EolnStr          */
  206.          SmallEoln  <Esc,04Ah>,NULL,5,2          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  207.  
  208.          ModeDef  120,72,2;                      /* X and Y densities, ColorsNo */
  209.          ModeOptions  0;                         /* Planes, SimPlanes */
  210.          ColorPalette       NULL;                /* Color palette        */
  211.          InitGraphStr   NULL;                    /* InitGraphStr */
  212.          EndGraphStr    NULL;                    /* EndGraphStr  */
  213.          PicWidth
  214.          InitTransferStr <CR, Esc,'L'>,NULL
  215.          PinsPerHead    8
  216.          PixelsStep     1
  217.          EolnStr   NULL;                         /* EolnStr          */
  218.          SmallEoln  <Esc,04Ah>,NULL,5,2;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  219.  
  220.          ModeDef  120,144,2;                     /* X and Y densities, ColorsNo */
  221.          ModeOptions  0;                         /* Planes, SimPlanes */
  222.          ColorPalette   NULL;                    /* Color palette        */
  223.          InitGraphStr   NULL;                    /* InitGraphStr */
  224.          EndGraphStr    NULL;                    /* EndGraphStr  */
  225.          PicWidth
  226.          InitTransferStr <CR, Esc,'L'>,NULL
  227.          PinsPerHead    8
  228.          PixelsStep     2
  229.          EolnStr   NULL;                         /* EolnStr          */
  230.          SmallEoln  <Esc,04Ah>,NULL,5,4;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  231.  
  232.          ModeDef  240,144,2;                     /* X and Y densities,, ColorsNo */
  233.          ModeOptions  0;                         /* Planes, SimPlanes */
  234.          ColorPalette       NULL;                /* Color palette        */
  235.          InitGraphStr   NULL;                    /* InitGraphStr */
  236.          EndGraphStr    NULL;                    /* EndGraphStr  */
  237.          PicWidth
  238.          InitTransferStr <CR, Esc,'Z'>,NULL
  239.          PinsPerHead    8
  240.          PixelsStep     2
  241.          EolnStr   NULL;                         /* EolnStr          */
  242.          SmallEoln  <Esc,04Ah>,NULL,5,4;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  243.          EndDriverDef   ; <----------------------------
  244.  
  245.          if 0
  246.             ;/*===============================*/
  247.             ;/* 9 pins : IBM, EPSON color */
  248.             ;/*===============================*/
  249.  
  250.             DriverDef
  251.             ;         4,                            /* ModesNo  */
  252.             CompressionType  0                      /* CompressionType */
  253.             DriverName       <'9 pins(color): IBM, EPSON'>
  254.             ASCIInumbers    0;
  255.             TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  256.             InitPRTStr      NULL;                   /* Init PRT string */
  257.             EndPRTStr       NULL;                   /* End PRT string */
  258.             CompressedStr   NULL;                   /* CompressedStr  */
  259.             UncompressedStr NULL;                   /* UncompressedStr  */
  260.             LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  261.             TopMargin      <Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  262.             ColorsStrings  <Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  263.  
  264.             ModeDef  60,72,8;                       /* X and Y densities, ColorsNo */
  265.             ModeOptions  0;                         /* Planes, SimPlanes */
  266.             ColorPalette   NULL;                    /* Color palette        */
  267.             InitGraphStr   NULL;                    /* InitGraphStr */
  268.             EndGraphStr    NULL;                    /* EndGraphStr  */
  269.             PicWidth
  270.             InitTransferStr <CR, Esc,'K'>,NULL
  271.             PinsPerHead    8
  272.             PixelsStep     1
  273.             EolnStr   NULL;                         /* EolnStr          */
  274.             SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  275.  
  276.             ModeDef  120,72,8;                      /* X and Y densities, ColorsNo */
  277.             ModeOptions  0;                         /* Planes, SimPlanes */ /* ?????????????????????????????? */
  278.             ColorPalette       NULL;                /* Color palette        */
  279.             InitGraphStr   NULL;                    /* InitGraphStr */
  280.             EndGraphStr    NULL;                    /* EndGraphStr  */
  281.             PicWidth
  282.             InitTransferStr <CR, Esc,'L'>,NULL
  283.             PinsPerHead    8
  284.             PixelsStep     1
  285.             EolnStr   NULL;                         /* EolnStr          */
  286.             SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  287.  
  288.             ModeDef  120,216,8;                     /* X and Y densities */
  289.             ModeOptions  0;                         /* Planes, SimPlanes */
  290.             ColorPalette       NULL;                /* Color palette        */
  291.             InitGraphStr   NULL;                    /* InitGraphStr */
  292.             EndGraphStr    NULL;                    /* EndGraphStr  */
  293.             PicWidth
  294.             InitTransferStr <CR, Esc,'L'>,NULL
  295.             PinsPerHead    8
  296.             PixelsStep     3
  297.             EolnStr   NULL;                         /* EolnStr          */
  298.             SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  299.  
  300.             ModeDef  240,216,8;                     /* X and Y densities, ColorsNo */
  301.             ModeOptions  0;                         /* Planes, SimPlanes */
  302.             ColorPalette       NULL;                /* Color palette        */
  303.             InitGraphStr   NULL;                    /* InitGraphStr */
  304.             EndGraphStr    NULL;                    /* EndGraphStr  */
  305.             PicWidth
  306.             InitTransferStr <CR, Esc,'Z'>,NULL
  307.             PinsPerHead    8
  308.             PixelsStep     3
  309.             EolnStr   NULL;                         /* EolnStr          */
  310.             SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  311.             EndDriverDef   ; <----------------------------
  312.  
  313.          else
  314.  
  315.             ;/*===============================*/
  316.             ;/* 9 pins : IBM, EPSON color */
  317.             ;/*===============================*/
  318.             ;/* the same as previous but with Planes and SimPlanes bits on */
  319.             ;/* This introduces some optimalization in changing ribbon  */
  320.             ;/* current color but it assumes that any composed color */
  321.             ;/* can be build from colors c1 and c2 which are  */
  322.             ;/* power of 2. E.G. color orange(0x5) is composed */
  323.             ;/* of yellow(4) and red(1).                      */
  324.             ;/* It may not work for more than 7 colors available. */
  325.             DriverDef
  326.             ;         4,                            /* ModesNo  */
  327.             CompressionType  0                      /* CompressionType */
  328.             DriverName       <'9 pins(color): IBM, EPSON'>
  329.             ASCIInumbers    0;
  330.             TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  331.             InitPRTStr      NULL;                   /* Init PRT string */
  332.             EndPRTStr       NULL;                   /* End PRT string */
  333.             CompressedStr   NULL;                   /* CompressedStr  */
  334.             UncompressedStr NULL;                   /* UncompressedStr  */
  335.             LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  336.             TopMargin      <Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv */
  337.             ColorsStrings  <Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  338.  
  339.             ModeDef  60,72,8;                       /* X and Y densities, ColorsNo */
  340.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  341.             ColorPalette       NULL;                /* Color palette        */
  342.             InitGraphStr   NULL;                    /* InitGraphStr */
  343.             EndGraphStr    NULL;                    /* EndGraphStr  */
  344.             PicWidth
  345.             InitTransferStr <CR, Esc,'K'>,NULL
  346.             PinsPerHead    8
  347.             PixelsStep     1
  348.             EolnStr   NULL;                         /* EolnStr          */
  349.             SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  350.  
  351.             ModeDef  120,72,8;                      /* X and Y densities, ColorsNo */
  352.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */ /* ?????????????????????????????? */
  353.             ColorPalette       NULL;                /* Color palette        */
  354.             InitGraphStr   NULL;                    /* InitGraphStr */
  355.             EndGraphStr    NULL;                    /* EndGraphStr  */
  356.             PicWidth
  357.             InitTransferStr <CR, Esc,'L'>,NULL
  358.             PinsPerHead    8
  359.             PixelsStep     1
  360.             EolnStr   NULL;                         /* EolnStr          */
  361.             SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  362.  
  363.             ModeDef  120,216,8;                     /* X and Y densities, ColorsNo */
  364.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  365.             ColorPalette       NULL;                /* Color palette        */
  366.             InitGraphStr   NULL;                    /* InitGraphStr */
  367.             EndGraphStr    NULL;                    /* EndGraphStr  */
  368.             PicWidth
  369.             InitTransferStr <CR, Esc,'L'>,NULL
  370.             PinsPerHead    8
  371.             PixelsStep     3
  372.             EolnStr   NULL;                         /* EolnStr          */
  373.             SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  374.  
  375.             ModeDef  240,216,8;                     /* X and Y densities, ColorsNo */
  376.             ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  377.             ColorPalette       NULL;                /* Color palette        */
  378.             InitGraphStr   NULL;                    /* InitGraphStr */
  379.             EndGraphStr    NULL;                    /* EndGraphStr  */
  380.             PicWidth
  381.             InitTransferStr <CR, Esc,'Z'>,NULL
  382.             PinsPerHead    8
  383.             PixelsStep     3
  384.             EolnStr   NULL;                         /* EolnStr          */
  385.             SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  386.             EndDriverDef   ; <----------------------------
  387.          endif
  388.  
  389.          ;/*===============================*/
  390.          ;/* Epson LQ 1000                 */
  391.          ;/*===============================*/
  392.  
  393.          DriverDef
  394.          ;         5,                            /* ModesNo  */
  395.          CompressionType  0                      /* CompressionType */
  396.          DriverName       <'24 pins: Epson LQ1000'>
  397.          ASCIInumbers    0;
  398.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  399.          InitPRTStr      NULL;                   /* Init PRT string */
  400.          EndPRTStr       NULL;                   /* End PRT string */
  401.          CompressedStr   NULL;                   /* CompressedStr  */
  402.          UncompressedStr NULL;                   /* UncompressedStr  */
  403.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  404.          TopMargin      <Esc,'r'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv ??????????????? ?????????? */
  405.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  406.  
  407.          ModeDef  60,180,2;                      /* X and Y densities, ColorsNo */
  408.          ModeOptions  0;                         /* Planes, SimPlanes */
  409.          ColorPalette       NULL;                /* Color palette        */
  410.          InitGraphStr   NULL;                    /* InitGraphStr */
  411.          EndGraphStr    NULL;                    /* EndGraphStr  */
  412.          PicWidth
  413.          InitTransferStr <CR, Esc,'*',20h>,NULL
  414.          PinsPerHead    24
  415.          PixelsStep     1
  416.          EolnStr   NULL;                         /* EolnStr          */
  417.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  418.  
  419.          ModeDef  120,180,2;                     /* X and Y densities, ColorsNo */
  420.          ModeOptions  0;                         /* Planes, SimPlanes */
  421.          ColorPalette       NULL;                /* Color palette        */
  422.          InitGraphStr   NULL;                    /* InitGraphStr */
  423.          EndGraphStr    NULL;                    /* EndGraphStr  */
  424.          PicWidth
  425.          InitTransferStr <CR, Esc,'*',21h>,NULL
  426.          PinsPerHead    24
  427.          PixelsStep     1
  428.          EolnStr   NULL;                         /* EolnStr          */
  429.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  430.  
  431.          ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  432.          ModeOptions  0;                         /* Planes, SimPlanes */
  433.          ColorPalette       NULL;                /* Color palette        */
  434.          InitGraphStr   NULL;                    /* InitGraphStr */
  435.          EndGraphStr    NULL;                    /* EndGraphStr  */
  436.          PicWidth
  437.          InitTransferStr <CR, Esc,'*',27h>,NULL
  438.          PinsPerHead    24
  439.          PixelsStep     1
  440.          EolnStr   NULL;                         /* EolnStr          */
  441.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  442.  
  443.          ModeDef  360,180,2;                     /* X and Y densities, ColorsNo */
  444.          ModeOptions  0;                         /* Planes, SimPlanes */
  445.          ColorPalette       NULL;                /* Color palette        */
  446.          InitGraphStr   NULL;                    /* InitGraphStr */
  447.          EndGraphStr    NULL;                    /* EndGraphStr  */
  448.          PicWidth
  449.          InitTransferStr <CR, Esc,'*',28h>,NULL
  450.          PinsPerHead    24
  451.          PixelsStep     1
  452.          EolnStr   NULL;                         /* EolnStr          */
  453.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  454.  
  455.          ModeDef  360,360,2;                     /* X and Y densities, ColorsNo */
  456.          ModeOptions  0;                         /* Planes, SimPlanes */
  457.          ColorPalette       NULL;                /* Color palette        */
  458.          InitGraphStr   NULL;                    /* InitGraphStr */
  459.          EndGraphStr    <Esc,'@'>;               /* EndGraphStr  */
  460.          PicWidth
  461.          InitTransferStr <CR, Esc,'*',28h>,NULL
  462.          PinsPerHead    24
  463.          PixelsStep     1
  464.          EolnStr   NULL;                         /* EolnStr          */
  465.          SmallEoln  <Esc,'+'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  466.          EndDriverDef   ; <----------------------------
  467.  
  468.          ;/*===============================*/
  469.          ;/*   IBM Pro X24                 */
  470.          ;/*===============================*/
  471.          DriverDef
  472.          ;         5,                            /* ModesNo  */
  473.          CompressionType  0                      /* CompressionType */
  474.          DriverName       <'24 pins: IBM Pro X24'>
  475.          ASCIInumbers    0;
  476.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  477.          InitPRTStr      NULL;                   /* Init PRT string */
  478.          EndPRTStr       NULL;                   /* End PRT string */
  479.          CompressedStr   NULL;                   /* CompressedStr  */
  480.          UncompressedStr NULL;                   /* UncompressedStr  */
  481.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  482.          TopMargin      <Esc,'r'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  483.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  484.  
  485.          ModeDef  60,180,2;                      /* X and Y densities, ColorsNo */
  486.          ModeOptions  0;                         /* Planes, SimPlanes */
  487.          ColorPalette       NULL;                /* Color palette        */
  488.          InitGraphStr   NULL;                    /* InitGraphStr */
  489.          EndGraphStr    NULL;                    /* EndGraphStr  */
  490.          PicWidth
  491.          InitTransferStr <CR, Esc,'*',20h>,NULL
  492.          PinsPerHead    24
  493.          PixelsStep     1
  494.          EolnStr   NULL;                         /* EolnStr          */
  495.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  496.  
  497.          ModeDef  120,180,2;                     /* X and Y densities, ColorsNo */
  498.          ModeOptions  0;                         /* Planes, SimPlanes */
  499.          ColorPalette       NULL;                /* Color palette        */
  500.          InitGraphStr   NULL;                    /* InitGraphStr */
  501.          EndGraphStr    NULL;                    /* EndGraphStr  */
  502.          PicWidth
  503.          InitTransferStr <CR, Esc,'*',21h>,NULL
  504.          PinsPerHead    24
  505.          PixelsStep     1
  506.          EolnStr   NULL;                         /* EolnStr          */
  507.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  508.  
  509.          ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  510.          ModeOptions  0;                         /* Planes, SimPlanes */
  511.          ColorPalette       NULL;                /* Color palette        */
  512.          InitGraphStr   NULL;                    /* InitGraphStr */
  513.          EndGraphStr    NULL;                    /* EndGraphStr  */
  514.          PicWidth
  515.          InitTransferStr <CR, Esc,'*',27h>,NULL
  516.          PinsPerHead    24
  517.          PixelsStep     1
  518.          EolnStr   NULL;                         /* EolnStr          */
  519.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  520.  
  521.          ModeDef  360,180,2;                     /* X and Y densities, ColorsNo */
  522.          ModeOptions  0;                         /* Planes, SimPlanes */
  523.          ColorPalette       NULL;                /* Color palette        */
  524.          InitGraphStr   NULL;                    /* InitGraphStr */
  525.          EndGraphStr    NULL;                    /* EndGraphStr  */
  526.          PicWidth
  527.          InitTransferStr <CR, Esc,'*',28h>,NULL
  528.          PinsPerHead    24
  529.          PixelsStep     1
  530.          EolnStr   NULL;                         /* EolnStr          */
  531.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  532.  
  533.          ModeDef  360,360,2;                     /* X and Y densities, ColorsNo */
  534.          ModeOptions  0;                         /* Planes, SimPlanes */
  535.          ColorPalette       NULL;                /* Color palette        */
  536.          InitGraphStr   NULL;                    /* InitGraphStr */
  537.          EndGraphStr    <Esc,'@'>;               /* EndGraphStr  */
  538.          PicWidth
  539.          InitTransferStr <CR, Esc,'*',28h>,NULL
  540.          PinsPerHead    24
  541.          PixelsStep     1
  542.          EolnStr   NULL;                         /* EolnStr          */
  543.          SmallEoln  <Esc,'+'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  544.          EndDriverDef   ; <----------------------------
  545.  
  546.          ;/*===============================*/
  547.          ;/* EPSON LQ860                   */
  548.          ;/*===============================*/
  549.          DriverDef
  550.          ;         5,                            /* ModesNo  */
  551.          CompressionType  0                      /* CompressionType */
  552.          DriverName       <'24 pins(color): EPSON LQ860'>
  553.          ASCIInumbers    0;
  554.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  555.          InitPRTStr      NULL;                   /* Init PRT string */
  556.          EndPRTStr       NULL;                   /* End PRT string */
  557.          CompressedStr   NULL;                   /* CompressedStr  */
  558.          UncompressedStr NULL;                   /* UncompressedStr  */
  559.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  560.          TopMargin      NULL,NULL,1,1;             /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????????? */
  561.          ColorsStrings  <Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  562.  
  563.          ModeDef  60,180,8;                      /* X and Y densities, ColorsNo */
  564.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  565.          ColorPalette       NULL;                /* Color palette        */
  566.          InitGraphStr   NULL;                    /* InitGraphStr */
  567.          EndGraphStr    NULL;                    /* EndGraphStr  */
  568.          PicWidth
  569.          InitTransferStr <CR, Esc,'*',20h>,NULL
  570.          PinsPerHead    24
  571.          PixelsStep     1
  572.          EolnStr   NULL;                         /* EolnStr          */
  573.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  574.  
  575.          ModeDef  120,180,8;                     /* X and Y densities, ColorsNo */
  576.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  577.          ColorPalette       NULL;                /* Color palette        */
  578.          InitGraphStr   NULL;                    /* InitGraphStr */
  579.          EndGraphStr    NULL;                    /* EndGraphStr  */
  580.          PicWidth
  581.          InitTransferStr <CR, Esc,'*',21h>,NULL
  582.          PinsPerHead    24
  583.          PixelsStep     1
  584.          EolnStr   NULL;                         /* EolnStr          */
  585.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  586.  
  587.          ModeDef  180,180,8;                     /* X and Y densities,, ColorsNo */
  588.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  589.          ColorPalette       NULL;                /* Color palette        */
  590.          InitGraphStr   NULL;                    /* InitGraphStr */
  591.          EndGraphStr    NULL;                    /* EndGraphStr  */
  592.          PicWidth
  593.          InitTransferStr <CR, Esc,'*',27h>,NULL
  594.          PinsPerHead    24
  595.          PixelsStep     1
  596.          EolnStr   NULL;                         /* EolnStr          */
  597.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  598.  
  599.          ModeDef  360,180,8;                     /* X and Y densities, ColorsNo */
  600.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  601.          ColorPalette       NULL;                /* Color palette        */
  602.          InitGraphStr   NULL;                    /* InitGraphStr */
  603.          EndGraphStr    NULL;                    /* EndGraphStr  */
  604.          PicWidth
  605.          InitTransferStr <CR, Esc,'*',28h>,NULL
  606.          PinsPerHead    24
  607.          PixelsStep     1
  608.          EolnStr   NULL;                         /* EolnStr          */
  609.          SmallEoln  <Esc,'J'>,NULL,1,1;          /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  610.  
  611.          ModeDef  360,360,8;                     /* X and Y densities, ColorsNo */
  612.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  613.          ColorPalette       NULL;                /* Color palette        */
  614.          InitGraphStr   NULL;                    /* InitGraphStr */
  615.          EndGraphStr    <Esc,'@'>;               /* EndGraphStr  */
  616.          PicWidth
  617.          InitTransferStr <CR, Esc,'*',28h>,NULL
  618.          PinsPerHead    24
  619.          PixelsStep     1
  620.          EolnStr        NULL;                    /* EolnStr          */
  621.          SmallEoln  <Esc,'+'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  622.          EndDriverDef   ; <----------------------------
  623.  
  624.          ;/*===============================*/
  625.          ;/* 24 pin IBM Pro X24 (color)    */
  626.          ;/*===============================*/
  627.          DriverDef
  628.          ;         5,                            /* ModesNo  */
  629.          CompressionType  0                      /* CompressionType */
  630.          DriverName       <'24 pins(color): IBM Pro X24'>
  631.          ASCIInumbers    0;
  632.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  633.          InitPRTStr      NULL;                   /* Init PRT string */
  634.          EndPRTStr       NULL;                   /* End PRT string */
  635.          CompressedStr   NULL;                   /* CompressedStr  */
  636.          UncompressedStr NULL;                   /* UncompressedStr  */
  637.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  638.          TopMargin      NULL,NULL,1,1;             /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  639.          ColorsStrings  <Esc,'r'>,NULL, NULL;    /* ColorStr1,ColorStr2, ColorsMap */
  640.  
  641.          ModeDef  60,180,8;                      /* X and Y densities, ColorsNo */
  642.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  643.          ColorPalette       NULL;                /* Color palette        */
  644.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  645.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  646.          PicWidth
  647.          InitTransferStr <CR, Esc,'*',20h>,NULL
  648.          PinsPerHead    24
  649.          PixelsStep     1
  650.          EolnStr        NULL;                    /* EolnStr          */
  651.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  652.  
  653.          ModeDef  120,180,8;                     /* X and Y densities, ColorsNo */
  654.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  655.          ColorPalette       NULL;                /* Color palette        */
  656.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  657.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  658.          PicWidth
  659.          InitTransferStr <CR, Esc,'*',21h>,NULL
  660.          PinsPerHead    24
  661.          PixelsStep     1
  662.          EolnStr        NULL;                    /* EolnStr          */
  663.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  664.  
  665.          ModeDef  180,180,8;                     /* X and Y densities, ColorsNo */
  666.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  667.          ColorPalette       NULL;                /* Color palette        */
  668.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  669.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  670.          PicWidth
  671.          InitTransferStr <CR, Esc,'*',27h>,NULL
  672.          PinsPerHead    24
  673.          PixelsStep     1
  674.          EolnStr        NULL;                    /* EolnStr          */
  675.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  676.  
  677.          ModeDef  360,180,8;                     /* X and Y densities, ColorsNo */
  678.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  679.          ColorPalette       NULL;                /* Color palette        */
  680.          InitGraphStr   NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0B4",
  681.          EndGraphStr    NULL;          ;// "\x01b[\\""\x04" "\x00""\x00""\x00""\x00""\x0D8",
  682.          PicWidth
  683.          InitTransferStr <CR, Esc,'*',28h>,NULL
  684.          PinsPerHead    24
  685.          PixelsStep     1
  686.          EolnStr        NULL;                    /* EolnStr          */
  687.          SmallEoln  <Esc,'J'>,NULL,29,24;        /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  688.  
  689.          ModeDef  360,360,8;                     /* X and Y densities, ColorsNo */
  690.          ModeOptions  SimPlanes;                 /* Planes, SimPlanes */
  691.          ColorPalette       NULL;                /* Color palette        */
  692.          InitGraphStr   NULL;                    /* InitGraphStr */
  693.          EndGraphStr    <Esc,'@'>;               /* EndGraphStr  */
  694.          PicWidth
  695.          InitTransferStr <CR, Esc,'*',28h>,NULL
  696.          PinsPerHead    24
  697.          PixelsStep     1
  698.          EolnStr        NULL;                    /* EolnStr          */
  699.          SmallEoln  <Esc,'+'>,NL,1,1;            /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  700.          EndDriverDef   ; <----------------------------
  701.  
  702.          if 0
  703.             ;/* Hewlet Packard PaintJet */
  704.             ;/*    without Run Length Encoding compression     */
  705.             ;/*===============================*/
  706.             ;/* Hewlet Packard PaintJet       */
  707.             ;/*===============================*/
  708.             DriverDef
  709.             ;         3,                            /* ModesNo  */
  710.             CompressionType  0                      /* CompressionType */
  711.             DriverName       <'HP PaintJet'>
  712.             ASCIInumbers    1;
  713.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  714.             InitPRTStr      <Esc,'9', Esc,'&s1C'>;                   /* Init PRT string */
  715.             EndPRTStr       NULL;                   /* End PRT string */
  716.             CompressedStr   NULL;                   /* CompressedStr  */
  717.             UncompressedStr NULL;                   /* UncompressedStr  */
  718.             LeftMargin     <Esc,'&a'>,<'H'>,1,1;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  719.             TopMargin      <Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  720.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  721.  
  722.             ModeDef  90,90,2;                       /* X and Y densities, ColorsNo */
  723.             ModeOptions  0;                         /* Planes, SimPlanes */
  724.             ColorPalette       NULL;                /* Color palette        */
  725.             InitGraphStr   <Esc,'*t90R', Esc,'*r1U', Esc,'*r1A', Esc,'*b0M'>;
  726.             EndGraphStr    <Esc,'*r0B'>;
  727.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  728.             InitTransferStr <Esc,'*b'>,<'W'>
  729.             PinsPerHead    1
  730.             PixelsStep     1
  731.             EolnStr        NULL;                    /* EolnStr          */
  732.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  733.  
  734.             ModeDef  90,90,16;                      /* X and Y densities, ColorsNo */
  735.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  736.             ColorPalette       NULL;                /* Color palette        */
  737.             InitGraphStr   <Esc,'*t90R', Esc,'*r4U', Esc,'*r1A', Esc,'*b0M'>;
  738.             EndGraphStr    <Esc,'*r0B'>;
  739.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  740.             InitTransferStr <Esc,'*b'>,<'V'>
  741.             PinsPerHead    1
  742.             PixelsStep     1
  743.             EolnStr        <Esc,'*b0W'>;            /* EolnStr          */
  744.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  745.  
  746.             ModeDef  180,180,8;                     /* X and Y densities, ColorsNo */
  747.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  748.             ColorPalette       NULL;                /* Color palette        */
  749.             InitGraphStr   <Esc,'*t180R', Esc,'*r3U', Esc,'*r1A', Esc,'*b0M'>;
  750.             EndGraphStr    <Esc,'*r0B'>;
  751.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  752.             InitTransferStr <Esc,'*b'>,<'V'>
  753.             PinsPerHead    1
  754.             PixelsStep     1
  755.             EolnStr        <Esc,'*b0W'>;            /* EolnStr          */
  756.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  757.             EndDriverDef   ; <----------------------------
  758.  
  759.          else
  760.  
  761.             ;/*===============================*/
  762.             ;/* Hewlet Packard PaintJet       */
  763.             ;/*===============================*/
  764.             DriverDef
  765.             ;         4,                            /* ModesNo  */
  766.             CompressionType  PRT__RLE_COMPRESSION   /* CompressionType */
  767.             DriverName       <'HP PaintJet'>
  768.             ASCIInumbers    1;
  769.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  770.             InitPRTStr      <Esc,'9', Esc,'&s1C'>;  /* Init PRT string */
  771.             EndPRTStr       <Esc,'*r0B'>;           /* End PRT string */
  772.             CompressedStr   <Esc,'*b1M'>;           /* CompressedStr  */
  773.             UncompressedStr <Esc,'*b0M'>;           /* UncompressedStr  */
  774.             LeftMargin     <Esc,'*p'>,<'X'>,1,3;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  775.             TopMargin      <Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  776.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  777.  
  778.             ModeDef  90,90,2;                       /* X and Y densities, ColorsNo */
  779.             ModeOptions  0;                         /* Planes, SimPlanes */
  780.             ColorPalette       NULL;                /* Color palette        */
  781.             InitGraphStr   <Esc,'*t90R', Esc,'*r1U', Esc,'*r1A'>;
  782.             EndGraphStr    NULL;
  783.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  784.             InitTransferStr <Esc,'*b'>,<'W'>
  785.             PinsPerHead    1
  786.             PixelsStep     1
  787.             EolnStr        NULL;                    /* EolnStr          */
  788.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  789.  
  790.             ModeDef  180,180,2;                     /* X and Y densities, ColorsNo */
  791.             ModeOptions  0;                         /* Planes, SimPlanes */
  792.             ColorPalette       NULL;                /* Color palette        */
  793.             InitGraphStr   <Esc,'*t180R', Esc,'*r1U', Esc,'*r1A'>;
  794.             EndGraphStr    NULL;
  795.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  796.             InitTransferStr <Esc,'*b'>,<'W'>
  797.             PinsPerHead    1
  798.             PixelsStep     1
  799.             EolnStr        NULL;                    /* EolnStr          */
  800.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  801.  
  802.             ModeDef  90,90,16;                      /* X and Y densities, ColorsNo */
  803.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  804.             ColorPalette       NULL;                /* Color palette        */
  805.             InitGraphStr   <Esc,'*t90R', Esc,'*r4U', Esc,'*r1A'>;
  806.             EndGraphStr    NULL;
  807.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  808.             InitTransferStr <Esc,'*b'>,<'V'>
  809.             PinsPerHead    1
  810.             PixelsStep     1
  811.             EolnStr        <Esc,'*b0W'>;            /* EolnStr          */
  812.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  813.  
  814.             ModeDef  180,180,8;                     /* X and Y densities, ColorsNo */
  815.             ModeOptions  Planes;                    /* Planes, SimPlanes */
  816.             ColorPalette       NULL;                /* Color palette        */
  817.             InitGraphStr   <Esc,'*t180R', Esc,'*r3U', Esc,'*r1A'>;
  818.             EndGraphStr    NULL;
  819.             PicWidth       <Esc,'*r'>,<'S'>,1,1
  820.             InitTransferStr <Esc,'*b'>,<'V'>
  821.             PinsPerHead    1
  822.             PixelsStep     1
  823.             EolnStr        <Esc,'*b0W'>;            /* EolnStr          */
  824.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  825.             EndDriverDef   ; <----------------------------
  826.          endif
  827.  
  828.          if  0
  829.             ;/* Hewlet Packard LaserJet */
  830.             ;/*    without Run Length Encoding compression     */
  831.             ;/*===============================*/
  832.             ;/* Hewlet Packard LaserJet       */
  833.             ;/*===============================*/
  834.             DriverDef
  835.             ;         4,                            /* ModesNo  */
  836.             CompressionType  0                      /* CompressionType */
  837.             DriverName       <'HP LaserJet'>
  838.             ASCIInumbers    1;
  839.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  840.             InitPRTStr      <Esc,'9', Esc,'&s1C'>;  /* Init PRT string */
  841.             EndPRTStr       NULL;                   /* End PRT string */
  842.             CompressedStr   NULL;                   /* CompressedStr  */
  843.             UncompressedStr NULL;                   /* UncompressedStr  */
  844.             LeftMargin     <Esc,'*p'>,<'X'>,3,10;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  845.             TopMargin      <Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ????? */
  846.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  847.  
  848.             ModeDef  75,75,2;                       /* X and Y densities, ColorsNo */
  849.             ModeOptions  0;                         /* Planes, SimPlanes */
  850.             ColorPalette       NULL;                /* Color palette        */
  851.             InitGraphStr   <Esc,'*t75R', Esc,'*r1A', Esc,'*b0M'>;
  852.             EndGraphStr    <Esc,'*rB'>;
  853.             PicWidth
  854.             InitTransferStr <Esc,'*b'>,<'W'>
  855.             PinsPerHead    1
  856.             PixelsStep     1
  857.             EolnStr        NULL;                    /* EolnStr          */
  858.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  859.  
  860.             ModeDef  100,100,2;                     /* X and Y densities, ColorsNo */
  861.             ModeOptions  0;                         /* Planes, SimPlanes */
  862.             ColorPalette       NULL;                /* Color palette        */
  863.             InitGraphStr   <Esc,'*t100R', Esc,'*r1A', Esc,'*b0M'>;
  864.             EndGraphStr    <Esc,'*rB'>;
  865.             PicWidth
  866.             InitTransferStr <Esc,'*b'>,<'W'>
  867.             PinsPerHead    1
  868.             PixelsStep     1
  869.             EolnStr        NULL;                    /* EolnStr          */
  870.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  871.  
  872.             ModeDef  150,150,2;                     /* X and Y densities, ColorsNo */
  873.             ModeOptions  0;                         /* Planes, SimPlanes */
  874.             ColorPalette       NULL;                /* Color palette        */
  875.             InitGraphStr   <Esc,'*t150R', Esc,'*r1A', Esc,'*b0M'>;
  876.             EndGraphStr    <Esc,'*rB'>;
  877.             PicWidth
  878.             InitTransferStr <Esc,'*b'>,<'W'>
  879.             PinsPerHead    1
  880.             PixelsStep     1
  881.             EolnStr        NULL;                    /* EolnStr          */
  882.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  883.  
  884.             ModeDef  300,300,2;                     /* X and Y densities, ColorsNo */
  885.             ModeOptions  0;                         /* Planes, SimPlanes */
  886.             ColorPalette       NULL;                /* Color palette        */
  887.             InitGraphStr   <Esc,'*t300R', Esc,'*r1A', Esc,'*b0M'>;
  888.             EndGraphStr    <Esc,'*rB'>;
  889.             PicWidth
  890.             InitTransferStr <Esc,'*b'>,<'W'>
  891.             PinsPerHead    1
  892.             PixelsStep     1
  893.             EolnStr        NULL;                    /* EolnStr          */
  894.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  895.             EndDriverDef   ; <----------------------------
  896.  
  897.          else
  898.  
  899.             ;/*===============================*/
  900.             ;/* Hewlet Packard LaserJet       */
  901.             ;/*===============================*/
  902.             DriverDef
  903.             ;         4,                            /* ModesNo  */
  904.             CompressionType  PRT__RLE_COMPRESSION   /* CompressionType */
  905.             DriverName       <'HP LaserJet'>
  906.             ASCIInumbers    1;
  907.             TransferValueInBytes 1;                 /*  TransferValueInBytes  */
  908.             InitPRTStr      <Esc,'9', Esc,'&s1C'>;  /* Init PRT string */
  909.             EndPRTStr       NULL;                   /* End PRT string */
  910.             CompressedStr   <Esc,'*b1M'>;           /* CompressedStr  */
  911.             UncompressedStr <Esc,'*b0M'>;           /* UncompressedStr  */
  912.             LeftMargin     <Esc,'*p'>,<'X'>,3,10;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  913.             TopMargin      <Esc,'&l'>,<'E'>,1,166;    /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  914.             ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  915.  
  916.             ModeDef  75,75,2;                       /* X and Y densities, ColorsNo */
  917.             ModeOptions  0;                         /* Planes, SimPlanes */
  918.             ColorPalette       NULL;                /* Color palette        */
  919.             InitGraphStr   <Esc,'*t75R', Esc,'*r1A'>;
  920.             EndGraphStr    <Esc,'*rB'>;
  921.             PicWidth
  922.             InitTransferStr <Esc,'*b'>,<'W'>
  923.             PinsPerHead    1
  924.             PixelsStep     1
  925.             EolnStr        NULL;                    /* EolnStr          */
  926.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  927.  
  928.             ModeDef  100,100,2;                     /* X and Y densities, ColorsNo */
  929.             ModeOptions  0;                         /* Planes, SimPlanes */
  930.             ColorPalette       NULL;                /* Color palette        */
  931.             InitGraphStr   <Esc,'*t100R', Esc,'*r1A'>;
  932.             EndGraphStr    <Esc,'*rB'>;
  933.             PicWidth
  934.             InitTransferStr <Esc,'*b'>,<'W'>
  935.             PinsPerHead    1
  936.             PixelsStep     1
  937.             EolnStr        NULL;                    /* EolnStr          */
  938.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  939.  
  940.             ModeDef  150,150,2;                     /* X and Y densities, ColorsNo */
  941.             ModeOptions  0;                         /* Planes, SimPlanes */
  942.             ColorPalette       NULL;                /* Color palette        */
  943.             InitGraphStr   <Esc,'*t150R', Esc,'*r1A'>;
  944.             EndGraphStr    <Esc,'*rB'>;
  945.             PicWidth
  946.             InitTransferStr <Esc,'*b'>,<'W'>
  947.             PinsPerHead    1
  948.             PixelsStep     1
  949.             EolnStr        NULL;                    /* EolnStr          */
  950.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  951.  
  952.             ModeDef  300,300,2;                     /* X and Y densities, ColorsNo */
  953.             ModeOptions  0;                         /* Planes, SimPlanes */
  954.             ColorPalette       NULL;                /* Color palette        */
  955.             InitGraphStr   <Esc,'*t300R', Esc,'*r1A'>;
  956.             EndGraphStr    <Esc,'*rB'>;
  957.             PicWidth
  958.             InitTransferStr <Esc,'*b'>,<'W'>
  959.             PinsPerHead    1
  960.             PixelsStep     1
  961.             EolnStr        NULL;                    /* EolnStr          */
  962.             SmallEoln      NULL,NULL,1,1;           /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  963.             EndDriverDef   ; <----------------------------
  964.          endif
  965.  
  966.  
  967.    if   0
  968.          ;/*===============================*/
  969.          ;/* 9 pins : EPSON                */
  970.          ;/*===============================*/
  971.          DriverDef
  972.          ;         2,                            /* ModesNo  */
  973.          CompressionType  0                      /* CompressionType */
  974.          DriverName       <'9 pin: EPSON (9 pin graphic)'>
  975.          ASCIInumbers    0;
  976.          TransferValueInBytes 0;                 /*  TransferValueInBytes  */
  977.          InitPRTStr      NULL;                   /* Init PRT string */
  978.          EndPRTStr       NULL;                   /* End PRT string */
  979.          CompressedStr   NULL;                   /* CompressedStr  */
  980.          UncompressedStr NULL;                   /* UncompressedStr  */
  981.          LeftMargin     <Esc,'l'>,NULL,1,100;      /* LeftMarginStr1,LeftMarginStr2,LeftMarginDiv */
  982.          TopMargin      <Esc,'c'>,NULL,1,166;      /* TopMarginStr1,TopMarginStr2,TopMarginDiv ???????????? */
  983.          ColorsStrings  NULL,NULL, NULL;         /* ColorStr1,ColorStr2, ColorsMap */
  984.  
  985.          ModeDef  120,72;                        /* X and Y densities, ColorsNo */
  986.          ModeOptions  0;                         /* Planes, SimPlanes */
  987.          ColorPalette       NULL;                /* Color palette        */
  988.          InitGraphStr   NULL;                    /* InitGraphStr */
  989.          EndGraphStr    NULL;                    /* EndGraphStr  */
  990.          PicWidth
  991.          InitTransferStr <CR, Esc,05Eh,1>,NULL
  992.          PinsPerHead    9
  993.          PixelsStep     1
  994.          EolnStr        NULL;                    /* EolnStr          */
  995.          SmallEoln  <Esc,04Ah>,NULL,3,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  996.  
  997.          ModeDef  120,216,2;                     /* X and Y densities, ColorsNo */
  998.          ModeOptions  0;                         /* Planes, SimPlanes */
  999.          ColorPalette       NULL;                /* Color palette        */
  1000.          InitGraphStr   NULL;                    /* InitGraphStr */
  1001.          EndGraphStr    NULL;                    /* EndGraphStr  */
  1002.          PicWidth
  1003.          InitTransferStr <CR, Esc,05Eh,1>,NULL
  1004.          PinsPerHead    9
  1005.          PixelsStep     3
  1006.          EolnStr        NULL;                    /* EolnStr          */
  1007.          SmallEoln  <Esc,04Ah>,NULL,1,1;         /* SmallEoln,SmallEolnMult,SmallEolnDiv   */
  1008.          EndDriverDef   ; <----------------------------
  1009.    endif
  1010.  
  1011.  
  1012. org PRT__MaxDriverNo
  1013.     dw   DriversNo
  1014.  
  1015.     if   DriversNo GT MaxDriversNo
  1016.          err Too many drivers definitions, change MaxDriversNo at the file beginning
  1017.          DriversNo = MaxDriversNo;
  1018.     endif
  1019.     d = 0
  1020.     org PRT__DriversOffsets
  1021.     Rept DriversNo
  1022.          d = d+1
  1023.          genstmnt  <D_offs>,,<=>,,<DriverDefOffs_>,%d
  1024.          dw        D_offs ; driver definition offset
  1025.     ENDM
  1026.  
  1027.      END
  1028.  
  1029.      END
  1030.