www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/19/14:31:00

From: neil AT robots DOT ox DOT ac DOT uk (Neil Townsend)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: BCSerio20 - two questions for Bill Currie
Date: Wed, 19 Aug 1998 16:19:16 GMT
Organization: None evident here.
Lines: 23
Message-ID: <1998Aug19.161916.11538@catorobots.ox.ac.uk>
References: <199808100840 DOT KAA07011 AT swiatowit DOT ii DOT uni DOT wroc DOT pl> <1998Aug19 DOT 160131 DOT 11419 AT catorobots DOT ox DOT ac DOT uk>
NNTP-Posting-Host: cato.robots.ox.ac.uk
Originator: neil AT cato
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Sorry, rather impolite to follow up one own post, however, there is a 'bug' in
the term program in bcserio. The help page implies that

term -com:308,3:....

Would use IRQ 3, address 0x308. However, as it stands, the code will try and
read the address as decimal _unless_ it is prefixed with 0x. I have edited
mine to assume that it is hex by changing the line

          if (sscanf(com,":%d,%d:%d,%c,%d,%d",&base,&irq,&baud,&parity,&bits,&stop)!=6)

to

          if (sscanf(com,":%x,%d:%d,%c,%d,%d",&base,&irq,&baud,&parity,&bits,&stop)!=6)

cheap and nasty, but it does the trick,

Neil


-- 
Neil Townsend   +44 (1865) 273121   neil AT robots DOT ox DOT ac DOT uk

- Raw text -


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