; DO2E.ASM
.model small,c
.code

do2e    proc    uses ds si di, cmdstr:ptr byte
        public  do2e
; void do2e( char * cmdstr ); /* prototype */

        mov     si,cmdstr       ; small model
;       lds     si,cmdstr       ; large model
        mov     cs:svss,ss
        mov     cs:svsp,sp
        cld
        int     2Eh
        cli
        mov     ss,cs:svss
        mov     sp,cs:svsp
        sti
        cld
        ret

        even            ; for best 286+ usage
svss    dw      0
svsp    dw      0

do2e    endp

        end
