home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
BEEHIVE
/
BBS
/
C128PICS.ARC
/
C1650.MDM
< prev
next >
Wrap
Text File
|
1991-08-11
|
2KB
|
55 lines
{ ROS.MDM - Remote Operating System Modem Dependent Routines }
{ File: C1650.MDM
Description: This driver is made to work with the C-128 using the 1650/1660
or (true) compatable. Note: Some modems have no RING detecter.
This driver WILL NOT WORK if not present. 450 baud is also
supported.
Date: 7/7/89
Author: Peter B. Carter
}
procedure mdhangup;
{ Hangup modem }
begin
ch_on
end;
procedure mdbusy;
{ Take modem off hook to present a busy signal to incoming callers }
begin
ch_off { Off hook not available }
end;
function mdring: boolean;
{ Determine if the phone is ringing }
begin
mdring := ch_ring;
end;
procedure mdans;
{ Detect and set system to rate at which modem answered phone }
var
i: integer;
begin
i := 450;
repeat
if i = 300
then i := 450
else i := 300;
ch_set(i);
repeat
until (not ch_carck) or ch_inprdy
until (not ch_carck) or (chr(ch_inp) in [CR, LF, ETX]);
while ch_inprdy do { Clear any junk }
i := ch_inp
end;
procedure mdinit;
{ Ensure the modem is hung up, initialized, and ready to wait for a ring. }
begin
ch_init; { Initialize the remote channel }
ch_on
end;