home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BBS_UTIL
/
BM0406_A.ZIP
/
BMASM.ZIP
/
RBBSHS.ASM
< prev
next >
Wrap
Assembly Source File
|
1993-01-31
|
2KB
|
52 lines
PAGE 66,132
TITLE RBBS-PC HearSay Interface Copyright 1989 by Jon J. Martin
;
; Changes made by Scott McNay (1:395/11) July 26, 1992, to allow routine to be
; used with code compiled with BC's /Fs option. (Most) changes marked with
; ;BCFS0726. May have optimized some code also. This is a plug-in replacement
; for the original code.
;BCFS0801: Standardized code format. Made sure that DI, SI, BP, and DS are
; saved to meet requirements of BC 7.x.
;-----------------------------------------------------------------------;
;ROUTINE: RBBSHS AUTHOR: Jon J. Martin ;
; 4396 N. Prairie Willow Ct. ;
; Concord, California 94521 ;
; ;
;DATE: January 27, 1989 VERSION: 1.0 ;
; ;
;FUNCTION: This routine supports calls from the IBM (MICROSOFT) ;
; BASIC Version 2.0 or Microsoft Quick BASIC Version 1.0 ;
; compilers to the HearSay User Interface. The call is: ;
; ;
; CALL RBBSHS (A$) ;
; ;
; where A$ is a string data item with the first byte ;
; containing a CHR$(x) value of the legnth of the string ;
; to be spoken. (DO NOT INCLUDE THE 1 BYTE IN THE ACTUAL ;
; LENGTH) ;
; ;
;-----------------------------------------------------------------------;
Extrn StringAddress:far ;BCFS0726
RBBSHSAY SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:RBBSHSAY
PUBLIC RBBSHS
RBBSHS PROC FAR ;LONG CALL
PUSH BP ;SAVE CALLERS BASE POINTER REGISTER -- BP
MOV BP,SP ;SETUP TO ADDRESS OFF OF BASE POINTER REGISTER
PUSH [BP+6] ;GET A$ STRING DESCRIPTOR ADDRESS ;BCFS0726
CALL StringAddress ;BCFS0726
PUSH DX ;DATA SEGMENT ON STACK ;BCFS0726
PUSH AX ;STRING POINTER ON STACK
XOR AX,AX ;SET AL TO 0
INT 55H ;CALL HearSay USER INTERFACE
POP AX ;REMOVE PARAMETERS FROM STACK
POP AX ;REMOVE PARAMETERS FROM STACK
POP BP ;RESTORE CALLERS BASE POINTER REGISTER-- BP
RET 2 ;RETURN AND REMOVE THE PARAMETER FROM STACK
RBBSHS ENDP
RBBSHSAY ENDS
END