Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : DRVSTART.LST

 
Output of file : DRVSTART.LST contained in archive : DD_IN_C.ZIP
Microsoft (R) Macro Assembler Version 6.00 07/07/92 09:54:10
drvstart.asm Page 1 - 1


;
; C Startup routine for parallel device driver
;
EXTRN _main:near
EXTRN _timr_handler:near
PUBLIC _STRATEGY
PUBLIC __acrtused
PUBLIC _TIMER_HANDLER

0000 _DATA segment word public 'DATA'
0000 _DATA ends

0000 CONST segment word public 'CONST'
0000 CONST ends

0000 _BSS segment word public 'BSS'
0000 _BSS ends

DGROUP group CONST, _BSS, _DATA

0000 _TEXT segment word public 'CODE'

assume cs:_TEXT, ds:DGROUP, es:NOTHING, ss:NOTHING
.286

0000 _STRATEGY proc far
0000 __acrtused: ;to satisfy C

0000 start:
0000 06 push es ; &reqpacket high part
0001 53 push bx ; &reqpacket low part
0002 E8 0000 E call _main
0005 5B pop bx
0006 07 pop es
0007 26: 89 47 03 mov word ptr es:[bx+3],ax ; plug in status word
000B CB ret
000C _STRATEGY endp
;
000C _TIMER_HANDLER proc far
;
000C 60 pusha ;save flags, regs
000D 1E push ds
000E 06 push es ;make up for the 'almost all' push
000F E8 0000 E call _timr_handler ;handle interrupts
0012 07 pop es
0013 1F pop ds
0014 61 popa ;restore everything and
0015 CB ret ;bail out
;
0016 _TIMER_HANDLER endp


0016 _TEXT ends
end




  3 Responses to “Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : DRVSTART.LST

  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/