Dec 152017
C++ source code to disable the pause key on extended keyboards.
File NOPAUSE.ZIP from The Programmer’s Corner in
Category C++ Source Code
C++ source code to disable the pause key on extended keyboards.
File Name File Size Zip Size Zip Type
NOPAUSE.CPP 1947 966 deflated
NOPAUSE.DOC 1482 717 deflated
NOPAUSE2.CPP 1433 777 deflated

Download File NOPAUSE.ZIP Here

Contents of the NOPAUSE.DOC file

By Thomas Astin CIS: 73407,3427 Prodigy: RNVN08A
(C) Copyright 1991. All rights reserved.

This code demonstrates how to "disable" the pause/lock feature provided on
most 286/386 class machines supporting a 101/102 keyboard. When Pause is
pressed the BIOS loops until any other key is pressed thereby allowing the
user to suspend any program currently running.

NOPAUSE and NOPAUSE each demonstrate a way to disable the Pause feature. The
word "disabled" is used loosely because the Pause key is not actually
disabled. Either the Pause key scan codes are kept from the BIOS or the BIOS
data area containing a Pause/Lock bit is constantly cleared. Due to limited
testing on multiple machines it is hard to say if this code will behave
correctly on all machines. Please see notes in source code for further

Method #1 - NOPAUSE.CPP
NOPAUSE demonstrates by way of intercepting keyboard hardware int 0x09.

Method #1 - NOPAUSE.CPP
NOPAUSE2 demonstrates by way of intercepting clock tick interrupt 0x1C. The
code in the intercepting handler clears a Pause/Lock bit located in the BIOS
data area. NOTE: This worked on the testing machine because it was known that
the Pause/Lock loop in the testing machine's bios tested the Pause/Lock bit
and droped out of the loop if the bit was clear. This may not work the same on
other machines.

 December 15, 2017  Add comments

Leave a Reply