Category : Files from Magazines
Archive   : PCTV1N4.ZIP
Filename : TSR101.ASM

 
Output of file : TSR101.ASM contained in archive : PCTV1N4.ZIP

OLD_INT_16 DD 0 ; TSR install stores old INT 16H vector here.
...
...
...
NEW_INT_16: ; TSR install points INT 16H vector to here.
STI
CMP AH,00H ; Request = 00H (get keystroke)?
JE CALL_BIOS ; ..yes, then CALL BIOS
; (and then back to us)
JMP CS:OLD_INT_16 ; ..no, just JMP to BIOS
; (it'll IRET to user)
CALL_BIOS:
PUSHF ; Simulate INT so BIOS's IRET returns to us
CALL CS:OLD_INT_16 ; call BIOS INT 16H handler
; now we're back...
PUSHF ; Save any flags from the BIOS routine
CMP AX,CS:HOT_KEY ; Is it our hot key?
JE TSR_MAINLINE ; ..yes, go do the TSR's thing
POPF ; ..no, go back to user...
IRET
...
...



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