; DISKINT.ASM

; Autor:      Kai Uwe Rommel
; Datum:      Thu 28-Dec-1989
; Stand:      Tue 17-Jul-1990
;
; Assembler:  MASM 5.10
; System:     PC/MS-DOS ab 3.20
;
; Direct disk access library for OS/2 protected mode and MS-DOS.

; - API simulation for MS-DOS.

        .MODEL  SMALL,C
        .CODE

diskint PROC    service:BYTE, drive:BYTE, head:BYTE, track:BYTE, sector:BYTE, nsects:BYTE, buffer:FAR PTR BYTE

        mov     ah,service
        mov     al,nsects
        mov     ch,track
        mov     cl,sector
        mov     dh,head
        mov     dl,drive
        les     bx,buffer

        int     13h

        mov     dx,ax
        sbb     ax,ax

	ret

diskint ENDP

        END
