Top Navigational Bar

Num Lock Turned Off At DOS With DEBUG File SE
DocumentID: 633403
Revision Date: 29-Feb-96 3:03:16 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: For those users wanting a program to turn off their number lock at a DOS prompt, a "COM" program that is 8 bytes long can be created to do so. The user can create this file with DEBUG.

Follow the steps or refer to the listing of commands below to create the SETKEY.COM file used for turning off the Num Lock key.
1.      Type DEBUG SETKEY.COM at the C:\> prompt and press Enter (the DEBUG.COM file should be in this directory)
2.      File not found will appear on the next line.
            Different versions of DEBUG will give different information at this time. Some may list the Program and Copyright information followed by a Processor line before the File Not Found (as shown in the example below).
3.      A number/letter prompt will appear followed by a colon (:) and the number 0100 (32C6:0100). The number/letter combination may vary but as long as it is followed by :0100, the steps will be the same. At the prompt 32C6:0100 prompt type pop ds and press Enter
4.      The next prompt should have the same number/letter combination, this time followed by :0101. Type and byte ptr [0417],df and press Enter
5.      The same number/letter combination will again appear this time followed by :0106. Type int 20 and press Enter
6.      The next line should read 32C6:0108 (for example). Simply press Enter
7.      A hyphen will appear on the left margin at which the user would type
      r cx and press Enter
8.      A line will then appear with CX 0000 and the cursor will be resting on the line below next to a colon (:)
9.      Type the number 8 beside the : and press Enter
10.      A hyphen will appear on the left margin at which the user would type a w and press Enter
11.      Writing 0008 bytes will appear on the screen followed by a hyphen at the left margin on the line below
12.      Type a q on the line next to the hyphen and press Enter

The original DOS prompt will then appear and the .COM file will be completed. The SETKEY.COM file can now be used in a .BAT file or typed manually at DOS to turn off Num Lock. The commands below are shown as they would appear when typed at DOS:

      C:\>debug setkey.com
      Microsoft ® Symbolic Debug Utility Version 4.00
      Copyright © Microsoft Corp 1984, 1985. All rights reserved.

      Processor is [80286]
      File not found
      -a
      32C6:0100 pop ds
      32C6:0101 and byte ptr [0417],df
      32C6:0106 int 20
      32C6:0108
      -r cx
      CX 0000
      8
      -w
      Writing 0008 bytes
      -q

      C:\>

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.