home *** CD-ROM | disk | FTP | other *** search
- TITLE int2e
-
- _TEXT SEGMENT BYTE PUBLIC 'CODE'
- _TEXT ENDS
- _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
- ASSUME CS: _TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP
-
-
-
- _TEXT SEGMENT
-
- EXTRN _osp:WORD
- EXTRN _oss:WORD
-
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
-
-
- PUBLIC _int2e ; int2e( stp )
- _int2e PROC NEAR
-
- push bp ; normal 'C' entry sequence
- mov bp,sp
- sub sp,4
-
- push di
- push si
-
- push ds ; in case int 2eH corrupts these
- push es
- push bp
-
- mov _osp,sp ; save SS:SP in memory
- mov ax,ss
- mov _oss,ax
-
- mov si,[bp+4]
- int 2EH
-
- mov sp,_osp ; restore SS:SP
- mov ax,_oss
- mov ss,ax
-
- pop bp
- pop es
- pop ds
-
- pop si ; normal 'C' exit sequence
- pop di
-
- mov sp,bp
- pop bp
- ret
-
- _int2e ENDP
-
-
- _TEXT ENDS
- END