home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / BEEHIVE / UTILITYS / VDE26.ARC / VINST26.DOC < prev   
Text File  |  1990-07-21  |  21KB  |  329 lines

  1.                                  VINST26.DOC
  2.                                  -----------
  3.                            [Supplement to VDE.DOC]
  4.  
  5.                     Instuctions for VINSTALL 2.60 (07/87)
  6.                 Installation Utility for Video Display Editor
  7.  
  8.                                (c)1987 E. Meyer
  9.  
  10.  
  11.      As distributed, VDE is set up for a very basic Generic Terminal, and VDM 
  12. is set up for an Osborne Executive.  If you use another computer/terminal, you 
  13. will probably need to re-"install" VDE/M before using it.  VDE can now be 
  14. installed for ANY terminal; if improperly installed, the display may be a 
  15. mess, but there are no other side effects.  VDM requires a computer with 
  16. memory-mapped video; if improperly installed, it may crash.
  17.      Most users should be able to install VDE simply by going to the Terminal 
  18. Installation and choosing the <L>ist option to select from a menu of terminals 
  19. already built into VINSTALL.  The list is not exhaustive, but it includes most 
  20. basic types: for example, the "LearSiegler ADM3" data should do well enough on 
  21. Qume, Wyse, Freedom and many other terminals, as well as many computers, that 
  22. emulate an ADM3 terminal.  Check your manual to see whether your machine 
  23. emulates one on the menu, or comes close.  Once you have VDE basically 
  24. working, you may want to go through the detailed <E>dit procedure to fine tune 
  25. things; the better the installation, the faster the display will work.
  26.      Installing VDE for your computer should not be difficult.  If you find 
  27. that it was, please consider dropping me a note with the details of what was 
  28. required, so that future versions of VINSTALL can be improved.
  29.  
  30.      Terminal installation, while necessary, is only one part of VINSTALL.  
  31. There are also a number of User Options affecting the operation of VDE that 
  32. you can select or modify to suit your taste, and a default set of Macro Keys.
  33.      The default printer installation is a basic Teletype (no special codes 
  34. enabled); VDE assumes only that the printer responds normally to Backspace (if 
  35. ^PH is used), Linefeed, and Formfeed.  You will probably want to redo this, so 
  36. you will have access to your printer's special features.
  37.      
  38.  
  39. =============================  RUNNING VINSTALL  =============================
  40.  
  41. VINSTALL SYNTAX:    A>vinstall {d:}vdename{.com} {instfil}     "{}"=optional
  42.  
  43.      Typically, you can use VINST26 to modify VDE26.COM (of course, feel free 
  44. to rename these files more conveniently) simply by typing:
  45.                     A>vinst26 vde26
  46. and selecting the values you want to change.  If you have to do a manual 
  47. installation of VDE for your computer, you may want to create an "installation 
  48. file" which you can use (and give to others) to supplement the built-in 
  49. terminal list of VINSTALL.  This is done by specifying another filename:
  50.                     A>vinst26 vde26 termname{.vde}
  51. VINSTALL will load and use (or create) the file TERMNAME.VDE (or .VDM), and 
  52. update it as well as VDE.COM when you exit.  The installation file is very 
  53. small, containing just terminal parameters (no user options, etc).
  54.      It is also possible to create "key files" of VDE macro key definitions.  
  55. These work just the same way, except they must have a filetype of ".VDK", and 
  56. this must be specified on the command line, eg:
  57.                     A>vinst26 vdm26 mykeys.vdk
  58.      There are also "printer files" of type ".VDP", which store your printer 
  59. installation data, and work the same way:
  60.                     A>vinst26 vdm26 okidata.vdp
  61. (No, you can't specify more than one supplemental file at once.)  The version 
  62. numbers of VDE/M, VINSTALL, and any other files must "agree" or you will get 
  63. an error.  The match need not be exact, as there may be a new release of VDE 
  64. without modifying the installation areas.
  65.  
  66.      VINSTALL is largely self-documenting, and steps you through each item 
  67. individually.  If this is your first time running the program, take advantage 
  68. of its "Help" option before you start in, for some basic instructions.  Note 
  69. that ALL the number entry in VINSTALL is HEXADECIMAL; you will find a good 
  70. ASCII/base-conversion chart helpful.  VINSTALL can't check for illegal values; 
  71. be careful what you enter!
  72.      What follows is a more detailed explanation of installation items, in 
  73. about the same order as in the VINSTALL procedure.  Most people will be using 
  74. VDE; you can try to use VDM instead if you have memory mapped video with:  (1) 
  75. a high bit that can be used to highlight and provide a cursor; (2) an absolute 
  76. address at or above 3000h.  The advantages of VDM over VDE are faster screen 
  77. updates and a little more free memory.
  78.  
  79. USER OPTIONS
  80.        Create BAKup files (Y/N) - Should a backup file be made when you edit 
  81.     an existing file?  Choose "Y" to play safe, "N" to save disk space.
  82.        Default file mode W/A/N -  Which of the three file modes "W","A","N" 
  83.     described in VDE.DOC do you want as the default?
  84.        Default insert on (Y/N) - Do you want the INSERT toggle to start out ON 
  85.     when first entering VDE?
  86.        Default ruler on (Y/N) - Do you want the Ruler line (^OT) to start out 
  87.     ON when first entering VDE?
  88.        Left and Right margin columns (00-FF) - Default margin settings for 
  89.     "W/A" modes.  Set both to 1 to entirely disable wordwrap and reformatting.
  90.        Page length (00-FF) - Set the number of text lines to print on a page.  
  91.     (Does not include another 3 lines for a header, if used.)  Setting to 0 
  92.     disables pagination entirely.
  93.        Scroll overlap (00-lines) - This is the number of lines overlap between 
  94.     screens when scrolling with ^R/^C.  The smaller, the larger the scroll.
  95.        Show system files (Y/N) - Do you want files with the SYStem attribute 
  96.     to show in the VDE directory display?
  97.        Fixed drives (A-P) -  This lets you specify that up to two CP/M logical 
  98.     drives are nonremovable media (hard or RAM disk), so VDE won't reset them 
  99.     before writing to them, speeding up some systems.  Enter two drives from 
  100.     "A" to "P"; to leave either blank, enter "@".  (The default is "@@", or 
  101.     none; if you have a RAM drive C:, enter "C@".)  Caution: naming a floppy 
  102.     drive here can cause serious BDOS errors on CP/M 2 systems.
  103.        Ring bell on error (Y/N) - Do you want your terminal bell to ring when 
  104.     a VDE error message displays?
  105.        Alternate video in header (Y/N) - Do you want the header, messages, etc 
  106.     to appear in a contrasting video mode (if installed)?
  107.        Block mark character (00-7F) - Usually ^B (02), but if you need to 
  108.     imbed that code in your files for any reason (eg, ZCPR3) you can change 
  109.     this to some other (otherwise unused) ASCII code, such as 00 (^@).
  110.        Wildcard character - Normally "_", this is the character that will be 
  111.     used as a wildcard in FIND strings.  Change if you wish.
  112.        Clock speed in MHz (01-FF) - Set this to reflect your CPU clock speed; 
  113.     most Z80 computers are 4.0 MHz (use 40 here).
  114.        Horizontal scroll delay (01-FF) - This adjusts the delay between 
  115.     scrolling the current line and scrolling the rest of the screen, when 
  116.     working beyond the right screen edge.  The average value is 80; adjust up 
  117.     or down as you like.  (VDM is so fast that a value of 01 is recommended.)
  118.        Hard Tab display spacing  -  This determines how any actual Tabs (^I) 
  119.     in your text will display.  Usually 08, this can be made 02, 04, 10, or 
  120.     any other power of two.  Other values will produce erratic results.
  121.        Variable tab stops -  Enter a list of up to 8 variable tab stop 
  122.     columns, in ascending order.  (Column 01 is the leftmost.)
  123.  
  124. TERMINAL INSTALLATION (Both versions)
  125.        Terminal ID - Identify the terminal you are installing. (16 characters)
  126.        Viewable screen columns (28-FF) - Enter the width of your screen in 
  127.     columns.  The normal value is 50h for an 80-column screen.
  128.        Screen lines (04-FF) - Enter the number of lines on your screen.  
  129.     Normally 18h for 24-line screens.
  130.        DELete character (00-7F) - VDE always accepts 7F as a delete key.  If 
  131.     your keyboard can't generate this you can install an alternate value here 
  132.     (example: 1F enables ^_ on an Osborne 1).  If you have a DEL key, you can 
  133.     leave this at the default value, FF for "not used".
  134.        Arrows up, down, right, left (00-7F) - Enter the ASCII codes generated 
  135.     by your terminal arrow keys in this order, one byte each.  Ignore parity.  
  136.     Use a value of FF to mean "not used".  (WordStar arrows and BS need not be 
  137.     redefined here.)  The default is CP/M ^K,^J,^L, entered as 0B0A0CFF.  (If 
  138.     you have ANSI standard arrow keys, you can set all these to FF.)
  139.        Terminal init, uninit - Enter the codes you want sent to initialize 
  140.     your screen on entry into VDE, and to uninitialize on exit, in the form 
  141.     (# of bytes),bytes.  Example: ^Z is (01)1A.  Minimally, both sets of codes 
  142.     should clear the screen.
  143.  
  144. TERMINAL INSTALLATION (Generic VDE only)
  145.        Autowrap at line end (Y/N) -  Usually Yes, as most terminals wrap down 
  146.     to the next line when a character is printed at the right edge of the 
  147.     screen.  If yours discards characters instead, set this to No.
  148.        Clear to end of line - Enter the codes to clear to the end of the line, 
  149.     as (#),bytes.  Example: ESC-T is (02)1B54.  If your terminal can't do this 
  150.     then zero it out (00).
  151.        Alternate video on/off - Enter the codes (#),bytes to turn your 
  152.     favorite video attribute (eg inverse, dim) on and off.  This will be used 
  153.     for control codes and (optionally) the header and messages.  If your 
  154.     terminal has no attributes, zero these out (00).
  155.        Use high bit for alt. video (Y/N) - If, instead, your terminal needs 
  156.     the high bit set on characters to put them in alternate video, zero the 
  157.     above strings out and say Yes here; otherwise, No.
  158.        Console filter (7D-FF) - This is the highest ASCII code that will be 
  159.     sent to the screen.  Normally 7F; if your terminal can't display codes 7F 
  160.     or 7E (DEL and tilde), lower this to 7E or 7D.  Characters filtered out 
  161.     will display as a "?".
  162.        Cursor positioning mode (S/R/A/N) - This tells VDE how your terminal 
  163.     can be made to put the cursor at any given row/column on the screen:
  164.               "S"tandard = leadin byte(s), row byte, column byte (default)
  165.               "R"eversed = leadin byte(s), column byte, row byte
  166.               "A"NSI std = ANSI standard sequences "ESC[rr;ccH"
  167.               "N"one     = no absolute cursor addressing supported
  168.        Cursor positioning sequence - This is the actual sequence used to 
  169.     address the cursor.  IF YOU CHOSE "A" above, you can skip this entirely.  
  170.     IF YOU CHOSE "S" or "R", then enter the 4-byte sequence for addressing the 
  171.     cursor to the top left:  two lead bytes, then two row/column offsets.  
  172.     Most terminals use ESC,=,20h+row,20h+col, or 1B3D2020.  If you have only 
  173.     one lead byte, enter 00 for the second.  IF YOU CHOSE "N", then you must 
  174.     enter two 2-byte sequences instead: first one to home the cursor, then one 
  175.     to move it right.  If either is only one byte, enter 00 for the second.  
  176.     Typical values are home=1Eh, right=0Ch, which would make 1E000C00.
  177.        Delay after cursor positioning (00-FF) - Normally 00.  Some slow 
  178.     terminals require a delay here to accomplish cursor movement; adjust this 
  179.     value upwards as necessary.
  180.        Insert, Delete line - Sequences that will cause the current cursor line 
  181.     to be deleted, or a new line inserted there.  Most terminals can do this.  
  182.     Example: on an ADM3-style terminal, ESC-E or (02)1B45 inserts a line, 
  183.     while ESC-R or (02)1B52 deletes a line.  For some terminals, you have to 
  184.     specify which line is to be inserted/deleted; in this case, enter the 
  185.     sequences for line 1 (the second screen line).  If your terminal can't do 
  186.     this at all, zero these out (00).
  187.        Ins/del specific to line 1 - Usually No; set to Yes only if the ins/del 
  188.     sequences you installed above are for line 1 only, rather than general.
  189.  
  190. TERMINAL INSTALLATION (Memory-mapped VDM only)
  191.        Unused columns of RAM (00-FF) - Enter the number of unused bytes in 
  192.     video RAM between the end of one visible line and the start of the next.  
  193.     Example: many computers have 80h (128) bytes of RAM per line, but only 
  194.     show 50h (80) of them.  So there would be 30h unused columns.
  195.        Cursor on/off - Enter the codes (#),bytes to turn the regular CP/M 
  196.     cursor on and off, so it won't appear on the VDE screen.  If you can't do 
  197.     this zero them out (00), and the cursor will remain visible at the upper 
  198.     corner of the screen.
  199.        Video RAM start (3000-FFFF) - Enter the starting address of your video 
  200.     memory, as four hex digits.
  201.        Video in/out code - If your video RAM is in the ordinary bank of 
  202.     memory (eg, at F000), just enter "C9" here (that's a RET instruction).  
  203.     Otherwise, you will need the machine-language code to switch video memory 
  204.     in and out.  There are 16 bytes available for each routine, and you must 
  205.     preserve all the CPU registers, and end with a RET.  You should find the 
  206.     assembler code to do this in your terminal manual; to convert it to hex, 
  207.     either look up the hex values in a Z80 reference book, or use DDT or 
  208.     ASM/MAC to write and assemble the code to hex form.
  209.  
  210. PRINTER INSTALLATION
  211.        Printer ID - Identify the printer you are installing.  (16 characters)
  212.        Send LF after CR (Y/N) - Normally Yes.  But with some printers, which 
  213.     manufacture their own LF on receiving a CR, you will want No here.
  214.        Printer initialization - Enter a string of code (#),bytes to send to 
  215.     the printer before each print job, to set margins, print modes etc.
  216.        Printer uninit - Enter another string (#),bytes to send to the printer 
  217.     after each print job, to restore printer to desired state on exit.
  218.        Toggles and switches - These are the ^P-codes that will be used to call 
  219.     up predefined sequences.  There are four toggles, then four switches.  
  220.     The defaults (^D,^S,^Y,^T; ^Q,^W,^E,^R) are chosen for WordStar compat- 
  221.     ibility, but can be changed if you want.  (Avoid ^B,^H,^I,^J,^L,^M,^Z, 
  222.     which are used for other purposes.)
  223.        Codes for toggles (on/off) - Enter the actual codes (#),bytes to send 
  224.     to fhe printer on encountering each of the four toggle codes defined 
  225.     above, first to turn a feature on, then off.
  226.        Codes for switches - Enter the actual codes (#),bytes to send to the 
  227.     printer on encountering each of the four switches defined above.
  228.  
  229. MACRO KEYS
  230.        VINSTALL gives you the ability to examine and change the default set of 
  231.     macro Keys in VDE.  (Any Keys defined with ESC-K while running VDE 
  232.     override the defaults.)  VINSTALL gives you a display much like this:
  233.       MACRO KEYS:  (01C6 bytes free)  <---- note free bytes (up to 01F4 = 500)
  234.       <0><>
  235.       <1><>                           <---- "<>" flag means empty
  236.       <2><>
  237.       <3>^C^W                         <---- normal macro key
  238.       <4><>
  239.       <5><N>World Wide Widgets Inc.   <---- "<N>" flag means no-rpt key
  240.       <6><>
  241.       <7><Q>^QR^[B^QC^[T^[C           <---- "<Q>" flag means quiet key
  242.       <8><>
  243.       <9><>
  244.     This is pretty straightforward; you just select the number of the Key you 
  245.     wish to redefine, then type in the new definition, much as you would in 
  246.     VDE.  All the same rules apply (but VINSTALL will accept longer keys, up 
  247.     to 128 bytes).  If the new definition is too long to fit it will be 
  248.     rejected.
  249.  
  250. FURTHER USER PATCHING
  251.        The address of the User Patch area will be given to you by VINSTALL.  
  252.     This small region in VDE can be used to install any extra patch code you 
  253.     need.  (Example:  if your video in/out routines won't fit into 16 bytes, 
  254.     you can jump to the User Patch area and put more code there.)  This is the 
  255.     ONLY such area available, as VDE uses all available memory after its own 
  256.     code for editing text.  Note: if you find the User Patch area too small, 
  257.     you can also use up to 32 extra bytes before it.  This is the Print Switch 
  258.     code area; you must then avoid using the four Switch codes.
  259.        VINSTALL also tells you the addresses of the command tables in VDE/M. 
  260.     You may find this useful if you need to go in and change a VDE command key 
  261.     that conflicts with your computer's firmware.  There are four command 
  262.     tables: basic, ESC, ^Q, and ^O.  Each is a list of 3-byte entries, with a 
  263.     one byte keycode, then a two byte address.  (Examples: you will find the 
  264.     ^T command and the ESC prefix in the basic table; the ^OX command appears 
  265.     in the ^O table, as ^X.)  Find the problem keycode, and use DDT or another 
  266.     utility to change it.  (You will also see the "keycodes" 80-84h in the 
  267.     tables; these mean DEL and the arrow keys, however installed.)
  268.        Don't try to change the ESC- prefix to ^K- to make VDE more "WordStar- 
  269.     like".  It will take you a while to locate all the occurrences, and leave 
  270.     you with some pretty confusing pairs of commands (eg ^KX = eXit, ^K^X = 
  271.     shift screen down).
  272.  
  273. RESTORE DEFAULTS
  274.        This option is provided in the event that someone has so mucked up your 
  275.     copy of VDE that you can't sort out what's wrong.  This should return VDE 
  276.     to nearly the state it was distributed in: all User Options restored to 
  277.     their defaults, Terminal Installation set to Generic (or Osborne Exec), 
  278.     printer set to a basic Teletype, no Macro Keys, no User Patch code.
  279.  
  280.  
  281. ==========================  GOING BEYOND VINSTALL  ===========================
  282.  
  283.      If your computer requires special additional code, and you know how to 
  284. use an assembler, you may want to make an overlay to add this code to VDE.  
  285. (You may also find this the easiest way to install other data, such as the 
  286. VidIN/OUT routines for the VDM Terminal Installation.)  Write the overlay 
  287. file, generate a HEX file with your assembler, then merge it with VDE.COM 
  288. using MLOAD or a similar utility.  (Be sure the code fits!)
  289.      Example: the following overlay adds special code for the NEC Starlet to 
  290. the User Patch area, where it is immediately executed when VDE is called up.  
  291. The Starlet has different terminal emulations and key definitions; most of 
  292. this code just ensures that it's in Soroc mode (which is what VINSTALL is set 
  293. up for), and sets the cursor and DEL key definitions properly.
  294.      There is another problem: the VDE case toggle command (^^) has to be 
  295. changed, as it will conflict with one of the Soroc arrow keys.  (On some other 
  296. computers, you can't generate ^^ from the keyboard at all.)  Note how the 
  297. overlay finds the address of the main command menu (all the menu addresses are 
  298. stored at 0108-010Fh in VDE.COM; alternatively, you can get VINSTALL to tell 
  299. you what they are), adds the appropriate offset (determine this yourself), and 
  300. then changes the command key to something else.
  301.        ;NEC8401 Patch for VDE 2.6 (8080 mnemonics)
  302.        org  0100h           ;At beginning of VDE.COM,
  303.               jmp  0248h    ; jump to User Patch area
  304.        org  0248h           ;At User Patch area,
  305.               mvi  c,08h    ; set screen mode:
  306.               mvi  e,81h    ;  Soroc, wrap on, fnkeys off, etc
  307.               rst  2        ;   call special BIOS
  308.               mvi  c,4Eh    ; set cursor keys:
  309.               mvi  e,3      ;  to mapped codes
  310.               rst  2        ;   call special BIOS
  311.               mvi  c,4Dh    ; set definable key:
  312.               lxi  d,data   ;  using data below
  313.               rst  2        ;   call special BIOS
  314.               lhld 0108h    ; get address of main command menu
  315.               lxi  d,6*3    ;  offset of ^^ (this may change)
  316.               dad  d        ;   point to offending ^^ code
  317.               mvi  m,0Ch    ;    change it to ^L instead
  318.               jmp  0480h    ;Jump to VDE Start point
  319.        data:  db  4,7Fh,0,0 ;Data to set "DEL" key as DEL (7F)
  320.               end
  321. You can also add code like this to VDE.COM using the "a" command to enter 
  322. assembler mnemonics in a debugging utility like DDT or SID.
  323.  
  324.  
  325.  
  326.   Eric Meyer, 427 N. Washington, Bloomington IN 47401  ---  CIS [74415,1305]
  327.  
  328. ==============================================================================
  329.