qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
NewBreak
   Example  Back  Contents  Index
──────────────────────────────────────────────────────────────────────────────
 
;* NewBreak - A primitive handler for Interrupt 1Bh that can take control
;* when the Ctrl-Break keyboard sequence is pressed. For an example of
;* how to use such a handler and install its address into the interrupt
;* vector table, see the MiscDemo program and the Exec example procedure.
;*
;* Shows:   BIOS Interrupt - 1Bh (Ctrl-Break Handler Address)
;*          Instruction - iret
 
NewBreak PROC
 
        sti                             ; Reenable interrupts
        push    ax                      ; Preserve AX register
        mov     al, 20h                 ; Send end-of-interrupt signal
        out     20h, al                 ;   to interrupt controller
        pop     ax                      ; Recover AX register
        iret                            ; Return from handler
                                        ;   without taking action
NewBreak ENDP
                                    -♦-