🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1243

Re: (Q)Basic -> C

#1243
From: Steve Resnick
Date: Thu, 06 Jun 1991 22:39
39 lines
1745 bytes
In article <1991Jun6.183759.5605@cunixf.cc.columbia.edu> francis@cunixf.cc.columbia.edu (Francis Ho) writes:
>
>what is the C equivalent (MSC 5.1 or TC/TC++) of these (Q)basic statements:
>
>	 resumecom% = 11	 /* is this an int?  */
>	 ctrladdress% = &H3FC    /* COM1 */
>	 OUT ctrladress%, resumecom%
>
>	 /* incidentally, why the '%', is this to signify ints ? */
>
>is the TC/TC++ version of the above :
>
>	 #define COM1 0
>
>		[...]
>
>	 bioscom(1, '\11', COM1);
>		 or ^^^^^ (char)(11)
>		 neither seems to work
>
>
	What you want is:
		outportb(0x3fc,11);

	bioscom(1,(char)11,COM1) will write 11 to port 3F8 (which is the
	serial port transmitter) 0x3FC is the Modem control register which
	I don't think bioscom() can access.

Cheers!
Steve

-- 
-------------------------------------------------------------------------------
        resnicks@netcom.com, steve@camphq, IFNA:        1:143/105.0, 
                 co moderator for comp.binaries.os2
 Real life: Steve Resnick. Chief Software Architect, Process Scientific, Inc
 Flames, grammar and spelling errors >/dev/null
 The Asylum OS/2 BBS - (408)263-8017 12/2400,8,1 - Running Maximus CBCS 1.2
-------------------------------------------------------------------------------
Technical Details
Message-ID: <1991Jun6.223916.17918@netcom.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!netcomsv!resnicks
References: <1991Jun6.183759.5605@cunixf.cc.columbia.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!tandem!netcomsv!resnicks
From: resnicks@netcom.COM (Steve Resnick)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: (Q)Basic -> C
Message-ID: <1991Jun6.223916.17918@netcom.COM>
Date: 6 Jun 91 22:39:16 GMT
References: <1991Jun6.183759.5605@cunixf.cc.columbia.edu>
Organization: Netcom - Online Communication Services  UNIX System {408 241-9760 guest}
Lines: 39