Int 1Bh: Keyboard Break Interrupt

The Keyboard Break interrupt is called when [Ctrl] [Break] is pressed. It is called from the Keyboard Hardware interrupt (Int 09h) via an Int 1Bh instruction. Applications may chain into the Keyboard Break interrupt. Interrupts are enabled when Int 1Bh is called, that is when the BIOS points the Int 1Bh vector to an IRET instruction. Just prior to calling Int 1Bh, the Int 09h routine clears the keyboard buffer. When the Int 1Bh routine returns, the Int 09h routine puts the pseudo scancode/ASCII pair "00h/00h" into the keyboard buffer, then returns.

When the Int 1Bh routine is entered, the BIOS has established a stack frame as shown below:

                ------------------------
                Saved Flags 
                ------------------------
                Saved CS 
                ------------------------
                Saved IP from Int 9h 
                ------------------------
                Saved AX 
                ------------------------
                Saved BX 
                ------------------------
                Saved CX 
                ------------------------
                Saved DX 
                ------------------------
                Saved SI 
                ------------------------
                Saved DI 
                ------------------------
                Saved DS 
                ------------------------
                Saved ES 
                ------------------------
                Saved Flags 
                ------------------------
                Saved CS 
                ------------------------
           SP-> Saved IP (from Int 1Bh) 
                ------------------------
The register contents are as shown below when Int 1Bh is called: