home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol3n25.zip / NPAD.DOC < prev   
Text File  |  1986-09-11  |  4KB  |  82 lines

  1.  
  2.           NPAD (Notepad)                          Steven Holzner
  3.           Command                       PC Magazine Vol 3, No 25
  4.         Copyright 1984 Ziff-Davis Publishing Company
  5.           ______________________________________________________
  6.  
  7.           Purpose:  Creates an on-screen window in which to keep
  8.                     notes while working in other programs.
  9.  
  10.           Format:   NPAD         (loads memory-resident program)
  11.                     <Ctrl-N>            (toggles notepad on/off)
  12.  
  13.           Remarks:  The NPAD notepad holds 10 lines of 25
  14.                     characters each.  The window is toggled on
  15.                     and off in the upper right corner of the
  16.                     screen.  Toggling the window off does not
  17.                     eliminate its contents, but pressing the
  18.                     Delete key while the window is on-screen
  19.                     does.  Single characters may be deleted with
  20.                     the backspace, and the carriage return is
  21.                     also recognized.  No provision for storing
  22.                     the contents of the notepad as a file are
  23.                     available, however.
  24.  
  25.                     Option 1: NPAD.COM can be modified by using
  26.                     DEBUG.  The ASCII and scan codes for the
  27.                     default trigger key (Ctrl-N) are 0Eh and 31h,
  28.                     respectively, and are located at the offset
  29.                     addresses xxxx:0336 and xxxx:0337.  To change
  30.                     these to use the reverse apostrophe (grave
  31.                     accent), you would enter
  32.  
  33.                          DEBUG NPAD.COM
  34.  
  35.                     and
  36.  
  37.                          -E 336
  38.  
  39.                     DEBUG will respond with
  40.  
  41.                     xxxx:0336  0E.
  42.  
  43.                     and you simply type in the new ASCII code, in
  44.                     this case, 60 (the hex value of decimal 96).
  45.  
  46.                     After entering E 337 and getting the response
  47.  
  48.                     xxxx:0337  31.
  49.  
  50.                     you type in the new scan code 29 (41 decimal)
  51.                     for the grave accent.  Other ASCII and scan
  52.                     codes are given in the BASIC and in the DOS
  53.                     Technical Reference manuals.
  54.  
  55.                     The two locations to examine and change for
  56.                     the NPAD colors are 02FF and 0413, which have
  57.                     a default value of 70h (112 decimal).  On a
  58.                     color monitor this produces a white (7)
  59.                     background with black (0) characters.  For
  60.                     red letters on white you would change the 70h
  61.                     to 74h (116 decimal) at these two locations.
  62.  
  63.                     The colors to which NPAD resets its portion
  64.                     of the screen on exit are set by the value at
  65.                     xxxx:0350h.  The default value is 07 (white
  66.                     characters on a black background).  For white
  67.                     letters on a dark blue background, change the
  68.                     07 to 17h (23 decimal); for dark blue letters
  69.                     on white, use 71h (113 decimal) at this location.
  70.  
  71.                     When you have made the changes you want, at
  72.                     the DEBUG hyphen prompt enter W and then Q.
  73.  
  74.                     Notes:
  75.  
  76.                     1.   NPAD is a memory-resident program that
  77.                          must scan the keyboard interrupts.  It
  78.                          will conflict with applications programs
  79.                          (e.g., XyWrite) that themselves
  80.                          commandeer the keyboard interrupts.
  81.  
  82.