Look at INT 23h.

https://fd.lod.bz/rbil/interrup/dos_kernel/23.html

In assembly you might do somethings like this

; Save original interrupt 23h vector
MOV AX, 3523h ; AH=35h (Get Interrupt Vector), AL=23h
INT 21h ; ES:BX now holds the original vector

; Create new handler (e.g., an IRET instruction to do nothing)
; ... (code for your custom handler, which might just be an IRET)

; Set new interrupt 23h vector
MOV DX, OFFSET NewHandler ; DS:DX points to your new handler
MOV AX, 2523h ; AH=25h (Set Interrupt Vector), AL=23h
INT 21h

; ... (your main program code)

; Restore original interrupt 23h vector before exiting
MOV DX, BX ; Restore original offset
MOV DS, ES ; Restore original segment
MOV AX, 2523h ; AH=25h (Set Interrupt Vector), AL=23h
INT 21h


On Mon, Sep 22, 2025 at 5:19 PM Norby Droid <danorbydr...@gmail.com> wrote:

> Yes I have tried beak off and break on and it doesn't work.  I am also
> lookin into a way to do it in the language I am doin.
>
> On Mon, Sep 22, 2025 at 20:15 Louis Santillan <lpsan...@gmail.com> wrote:
>
>> Have you tried something like
>>
>> BREAK OFF
>> REM Your critical DOS program or batch file commands here
>> MYLOGIN.EXE
>> BREAK ON
>>
>> https://help.fdos.org/en/hhstndrd/cnfigsys/break.htm
>>
>>
>> On Mon, Sep 22, 2025 at 4:50 PM Norby Droid via Freedos-user <
>> freedos-user@lists.sourceforge.net> wrote:
>>
>>> Is there any way to temporarily disable the brek key somI can run a
>>> login program I am workin on, then renable it again once it is done.  I was
>>> thinkin mayne a batch file to disable, run login, the enable.  Thank you.
>>> _______________________________________________
>>> Freedos-user mailing list
>>> Freedos-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/freedos-user
>>>
>>
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to