delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/10/21/06:31:23

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: AndrewC <andspamtrap AT exemail DOT doty DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: reading from com1: => driving me nuts
Date: Fri, 21 Oct 2005 20:21:10 +1000
Message-ID: <92ghl19p51sglhfer2c7ln6drormg7fh11@4ax.com>
References: <1h4c4cp.1b942cr1g5grtnN%muellernick AT gmx DOT de> <55g0l1loonul6cqq14k5svi8lr72g67es1 AT 4ax DOT com> <1h4h4t6.bxmfkh1caen33N%muellernick AT gmx DOT de> <3rp3j0FkmjjgU3 AT news DOT dfncis DOT de>
X-Newsreader: Forte Agent 3.0/32.763
MIME-Version: 1.0
Lines: 23
NNTP-Posting-Host: 220.233.169.234
X-Trace: 1129890073 un-2park-reader-01.sydney.pipenetworks.com.au 13321 220.233.169.234:1518
X-Complaints-To: Abuse, including message IDs to abuse AT pipenetworks DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>> > >What am I doing wrong?
>> > Assuming that you are a embedded C programmer didn't it strike you are
>> > strange that you can't read or write to the uart registers?
>
>> Not at all! If I have a <stdio.h> I prefer using it.
>
>Preferences have nothing to do with it.  <stdio.h> support is simply
>*way* too crude for what you're trying to do.  Remember: this is DOS, not
>UNIX you're programming for, i.e. not everything that could usefully be
>a file actually is.  COM1: is made available as a file, but it's supported
>only on a *very* basic level, by DOS.  You're way beyond the point where
>it makes sense to try and rely on DOS to get things done for you.

From previous posts (not from me) a long time ago if I get this right
(please correct me if I am wrong) the C libs use standard bios calls.

Under DOS only up to and including 9600 are supported and advisable to
work. Any higher and you are asking for trouble on an old PC or a PC
running Windows. Be aware , very aware of this one as I would expect
that you will have problems at some stage running at 115K using the
standard library calls on DOS.

Andrew

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019