Category : Utilities for DOS and Windows Machines
Archive   : CHOICES2.ZIP
Filename : CTRLOFF.ASM

 
Output of file : CTRLOFF.ASM contained in archive : CHOICES2.ZIP
;PROGRAM CRTLALT;
;
; A Ctrl-Break interception routine to disallow Crtl-Break.
; Program stays resident so a power on is needed to remove the
; program.
;
;
cseg segment para public 'code'
org 100h
ctrl proc far
assume cs:cseg,ds:cseg
;
jmp install ;go install the new Ctrl-break routine
;
intloc equ 1bh*4 ;location of interrupt vector
;
;
;
;
newint: ;entry here on Ctrl-Break
;
iret
;
;
install: ;install new Ctrl-break interrupt
mov ax,0
mov es,ax
mov bx,ds
;
cli ;disable interrupts
;-- interrupts disabled --
mov di,intloc
mov ax,offset newint
mov es:[di],ax ;change interrupt vector ip
mov es:[di+2],bx ;change interrupt vector cs
;--------------------------
sti ;reenable interrupts
;
mov dx,offset install
;length of resident portion of program
int 27h ;terminate but stay resident
;
ctrl endp
cseg ends
end ctrl


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : CHOICES2.ZIP
Filename : CTRLOFF.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/