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

 
Output of file : DRVSTART.ASM contained in archive : DD_IN_C.ZIP
;
; C Startup routine for parallel device driver
;
EXTRN _main:near
EXTRN _timr_handler:near
PUBLIC _STRATEGY
PUBLIC __acrtused
PUBLIC _TIMER_HANDLER

_DATA segment word public 'DATA'
_DATA ends

CONST segment word public 'CONST'
CONST ends

_BSS segment word public 'BSS'
_BSS ends

DGROUP group CONST, _BSS, _DATA

_TEXT segment word public 'CODE'

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

_STRATEGY proc far
__acrtused: ;to satisfy C

start:
push es ; &reqpacket high part
push bx ; &reqpacket low part
call _main
pop bx
pop es
mov word ptr es:[bx+3],ax ; plug in status word
ret
_STRATEGY endp
;
_TIMER_HANDLER proc far
;
pusha ;save flags, regs
push ds
push es ;make up for the 'almost all' push
call _timr_handler ;handle interrupts
pop es
pop ds
popa ;restore everything and
ret ;bail out
;
_TIMER_HANDLER endp


_TEXT ends
end




  3 Responses to “Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : DRVSTART.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/