BBS: Inland Empire Archive Date: 03-31-93 (10:31) Number: 315 From: TOM CUNHA Refer#: NONE To: JOHN COWGILL Recvd: NO Subj: Hanging up modem Conf: (2) Quik_Bas
> Could anyone suggest a bit of code to force the modem's > DTR to drop causeing the modem to go off-line when it is in host > mode? And in basic? Thanks in advance..... > ---John ' QB Routine to control DTR DEFINT A-Z SELECT CASE ComPort: ' The communications port number. CASE 1 Port = &H3F8: ' Base addresses. CASE 2 Port = &H2F8 CASE 3 Port = &H3E8 CASE 4 Port = &H2E8 END SELECT OUT Port + 4, INP(Port + 4) OR 1: 'puts DTR on. OUT Port + 4, INP(Port + 4) AND 254: 'puts DTR off. Hope it helps ya -tom --- * Origin: U-Com | San Antonio | Tom Cunha | 210-653-7697 (1:387/627)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET