home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
rbbs
/
172a-asm.lzh
/
RBBSHS.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-01-28
|
2KB
|
41 lines
PAGE 66,132
TITLE RBBS-PC HearSay Interface Copyright 1989 by Jon J. Martin
;--------------------------------------------------------------------;
;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) ;
; ;
;--------------------------------------------------------------------;
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
MOV SI,[BP]+6 ;GET ADDRESS OF STRING PARAMETER
MOV AX,2[SI] ;PUT VALUE IN AX REGISTER
PUSH DS ;DATA SEGMENT ON STACK
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