Category : Assembly Language Source Code
Archive   : DOCFILES.ZIP
Filename : NPAD.DOC

 
Output of file : NPAD.DOC contained in archive : DOCFILES.ZIP

NPAD (Notepad) Steven Holzner
Command PC Magazine Vol 3, No 25
Copyright 1984 Ziff-Davis Publishing Company
______________________________________________________

Purpose: Creates an on-screen window in which to keep
notes while working in other programs.

Format: NPAD (loads memory-resident program)
(toggles notepad on/off)

Remarks: The NPAD notepad holds 10 lines of 25
characters each. The window is toggled on
and off in the upper right corner of the
screen. Toggling the window off does not
eliminate its contents, but pressing the
Delete key while the window is on-screen
does. Single characters may be deleted with
the backspace, and the carriage return is
also recognized. No provision for storing
the contents of the notepad as a file are
available, however.

Option 1: NPAD.COM can be modified by using
DEBUG. The ASCII and scan codes for the
default trigger key (Ctrl-N) are 0Eh and 31h,
respectively, and are located at the offset
addresses xxxx:0336 and xxxx:0337. To change
these to use the reverse apostrophe (grave
accent), you would enter

DEBUG NPAD.COM

and

-E 336

DEBUG will respond with

xxxx:0336 0E.

and you simply type in the new ASCII code, in
this case, 60 (the hex value of decimal 96).

After entering E 337 and getting the response

xxxx:0337 31.

you type in the new scan code 29 (41 decimal)
for the grave accent. Other ASCII and scan
codes are given in the BASIC and in the DOS
Technical Reference manuals.

The two locations to examine and change for
the NPAD colors are 02FF and 0413, which have
a default value of 70h (112 decimal). On a
color monitor this produces a white (7)
background with black (0) characters. For
red letters on white you would change the 70h
to 74h (116 decimal) at these two locations.

The colors to which NPAD resets its portion
of the screen on exit are set by the value at
xxxx:0350h. The default value is 07 (white
characters on a black background). For white
letters on a dark blue background, change the
07 to 17h (23 decimal); for dark blue letters
on white, use 71h (113 decimal) at this location.

When you have made the changes you want, at
the DEBUG hyphen prompt enter W and then Q.

Notes:

1. NPAD is a memory-resident program that
must scan the keyboard interrupts. It
will conflict with applications programs
(e.g., XyWrite) that themselves
commandeer the keyboard interrupts.



  3 Responses to “Category : Assembly Language Source Code
Archive   : DOCFILES.ZIP
Filename : NPAD.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/