mov ax, 3300h ;Get CTRL+C Check Flag
int 21h
mov BreakFlag, dl ;0 = off, 1 = on
Get CTRL+C Check Flag (Function 3300h) returns the status of the MS-DOS CTRL+C check flag.
This function has no parameters.
The DL register contains 00h if checking is disabled, or the DL register contains 01h if checking is enabled.
If the CTRL+C check flag is off, MS-DOS checks for CTRL+C only while processing character I/O functions 01h through 0Ch. If the check flag is on, MS-DOS checks for CTRL+C while processing other system functions.
Function 3301h Set CTRL+C Check Flag