home *** CD-ROM | disk | FTP | other *** search
- ; Play/R interface routines - ASM example
- ;
- dosseg
- .model medium
-
- .data
-
- public _param
-
- _param db 64 dup (0)
- playrid db "Play/R "
- idnum dw 0ffffh
-
- .const
-
- tessmpx equ 5453h
- mpxint equ 2fh
-
- .code
-
- public _checkres,_callplayr
-
- _checkres proc
- push ds
- mov ax,@data
- mov ds,ax
- mov si,offset playrid
- mov ax,tessmpx
- xor bx,bx
- xor cx,cx
- int mpxint
- pop ds
- cmp ax,0ffffh
- jne @@1
- mov ax,cx
- jmp @@2
- @@1: mov ax,0ffffh
- @@2:
- mov idnum,ax
- ret
- _checkres endp
-
- _callplayr proc
- mov ax,@data
- mov es,ax
- mov di,offset _param
- mov ax,tessmpx
- mov bx,20h
- mov cx,idnum
- int mpxint
- ret
- _callplayr endp
-
- end
-