HDTenEightyP/NetNews huggingface dataset:
From: sonix@schunix.uucp (Duane Morin)
Newsgroups: comp.os.msdos.programmer
Subject: Pardon the FAQ...parallel I/O?
Date: 14 Oct 92 19:10:20 GMT
Organization: SCHUNIX Public Access Unix for Worcester County, Massachusetts, USA

The powers that be here at work have requested that I gather information 
on using the parallel port as a source of both input AND output.  If someone
out there could point me to some sources, such as maybe a good book that 
deals with this subject, it would be greatly appreciated.

Apologies if this is a faq, as I suspect, but as soon as I get an answer I'll
just cancel the post.

Thank you,
 Duane Morin
 Software Development Manager
 Walker Sonix, Inc
 Worcester, MA 01604
From: nyeda@cnsvax.uwec.edu (David Nye)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Minor Details
Date: 12 Oct 92 23:45:06 -0600
Organization: University of Wisconsin Eau Claire

In article <718662709.AA00000@csource.oz.au>, David.Instone@f252.n633.z3.fidonet.org (David Instone) writes:
>         Hi all, I'm just starting on asm programming on the PC and have
> a slight problem. I have read a truckload of books on the subject but
> nowhere can I find a couple of minor details.
>         What I'm after is how the COM and EXE headers are constructed
> and the format of the DOS boot sector. For instance I'm told that a COM

The Microsoft MS-DOS Programmer's Reference has this, ISBN 1-55615-329-5,
lists for $24.95.  You'll need something like this if you just have
books on assembly language programming in order to write anything
useful, as the latter tend not to contain much on BIOS and DOS
interrupts.  Hope you like programming in assembly language.  It is
a little more time consuming but I have more fun with it than with a
HLL.
Newsgroups: comp.os.msdos.programmer
From: icsg0131@cs.montana.edu (Jeff)
Subject: Re: qsort() help
Organization: Montana State University, College of Engineering
Distribution: usa
Date: Thu, 15 Oct 1992 19:42:45 GMT

In article <1992Oct15.183616.21088@infonode.ingr.com> fordke@infonode.ingr.com (Keith Ford) writes:
>int AreaNumberCompare (void _FAR *a, void _FAR *b)
>  {
>  struct paths _FAR **aa;
>  struct paths _FAR **bb;
>  aa=a; bb=b;
>  return ((*aa)->area_number - (*bb)->area_number);
>  }

How bout?
aa=*(int*)a;  bb=*(int*)b;
From: pottier@dmi.ens.fr (Francois Pottier)
Newsgroups: comp.os.msdos.programmer
Subject: Wanted : SVGA Routines Library
Keywords: SVGA
Date: 15 Oct 92 21:10:45 GMT
Organization: Ecole Normale Superieure, PARIS, France

Hello everybody!
I just purchased a new PC equipped with a Super VGA card (a Tseng Labs ET4000). I have an
instruction manual that allows me to access video RAM directly. I would like to use classical
drawing routines (line drawing, circle drawing, and so on) without having to program them all
by myself.
Do you know any graphic library for SVGA? I would like to be able to call them from Turbo
Pascal. Please e-mail me at pottier@dmi.ens.fr - I'll post a summary.

Thanks a lot.
From: A.J.Robinson@lut.ac.uk (Alan Robinson)
Newsgroups: comp.os.msdos.programmer
Subject: qbasic shells
Date: 7 Oct 92 15:22:57 GMT
Organization: Loughborough University, UK.


I have a utility called 'filename' which when called from dos pops
up with a list of files in the current directory and allows you to
select on with a scroll bar. It then sets an environment variable 
(FILENAME) to the name of the file selected.

I would like to use this in a couple of Qbasic programs, but the only
way I have found to call it is to use the QB Shell command;

Shell ("filename")

unfortunately this sets up a new command shell and environment (I think),
and the result is that when the utility passes control back, it is not 
possible to retrieve the name of the file selected by

a$=environ$("FILENAME")



Any thoughts ?


Thanks, 

Alan.
From: marcusj@apricot.co.uk (Marcus Jenkins)
Newsgroups: comp.os.msdos.programmer
Subject: Using malloc() from BC++3.1 in interrupt time problem
Date: 15 Oct 92 15:31:48 GMT
Organization: Apricot Computers Limited

I have been trying to use malloc() in an app. written in Borland
C++ 3.1 ('C' only) and it *always* returns null when I call it
as part of my interrupt routine (called off a hardware (network
packet received) routine).  Why would this be?  

Thanks in advance.


 _ _ _
' ) ) )                         Internet: marcusj@apricot.co.uk
 / / / __.  __  _. . . _        UUCP: marcusj@apricot.uucp
/ ' (_(_/|_/ (_(__(_/_/_)_      If all else fails from US, try:  
Marcus Jenkins                  apricot!marcusj@relay.EU.net
Tel: +44 21 472 3002  Fax: +44 21 471 2935
Disclaimer:  Anything I wrote above is, of course, my own view and
             does not in any way represent my employer.
From: danne@dynas.se (Daniel Helander)
Newsgroups: comp.os.msdos.programmer
Subject: Load Overlay Function
Date: 14 Oct 92 11:15:32 GMT
Organization: DynaSoft, Dynamic Software AB

I need help using the MS-DOS load overlay function (int 21h, funtion 4b03).

The parameter block passed in es:bx looks like:

LOADOVERLAY STRUC
	loStartSegment		dw ?
	loRelocationFactor	dw ?
LOADOVERLAY ENDS

The loStartSegment is set to the place where the overlay is being read to.

The Microsoft Programmers Reference says that the relocation factor
"is typically the same as the loStartSegment value", but:

  - What is this relocation factor?
    The Microsoft Programmers Reference and Ralph Browns Interrupt List
    tells nothing on how it can be used.

  - Can it be set to another value in order to relocate the overlay
    to another address than it was loaded to?


-- 
Daniel Helander				danne@dynas.se
DynaSoft AB				Phone: +46-8-726 85 60
Liljeholmsvagen 10
117 61 STOCKHOLM, SWEDEN		Fax: +46-8-18 11 45
From: KSADEGH@auvm.american.edu (Kayvon Z. Sadeghi)
Newsgroups: comp.os.msdos.programmer
Subject: any dos interrupt not in use?
Date: 12 Oct 92 21:40:21 GMT
Organization: The American University - University Computing Center

hi guys,

I was wondering if all the 256 dos interrupts have been reserved already.
And if there is an interrupt vector that I can use it without harming anything.
You see, I am using INT 0x1c in graphic mode and apparently, BGI is not
reenterable. So, I have decided to generate my own interrupt using
"geninterrupt" in C. But, what ever vector that I choose, makes my program
to crash. Any hint?

BTW If anyone has a set of DOS interrupts I would appreciate if he/she
could sent it to me.

best regards
k1
---
------------------------------------------------------------
KAYVON Z. SADEGHI                  K.SADEGHI@IEEE.ORG
VOICE: 202/244-0789
Newsgroups: comp.os.msdos.programmer
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: URGENT: A list of BIOS calls is needed
Organization: Warsaw University Physics Dept.
Date: Tue, 13 Oct 1992 15:53:03 GMT

>>>>> On 11 Oct 92 20:59:54 GMT, S947460@UMSLVMA.UMSL.EDU (Andrew Zaitsev) said:
Andrew> I desperately need to get a list of BIOS calls.
Andrew> I know, it is included in some textbooks, but none of them is
Andrew> in my library.
Andrew> I suspect, it should be available for FTP'ing from some site, but
Andrew> I cannot figure out, where.

If list for PC/XT is sufficient, BIOS source it is on our site
zfja-gate.fuw.edu.pl (148.81.6.100) on files BIOS*.ZIP.
Full list of BIOS calls (and not only BIOS) is in Norton Guide
program database named 'interrupts'. Seems copying of info from
it for non-commercial use is not inhibited by copyright since
I can put it on zfja-gate if requested.
From: sam4628@zeus.tamu.edu
Newsgroups: comp.os.msdos.programmer
Subject: Reading disk S/N with BC++
Date: 14 Oct 92 12:33:00 GMT
Article-I.D.: zeus.14OCT199207332464
Organization: Texas A&M University, Academic Computing Services
News-Software: VAX/VMS VNEWS 1.41


Hello,
   I need to read the serial number off of a disk (hard or floppy)
using BC++3.1.  Does anybody have a suggestion?  Thanks!

------------------------------------------------------------------------
| Steven A. McCluney                 |"Strange women lying in ponds    |
| sam4628@zeus.tamu.edu              | distributing swords is no basis |
| I'm a grad student, so my opinions | for a system of government!"    |
|    are worthless anyway            |          Dennis, to King Arthur |
------------------------------------------------------------------------
Newsgroups: comp.os.msdos.programmer
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: How can I determine the clock frequency on an 80xxx machine??
Organization: Warsaw University Physics Dept.
	<1992Oct8.210438.19205@novell.com>
Date: Tue, 13 Oct 1992 14:57:53 GMT

>>>>> On 8 Oct 92 21:04:38 GMT, rap@novell.com (Robert A. Pease) said:
Robert> In article <JT.92Oct7214603@fizyk1.fuw.edu.pl> (Jerzy Tarasiuk) writes:
>>>>>> On Wed, 30 Sep 1992 13:42:48 GMT, (menglund) said:
>m> I am wanting to know how to determine a machines clock frequency dynamically
>m> within a program. (eg: 8MHz, 16MHz ect).
>
>I don't see necessity to determine machine clock frequency. You can
>compare periods on the ADC board timer chip and main board timer chip
>(which has always same frequency on its input). Just the 8253 on the
Robert>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>ADC card makes the simplest way to determine the clock frequency!
Robert> Unfortuneatly, this is not true.  The higher quality clones will have
Robert> the correct clock frequency going to the timer, but there are some
Robert> clones that use a cheaper crystal which is off the standard frequency
Robert> for the PC clones.

If the timer gots bad frequency, what way can measure time ? DOS takes
time from the chip and even small change of the frequency would result
in bad values from DOS 'TIME' command. On AT can use CMOS clock to
verify 8253 timer has good frequency, but on XT there is no way unless
know all possible clock/calendar cards and use time get from such a card.

Another reason for the 8253 should always get correct clock is its clock
is derived from CLK signal on bus which is used by CGA to form signal for
TV set which color decoding can be very sensitive to frequency errors.

Robert> Because of variations in board design, caching, memory archecture,
Robert> non-Intel chip vendors and other things it is not possible to determine
Robert> the CPU clock frequency via instruction timming with any degree of

Note I stated don't need to know CPU clock.
Newsgroups: comp.os.msdos.programmer
From: tomw@megatek.com (Tom Wright)
Subject: Re: Fourier Transform Library for Borland C?
Reply-To: tomw@megatek.com
Organization: Megatek Corporation, San Diego, California
Date: Thu, 8 Oct 1992 00:21:29 GMT

In article <exujlg.150.0@exu.ericsson.se> exujlg@exu.ericsson.se (Jon L. Gauthier) writes:
>Sent the previous port before I meant to!
>
>I need the source code for FFT's, preferably Borland C, MS C is ok.
oak.oakland.edu pub/msdos/c

FFT142.ZIP    B   97916  910609  Fast Fourier transforms, with C source
From: bell@nella4.cc.monash.edu.au (mr g.a. bell)
Newsgroups: comp.os.msdos.programmer
Subject: Help with Menus in TurboVision
Keywords: TurboVision
Date: 12 Oct 92 08:58:25 GMT
Organization: Monash University, Melb., Australia.



Please help, can anyone supply SRC for menus in TurboVision (in C)

I have read the Manual and can not seem to do what I need to do.

Firstly 

Having a Top level menu without a submenu 

and Secondly

Having a submenu within a submenu.

I know that TMenuItem and TSubMenu have overload operators
but I can not seem to get the syntax correct for what I want.

also where can I find example SRC to Turbovision?
Any help appreciated

thanks,

Gary

``````````` bell@nellads.cc.monash.edu.au `````````````````````````````````````
| Gary Bell                                                                   |
| Department of Robotics and Digital Technology                               |
|Faculty of Computing, Caulfield Campus, Monash University, Australia         |
-- 
``````````` bell@nellads.cc.monash.edu.au `````````````````````````````````````
| Gary Bell                                                                   |
| Department of Robotics and Digital Technology                               |
|Faculty of Computing, Caulfield Campus, Monash University, Australia         |
Newsgroups: comp.os.msdos.programmer
From: tpradeep@cs.tamu.edu (Pradeep K Tapadiya)
Subject: Re: MSC 7.00. Please help me with Virtual memory.
Organization: Computer Science Department, Texas A&M University
Date: Fri, 16 Oct 1992 13:50:55 GMT

>et1@cec1.wustl.edu (Evangelos Tozakoglou) writes:
>
>
>Hi there,
>	I got my new MSC 7.00 compiler just a few days ago, thaks to someone
>who insisted that I could use Extneded/Expanded memory for the BIG 
>matrices I am using in my programms.
>Truth was that what I can use is Virtual memory and unfortunately the
>documentation from Microsoft although huge, isn't enough for me.
>So I am looking for a book or an ftp site where I can find examples
>on how-to-use-extended-memory-for-your-matrices.
>I know there are examples in the docs, but I need to make 2-D matrices and
>obviously I am doing something wrong.
>

You can use expanded memory for storing data (in your case 2-D matrices)
as long as the size of each matrix is not more than 64K. Its been
quite a while since I have used them. The basic steps are
1. allocate virtual memory ( _vmalloc)
2. lock it before u use it. 
3. unlock it after u use it.
4. _vfree it when you are through with it.

I don't know how familiar you are with Microsoft Advisor. This on-line
help facility has some basic examples which you can experiment with.
Try "qh _vmalloc" from command line.

Hope this helps.

Pradeep
tpradeep@cs.tamu.edu
From: rajiv_sud@sw.stratus.com
Newsgroups: comp.os.msdos.programmer
Subject: flicker free drawing
Date: 7 Oct 92 18:03:14 GMT
Organization: Stratus Computer, Inc.


Hello,
	I am fairly new to the world of pc's and hardware dependent
programming. The question I am about to ask has probably been discussed
in depth before so if someone has the info archived I'd appreciate it
they would e-mail it to me.

	I am writing a graphics application and understand that to do
flicker free animation one should do the screen update during the
verticle retrace period. I believe I have a fairly good idea of catching
the virtcle sycn pulse by setting it to cause a level 2 interrupt in
turboC. What I am not clear on is how does one determine how much time
one has to draw i.e., how many assembly instructions can I run. Since
different instructions take different amounts of time has anyone come
up with a method to determine when to stop updating the screen? 


..Rajiv
From: aki@cruzio.santa-cruz.ca.us
Newsgroups: comp.os.msdos.programmer
Subject: Re: How can I determine the clock frequency on an 80xxx machine??
Date: Fri, 09 Oct 92 02:27:54 PDT
Reply-To: aki@cruzio.santa-cruz.ca.us

> 
> Because of variations in board design, caching, memory archecture,
> non-Intel chip vendors and other things it is not possible to determine
> the CPU clock frequency via instruction timming with any degree of
> accuracy.  The only alternative is to put a timer in of your own
> specification.


I beg to differ from you on this point.  I have designed a MHz
counting function that (so far) has returned correct or close-to
correct results on all PC's it has been run on.  The largest error
margin was on a 4.77 MHz XT that clocked as 3.5 MHz.  Usually the
function is right on the money.

What _IS_ impossible is to take into account and adjust for all the
billions of possible combinations of cache/chipset/CPU to arrive
at the exact correct number all the time.

Aki.
-- 
/  Phone: 408-662 9664   Fax: 662 9676  |  "Aki" pronounced: Ah-Key. I know  \ 
\  125 Searidge Ct #D, Aptos, CA 95003  |  what I'm doing most of the time.  /
From: Aaron Morse (fsapm@acad3.alaska.edu)
Newsgroups: comp.os.msdos.programmer
Subject: Need LIM Expanded memory specification
Date: 8 Oct 92 17:46:03 GMT
Reply-To: fsapm@acad3.alaska.edu

Does anybody know where I can get the LIM specification in enough detail to be  
able to access expanded memory from a level below DOS? I am working on a  
microkernel. Please respond directly via email. I'll post if there is interest.

Thanks in advance!

Aaron Morse
fsapm@acad3.alaska.edu
From: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 
Newsgroups: comp.os.msdos.programmer
Subject: msdos CDROM
Date: 27 Sep 92 19:58:00 GMT
Distribution: world
Organization: Advanced Computer Concepts BBS, New Rochelle, NY 914-654-1981
Reply-To: dick.zeitlin%acc1bbs@ssr.com (Dick Zeitlin) 

DD> .I have an MSDOS CDROM that I am trying to read on a Unix system.  I
  > .can't figure out the directory/file format,
                        [...]
  > .                          Can anyone refer me to a detailed description
  > .of msdos CDROM format, or email me such a description?

Most CD-Roms conform to ISO-9660 or High Sierra format.  Searching for
either of those should prove more fruitful.

 * OLX 2.2 * Real Pilots enjoy NDB approaches to minimums!
                                               
Newsgroups: comp.os.msdos.programmer
From: schadha@bcarh102.bnr.ca (Sanjay Chadha)
Subject: Re: Real time AT Clock on int 70h
Organization: Bell-Northern Research Ltd., Ottawa, Canada
Date: Thu, 08 Oct 92 19:57:43 GMT

In article <E36CBC0C807F40DB59@qut.edu.au> ISB202REID@redgum.qut.edu.au (Did somebody say Coffee ??????) writes:
>I was perusing Ralf Brown's interrupt list,
>when I found the entry for the real time AT clock on Int 70h.
>
>So I wrote a TSR that hooked it and hoped it would be invoked,
>every 1024th of a second.
>
>Absolutely nothing happened.
>
>The TSR hooked it OK, it just wasn't getting invoked...
>
>Any Ideas ???

Why don't you post the listing of the program (or the related parts)
for the perusal of the net.gurus???
-- 
---------------------------------------------------------------------
#include <std.disclamer>
Name: Sanjay Chadha  Phone: (613)-763-2693 (O) Email: schadha@bnr.ca
---------------------------------------------------------------------
Newsgroups: comp.os.msdos.programmer
From: bmtong@cucs11.cs.cuhk.hk (Tong Bo-Ming)
Subject: Floppy Disk 1:1 interleave ?
Organization: Faculty of Engineering, The Chinese U. of Hong Kong
Date: Tue, 6 Oct 1992 06:29:45 GMT

	It seems to me that DOS format disks with 1:1 interleave.  When I
call BIOS to read a chunk of disk sectors, it is so fast !  Is this
true ?

Tong Bo-Ming
From: Aaron Morse (fsapm@acad3.alaska.edu)
Newsgroups: comp.os.msdos.programmer
Subject: Need help identifying file systems on disk partitions
Keywords: disk, file, help, os
Date: 8 Oct 92 17:37:08 GMT
Reply-To: fsapm@acad3.alaska.edu

I understand that there is a byte that uniquely identifies what file system is  
on a particular disk partition.

Does anybody have information on this? What values are already taken, and who  
has taken them? Could you please respond directly to me? I'll post the summary  
if there is interest.

Thanks in advance,

Aaron Morse
fsapm@acad3.alaska.edu
From: ISB202REID@redgum.qut.edu.au (Did somebody say Coffee ??????)
Newsgroups: comp.os.msdos.programmer
Subject: Real time AT Clock on int 70h
Date: 7 Oct 1992 22:08:24 -0500
Organization: UTexas Mail-to-News Gateway
NNTP-Posting-Host: cs.utexas.edu

I was perusing Ralf Brown's interrupt list,
when I found the entry for the real time AT clock on Int 70h.

So I wrote a TSR that hooked it and hoped it would be invoked,
every 1024th of a second.

Absolutely nothing happened.

The TSR hooked it OK, it just wasn't getting invoked...

Any Ideas ???

-Fodd
--------
isb202reid@qut.edu.au
n1019031@water.fit.qut.edu.au
Newsgroups: comp.os.msdos.programmer
From: mbfarah@isluga (Miguel Braxton Farah)
Subject: VGA 320x240@256 -P?
Organization: Pontificia Universidad Catolica de Chile
X-Newsreader: Tin 1.1 PL5
Date: Wed, 14 Oct 1992 15:39:31 GMT

Hi! Is it true that there is a VGA (extended-non documented or whatever)
320x240@256 mode?. How can I access it - if it exists? I'm trying to write 
a GIF viewer of my own and this mode would be very useful for avoiding the
infamous distortion when one sees 640x480 images in 320x200.

--
| MIGUEL FARAH F.         | Swirdy rd im zrmdsyhr rdvoyp | 
| mbfarah@isluga.puc.cl   | rm ytrd ofopzsd fogrtrmyrs u |
|                         | oy od rmvtuqyrf. Frvuqjrt oy | 
| #include <disclaimer.h> | smf upi eoaa hry im qtrzop.  |
Newsgroups: comp.os.msdos.programmer
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Capturing COMx output	
Organization: Warsaw University Physics Dept.
Date: Tue, 13 Oct 1992 15:39:50 GMT

>>>>> On Mon, 12 Oct 1992 03:55:05 GMT, jem@vuse.vanderbilt.edu (John Eric Meyer) said:
John> I am interested in capturing the output to a serial port.  For instance, the
John> ability to create a log of any communications software.  I work in C++, primarily, and tried a small program which intercepts interrupt 14h and outputs it to
John> a second monochrome monitor.  The simple comm package I use obviously trigers
John> this interrupt, but I don't know which of the fields in the REGS structure
John> (al, ah, bl, etc.) is the one I'm really interested in .  None of them show
John> any recognizeable strings (e.g., ATDT, modem init str, ph #, etc).  Am I even
John> on the right track?  If you know of a pub domain utility which will serve the
John> same purpose, that is almost as good.  Any advice or even sample code??

Int 14h uses AH for function code (0-init,1-send,2-receive,3-status),
AL for data (for init data is formed from port setup parameters like
baud rate, parity, stop bits, char size), DX as port index.
Return value: AH=status, AL=data (send/receive) or modem status.
Note almost all communication programs doesn't use Int 14h unless it is
requested - BIOS service of Int 14h is not suitable for communications.

John> // install interrupt hook for COM1 or COM2 as designated on command line
John> //  int 0x0b is COM1, 0x0c is COM2

In fact, int 0x0B is COM2, 0x0C is COM1. But it is HARDWARE interrupt.

John> int comtomono(struct INT_DATA *pd)
John> {
John>    mprintf("%c%c\n", pd->regs.h.al, pd->regs.h.ah);

Hardware interrupt doesn't give anything in registers...
If you want display what is in registers, intercept int 14h !
Newsgroups: comp.os.msdos.programmer
From: messina@netcom.com (Tony Porczyk)
Subject: Re: Critical error handlers
Organization: Messina Software
Date: Thu, 8 Oct 1992 05:06:49 GMT

mikew@hpwarha.wal.hp.com (Michael Williams) writes:

>How does one install a critical error handler with Borland C 3.0?
>I'd like to avoid having "Abort, retry, ignore?" mess up my screen!

Look at harderr(). In 3.1 it's page 278 of Library Reference.

t.
Newsgroups: comp.os.msdos.programmer
Subject: Re: TV / OWL memory model?
From: billp@jupiter.cse.utoledo.edu (Bill Parquet)
Date: 9 Oct 92 18:45:41 EST

401yclee%vax9k.dnet@nchud1.nchu.edu.tw writes:
: I got this BC++ & AF v3.0, and the project files in OWL/TV demos are set to
: large model. Does this means the default memory model for these two library is
: 
: LARGE?

Most of the programs that are written with OWL/TV are really big, so I guess
Borland figured that you only needed the large model for these two libraries

Since the libraries are built large model, its a good idea to build your code
large model.  (I think <tv.h> will halt compilation with a #error if you're
compiling with some other model)

Bill

-- 

billp@jupiter.cse.utoledo.edu
---
# rm -r /msdos /os2 /windows.nt