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
-♦-