Category : BASIC Source Code
Archive   : QB_FOSL.ZIP
Filename : QB_COM.ASM
Output of file : QB_COM.ASM contained in archive : QB_FOSL.ZIP
.code
;
;-----------------------------------------------------------------------------
; Standard FOSSIL interface
;-----------------------------------------------------------------------------
;
; Upon return, QBFossil%() will contain the value of AX.
;
;
; Example:
;
; DECLARE FUNCTION QBFossil%(service%, port%)
;
; CONST FOSSIL.INIT = &H400
;
; IF &H1954 = QBFossil(FOSSIL.INIT, port%) THEN
; PRINT "There is a FOSSIL present."
; ELSE
; PRINT "This program requires a FOSSIL driver."
; END IF
;
public qbfossil
qbfossil proc
push bp
mov bp,sp
mov bx,[bp+8] ; get arg 1 into ax
mov ax,[bx] ;
mov bx,[bp+6] ; get arg 2 into dx
mov dx,[bx] ;
mov bx,0 ; make sure bx is set to 0 (for ^C init call)
int 14h ; fossil interrupt
pop bp
ret 4 ; return and restore 4 bytes
qbfossil endp
end
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/