Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!sun-barr!newstop!sun!grapevine!sgrimm@sun.com From: sgrimm@sun.com (Steven Grimm) Newsgroups: comp.sys.atari.st Subject: Re: Atari modems Keywords: modems, dtr, help Message-ID: <34434@grapevine.uucp> Date: 3 Oct 89 14:49:37 GMT References: <1344@ultb.UUCP> Sender: news@grapevine.EBay Reply-To: sgrimm@sun.com (Steven Grimm) Organization: Sun Microsystems Federal, Milpitas, CA Lines: 17 In article <1344@ultb.UUCP> adw3345@ultb.UUCP (A.D. Williams) writes: > However, I would like to know how to detect a cut off connection, such >as if the host computer hangs up or line noise cuts off the carrier. Carrier detect is at $fffa01, bit 1 (i.e., (*(char *)0xfffa01)&2), but you'll have to be in supervisor mode to read that. The GEMDOS Super() or XBIOS Supexec() calls work well for this purpose. Also, if you're tweaking DTR, keep in mind that Offgibit() requires a mask to AND with, so if you want to turn off bit 0x10 you'll have to pass 0xef to Offgibit(). This had me scratching my head for a while, as it's not mentioned in any of the documentation I have. --- This message is a figment of your imagination. Any opinions are yours. Steven Grimm Moderator, comp.{sources,binaries}.atari.st sgrimm@sun.com ...!sun!sgrimm