home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / pcmag / npad.lzh / NPAD.DOC < prev   
Text File  |  1988-11-24  |  4KB  |  77 lines

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