Category : Files from Magazines
Archive   : PCTJ8707.ZIP
Filename : ENHANKB.ASM

Output of file : ENHANKB.ASM contained in archive : PCTJ8707.ZIP
CODE segment
assume cs:CODE
org 100h ; COM file origin
ENTRY: jmp INIT ; go to install TSR
OLDINT16_VEC dd ? ; Save area for old INT 16h handler

INT16 proc far
assume ds:nothing,es:nothing
pushf ; Save flags
sti ; Allow interrupts
cmp ah,01h ; Check for functions 00h-01h
ja INT16_ORIG ; Too big for us
or ah,10h ; Convert to extended functions
popf ; Restore flags
jmp OLDINT16_VEC ; Continue on
INT16 endp ; End INT16 procedure

INIT proc
assume ds:CODE
mov ax,3516h ;get int 16h vector
int 21h
mov word ptr OLDINT16_VEC,bx ;save it
mov word ptr OLDINT16_VEC+2,es
mov ax,2516h ;repoint it
mov dx,offset INT16
int 21h
mov dx,offset INIT ;point to end of code
int 27h ;bye now
INIT endp
CODE ends

  3 Responses to “Category : Files from Magazines
Archive   : PCTJ8707.ZIP
Filename : ENHANKB.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: