:This short program solves the problem of call waiting interruptingN:a communications session. Just run this before your communcations: program. It remains in effect until you reset your Hayes Smartmodem::  , ();"Setting Hayes Smartmodem 1200 for Call Waiting" # ,: n: ,: n/( "COM1:1200,N,8" AS #: nW2MSG$"ATS10=100"( ): d: n]FqG  ,: (P)H  ,: ();"Now Executing ASCOM IV -- Please Wait"Pd X (MSG$): #,(MSG$,X,);:n X :x}:H: Line 35: Port 1020 (3FC) is the MCR (Modem Control Register). The: bits are described on page 6-9 of the Hayes Smartmodem: 1200 manual. First CALLWAIT sends a 4, which enables the$: interrupt line drivers, and allows the UART to interrupto: the controller. If there are any problems with the serial: port, this command should generate some kind of error.: OUT 1020,3 will reset the modem and is equivalent toH: power off/power on. This must be held for at least 50 ms.: This is done using the timing loop at line 110.:: Line 40: Open the COM1 port for 1200 baud, no parity and 8 bit words: using buffer #1.:U: Line 50: Sends a command to the modem. The AT is the ATtention code,: which must precede all modem commands. The S10=100 is: described on page 6-7 of the manual. It allows the carrier4: signal to momentarily disappear. The S10=100 sets the time: interval for which the carrier may be lost. This interval: is adjustable in tenths of a second.8{_ 㪫p0ITnTK*P,ɎNFQ Qq7~f#X4M6 %>hPQG"c!+bXn\bLj4xlwL*0f 5I4)kFU?