HDTenEightyP/NetNews huggingface dataset:
From: don@surtsey.aero.org (Don C. Hancock)
Subject: Serial Driver Problems
Organization: The Aerospace Corporation; El Segundo, CA
Date: Tue, 10 Nov 1992 01:52:41 GMT

Serial Driver Problem

I hope this is the right place for this.  If not, please
let me know.

I'm trying to program the serial port to control some equipment.  I
can't seem to get it (i.e. the port) to generate interrupts (such as
the data received, or transmitter empty)

What am I doing wrong?

Here's what I've done so far (briefly, sort of).

1.      Replaced vector 0x0c with my interrupt service routine. I'm
pretty sure this right, because a  geninterrupt(0x0c) gets to my
routine.

2.      Set up the serial port to interrupt on everything but the modem
status change by writing 0x07 to the interrupt enable register.

3.      Set 8259 interrupt controller to enable interrupts from IRQ3
and IRQ4 with outp(0x21, inp(0x21) & 0xe7);

4.      End my interrupt service routine with outp(0x20, 0x20).

When I do a write followed by a read, I get the data I sent.  I've done
this using the loopback feature (set bit 4 of the modem control
register) and by wiring pins 2 & 3 together, so the connections are
right.  I've also done the above for the second serial port, I just
can't get the hardware to generate interrupts.

Any ideas.  I'll post (or email) code if it'll help me get an answer.
Please email or post any replies (but email is preferred).

Thanks for any help you can give me.  I'm really troubled by this.  I'm
sure I'm doing something dumb here.

Don
Newsgroups: alt.msdos.programmer,comp.compiler
From: psn6493@usl.edu (Nagpal Prakash S)
Subject: Compiler for c - public domain ? ( DOS based )
Organization: University of Southwestern Louisiana
Date: Fri, 13 Nov 1992 17:46:15 GMT

Hello!
Does anyone out there know of a compiler running on DOS for C, public domain -
I am lookin at code for compilers. So I am not interested in Borland or 
Microsoft compilers - for which I'm sure the code is not freely available.
 
thank you in advance.
Prakash S Nagpal.
prakash@usl.edu
--

	:o-   |_|
    	    < |_|
	:o-   |_|
From: silverm@bcstec.ca.boeing.com (Jeff Silverman)
Newsgroups: alt.msdos.programmer
Subject: QEMM/386
Summary: What is QEMM 386 actually doing and how does it do it?
Keywords: QEMM memory management 80386
Date: 9 Nov 92 05:44:05 GMT
Organization: Boeing Computer Services, Seattle


I am a VAX/VMS guru in the process of becoming an MS-DOS guru.  If these
questions sound naive, it is because I am coming at these from a strange
perspective.
In the VAX/VMS operating system, programs execute in their own virtual address
space, which gets mapped on a page by page basis into physical memory.  2 VMS
programs can be running at the same virtual address yet address different
pages of physical memory, because the mapping is done on a per-process basis
and the OS handles all that transparently.  The programmer sees 1, big pool
of RAM.

What does QEMM/386 do, from a programmers point of view?  It appears to move
things around in both physical and virtual memory.  How is this possible?
If something, say, a TSR, is moved out of low memory and into either High
Memory (By high memory, I mean the region between 640K and 1 Mbyte) or extended
memory, how does it keep working?  All of the destinations for jump instructions
would change.  Or does the 80386 have additional memory relocation?
How does QuarterDeck's OPTIMIZE program work?  Please don't say it works well,
I KNOW it works well, I've been playing with it, I can see that it works, but
don't know what it's doing or how it does it.  Well, I do know what its doing,
it's modifying CONFIG.SYS to free up more RAM in the lower 640K region.
Why does DOS have a 640Kbyte limit?
Why would anybody ever want to use expanded RAM if extended RAM is available?
If I have a "C" program which runs properly under VMS, but needs, say, 3 Mbytes
of RAM to store all its data structures, what is the best way to run it under
DOS?  Under Windows?

Sincerely yours



Jeff Silverman, Boeing.
From: vincent@datmuc.UUCP (vincent)
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
Subject: my_tsr
Date: 11 Nov 92 10:43:00 GMT
Followup-To: alt.msdos.programmer,comp.os.msdos.programmer


This is a repost I never got any replys, The Org. Q. was why this code
doesn't work?

---------------------  snip snip -------------------------- makefile

CFLAGS = /Fc /Zi /f /Od /Gs /AS /W4 /nologo

main.exe : main.obj
	cl /Zi /Fm main.obj

.c.obj:
	cl /c $(CFLAGS) $(@B).c

---------------------  snip snip --------------------------- main.c

#include	<stdlib.h>
#include	<dos.h>
#include	<bios.h>

#define	CODESEG			_based(_segname("_CODE"))
#define MK_FP(seg,ofs)		((void _far *) ((((long)seg)<<16) + (long)ofs))
#define PARAGRAPHS(x)		((FP_OFF(x) + 15) >> 4)

typedef			void	(interrupt _far *INTVECT) ();

struct {
	INTVECT	old_timer;

	unsigned char _far * CODESEG tsrstack;

	int	oldSP,
		oldSS,
		oldDS,
		ds_save,
		seg_stack,
		off_stack,
		retadd,
		tick_me;
} CODESEG data;

void ctimer (void)
{
	data. tick_me++;
}

void _interrupt _far new_timer (void)
{
	_asm {
		mov	cs:data. oldSS, ss
		mov	cs:data. oldSP, sp
		mov	cs:data. oldDS, ds
				 		 ; Load new stack
		mov	ss, cs:data. seg_stack
		mov	sp, cs:data. off_stack
		mov	ds, cs:data. ds_save

		mov	bp, sp

		call	ctimer

		mov	ss, cs:data. oldSS
		mov	sp, cs:data. oldSP
		mov	ds, cs:data. oldDS

		mov	bp, sp
	}
	_chain_intr (data. old_timer);
}

void main ()
{
	unsigned int memtop, dumy = 0;

	data. tick_me = 0;

	_dos_freemem (*(short _far *) MK_FP (_psp, 0x2c));

	data. tsrstack = malloc (1024);
	data. tsrstack += 1024;

	data. seg_stack = FP_SEG (data. tsrstack);
	data. off_stack = FP_OFF (data. tsrstack);

	_asm mov cs:data. ds_save, ds

	memtop = data. ds_save + PARAGRAPHS (data. tsrstack) - _psp;

	_dos_setblock (memtop, _psp, &dumy);

	data. old_timer = _dos_getvect (0x08);
	_dos_setvect (0x08, new_timer);

	_dos_keep (0, memtop);
}

---------------------------------------------------------------------

vincent@datmuc.dat.de


Newsgroups: alt.msdos.programmer
From: ziggy@r-node.gts.org (Adrian Buss  Sys-Op)
Subject: Hot Keys sort of....
Organization: R-node Public Access UNIX Information System (416-249-5366)
Date: Thu, 05 Nov 1992 04:50:06 GMT


I have a little bit of a problem.  Well not a problem really but something
I would be most interested in doing.

I have at home a pc running dos and an other pc running unix (who cares right)
the dos pc is linked to the unix pc via a seriel cabel and a terminal
emulation program is used (telix).  I also have a modem in the dos computer
and use it to call sites around town also using telix.

What   I would like to do is be able to run both versions of telix
simitaniously and be able to toggle back and forth between the two
very easily with out having errors.  For example if both telixes
are run from two directores I can not do downloads to either

Nor can I shell out of the second verson of telix (cus I guess ther
re enter command for both would be exit

I dont mind using another program just as long I can use telix for one
and have zmodem downloads for both and the hot key like a ctrl key function
if posible to toggle between the two.

I dont care if it suspeds either of the processls just so long when I am
in either it is a fully functional unit.

any suggestions would be great

thanks

ziggy

-- 
ziggy@r-node.pci.on.ca  <--- New and impoved fastest route :) USE IT!!
ziggy@r-node.gts.org         | Have you rubbed noses with an Eskimo today??
ziggy@zooid.guild.org        | My inability to spell and gramatize are no
adrian@skypod.guild.org      | reflection on the GENERAL CANADIAN intelligence!!
From: josh@viewlogic.com (Josh Marantz)
Newsgroups: alt.msdos.programmer
Subject: Borland C 3.1 from inside Epsilon
Date: 10 Nov 92 23:19:52 GMT
Organization: Viewlogic Systems, Inc.

I am a devoted and fanatical Emacs/Epsilon user, recently returned
from Unix to do some PC programming after a 4-5 year hiatus.  I was
always able to be extremely productive using Epsilon's
compile-in-a-window feature from DOS.  This allowed me to continue to
edit while running Lattice, Microsoft, or Metaware compilers in the
background, with error messages going to a window.  I was able to
concurrently examine and fix errors in files while a long Make was
transpiring, using the emacs-like next-error feature.

I cannot imagine being a productive programmer without this level
of integration.

I know that some of this functionality is offered by Borland C++ 3.1's
integrated development environment, but I have several problems with
it:
        1.      I don't want to use their editor.  I want to use
                Epsilon, because I know it inside and out, I've spent
                a lot of time programming it with EEL to make
                it an ideal environment for me, it's lightning
                fast, and it's got the same UI (modulo a few tweaks)
                as Gnu Emacs on Unix, which I continue to use extensively.
                I'm not interested in learning Borland's editor.  I'd
                prefer not to work with an Epsilon "emulation", because
                it wouldn't have my mondo-nifty enhancements for doing
                my style of C indentation, comments, Gnu Emacs-like
                interactions, etc.  It probably wouldn't have kill-ring
                or incremental search support, either.

        2.      It doesn't let me examine errors until after the whole
                build process is complete.  Compiling in IDE locks up your
                quasi-multitasking Windows 3.1 system for the duration.

        3.      It's a graphics-mode text editor, and my graphics card
                (Diamon Speedstar SVGA) is much faster in text mode, and
                lets me see more of my text at once.  In fact, my
                graphics card has really pathetic text scrolling
                performance when operating in graphics mode.  It's slower
                on a 386/33 than an IBM XT running Epsilon.

        4.      I can't seem to figure out how to build non-windows
                executables from inside the IDE.

Borland supplied a command-line interface to their compiler, BCC, but
it seems to crash my PC whenever I run it from inside Epsilon 5.03.
So my guess is that BCC is doing something dirty that is messing up
Epsilon.  Anyone have any idea?  Is there a new version of Epsilon
that fixes this?  Is there a BCC command-line switch that causes it
to work better in an Epsilon window?

Thanks in Advance,
-Josh
-- 
Joshua Marantz                          You make my life and times
Viewlogic Systems,                        a book of bluesy Saturdays
josh@viewlogic.com                      And I have to choose...
Newsgroups: alt.msdos.programmer
From: jlamb@ux4.cso.uiuc.edu (Jeffrey Richard Lamb)
Subject: Help on changing Copy
Summary: I need some help on the Copy command
Organization: University of Illinois at Urbana
Date: Fri, 13 Nov 1992 05:59:37 GMT
Keywords: Midnight Arrow

Ok, I know this is going to sound like a strange request so I want to
make some disclaimers first. I am not a virus writer. I don't want
to kill machines. I'm not trying to write a virus. I made a bet with
a friend that the copy command (or any other internal dos command)
could be "turned off." What I want to do is simple. I want dos to access
a file called "copy.bat" whenever anyone types in a copy command. The
problem is that dos always checks for internal commands (copy) first,
so dos never even looks at copy.bat, it just declares invalid number of
parameters. I'm sure this can be avoided, but how? Again, I know it sounds
suspicious. I declare again that I'm not writing any virus programs. My
full name is below. As proof of my good intentions (or non-malicious any-
way) if you see any new virus programs out that use copy "turn-off" you
can blame me and send the police after me. 
By the way, the bet with my friend came after an argument of how to
turn off external commands (rename them, hide then, and replace with a
file of the same name). Reply by e-mail if that's ok. Thanks in advance.


Jeff R. Lamb at University of Illinois (Urbana-Champaign)

e-mail jlamb@ux4.cso.uiuc.edu
					Money can't buy you poverty.

-- 
H. Ross Perot | All his life he was surrounded  | Jeff R. Lamb
for President | by people who didn't know what  | Midnight Arrow
of the United | to do, while he had always      | Champion of Reality
States in '96 | known.            -Ayn Rand     | (jlamb@ux4.cso.uiuc.edu)
Xref: sparky alt.msdos.programmer:2675 comp.sys.ibm.pc.programmer:546
From: pstlb@acad2.alaska.edu
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer
Subject: IBM I/O Ports:  data wanted
Date: 5 Nov 92 04:58:25 GMT
Article-I.D.: acad2.1992Nov5.005825.1
Organization: University of Alaska


    I know this is somewhat of a dead horse, and I'm quite sure it's in the
FAQs, but since noone has enlightened me on how to FIND these FAQs, I'll ask
the general public.....   :)

    Ports.  Specifically, IBM PC ports, numbers, functions, etc.....

    Haven't been able to find anythings about them (yes, PC Intern does list
some, but not all, and I need to know about all of them.....  and the PC
Programmer's Sourcebook doesn't list anything about them....)

    if this IS in the FAQs, please let me know how to find them.....  or, if it
would be more productive to post to another newsgroup, please tell me that....

    and Email me, please......  with the amount and caliber of homework I have,
it is nearly impossible for me to check this newsgroup more than once on a blue
moon....  (I know it's bad etiquette, but please bear with me......  )
From: sabo@girtab.usc.edu (Jim Sabo)
Newsgroups: alt.msdos.programmer
Subject: Visual Basic fo DOS
Date: 10 Nov 1992 23:49:14 -0800
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: girtab.usc.edu
Keywords: Visual Basic DOS help

I just got the standard edition and love it, but I need some routines for
displaying clip art. If anyone knows where I can find this as shareware (or
any other VB for DOS routines), please mail me. And BTW, wuarchive's stuff all
seems to be for VB for Windows...

Jim

Newsgroups: alt.msdos.programmer
From: d91mf@efd.lth.se (Mats Fraennhagen)
Subject: DMA and port 63h
Keywords: DMA and port 63h
Reply-To: d91mf@efd.lth.se (Mats Fraennhagen)
Organization: Lund Institute of Technology
Date: Thu, 5 Nov 1992 12:27:28 GMT

Hi!

I have two questions:

 1) Is the DMA-chip faster than using "rep movsw", which takes
     CX*4 clocks(286), when transfering for instance a
     320x200x256 screen from "ordinary" memory to "graphics" 
     memory ?

 2) What function has port 63h ? One bit turns the speaker on and
    off(?) but what about the others.

 /Mats 


-- 
 Mats Fraennhagen 	Email: d91mf@efd.lth.se
Newsgroups: alt.msdos.programmer
From: jpistrit@oracle.uucp (Joe Pistritto)
Subject: 68K Cross tools for MSDOS or OS/2?
Organization: Oracle Corp., Redwood Shores CA
Date: Mon, 9 Nov 1992 04:25:11 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

I'm looking for tools that will cross compile C and assembler for the Motorola
68000, 68020 and 68030 that run under DOS or any version of OS/2.  If anyone
is using something they like, let me know...
						-joe Pistritto-
						jpistrit@oracle.com

--
Joseph C. Pistritto (jpistrit@oracle.com) +1 415 506 2866
"You may not be interested in strategy, but strategy is interested in You."
						-Trotsky
Xref: sparky alt.msdos.programmer:2681 comp.os.msdos.programmer:10384 comp.binaries.ibm.pc.d:3878
From: duanev@pulsar.NoSubdomain.NoDomain (Duane Voth)
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.binaries.ibm.pc.d
Subject: command shell programming
Date: 6 Nov 92 16:29:57 GMT
Followup-To: comp.os.msdos.programmer

I want to create a command shell for DOS that can a) relocate itself
to UMBs, EMS, or XMS, b) swap itself to EMS, or XMS, and/or c) swap
itself to disk (like 4dos, etc.).  Does anyone know of some public
domain, or personally has some, code to do any of this (a plus if for
Borland C) that they would be willing to part with?

-- 
--- duane voth                                  duanev@mpd.tandem.com
--- ALL systems are arbitrary!  Effectiveness is the measure of Truth
--
Xref: sparky alt.msdos.programmer:2683 comp.msdos.programmer:86 comp.os.msdos.programmer:10394 comp.sys.ibm.pc.programmer:550
From: rjm@dciem.dciem.dnd.ca (Robert J. Manley)
Newsgroups: alt.msdos.programmer,comp.msdos.programmer,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
Subject: AT PIC questions
Summary: IO ports, INT ranges, EOI sequence
Keywords: AT PIC 8259 master slave EOI
Date: 6 Nov 92 17:22:16 GMT
Followup-To: alt.msdos.programmer
Distribution: na
Organization: NTT Systems Inc., Toronto, Canada

Hi netters.

Some easy question for those with their tech ref manuals nearby.
For the AT PICs (8259) I need to know:

	1. slave IO port address
	2. slave INT vect range set by BIOS
	3. EOI sequence (master/slave or slave/master)

Thanks in advance.

Robert.
-- 
# Robert J. Manley,  rjm@dretor.dciem.dnd.ca		#
# NTT Systems Inc., Toronto, Ontario, CANADA		#
# #include <std_disclaimer.hpp>				#
# OS/2 : OS :: Blue Jays : MLB				#
From: John_Morgan@mindlink.bc.ca (John Morgan)
Subject: c++ and Memory Manager
Organization: MIND LINK! - British Columbia, Canada
Date: Mon, 9 Nov 1992 08:23:49 GMT

I seem to have a problem running C++ 3.00.  It says that the memory manager
won't initialize.  Is there a way of fixing this?  If so how?
I am using EMM386.COM that came with DOS 5.0 with a few TSRs running in high
memory.  If someone could help that would be great.

Ciao Ciao
    J

--
######################################################################
#                        #                   ARMY                    #
#  John Morgan           #              Another fine game            #
#  a345@mindlink.uucp    #              By Milton Bradley            #
#                        #                 Ages 17 & up              #
########################################
Newsgroups: alt.msdos.programmer
From: russ1066@sage.cc.purdue.edu (Russell J Mellon)
Subject: Re: Stat-ing a Directory file
Organization: Purdue University Computing Center
Date: Wed, 11 Nov 1992 03:45:16 GMT

In article <BxGsCA.Lnu@fang.att.com> pheffner@fang.att.com (Paul Heffner) writes:
>
>Anyone out there know a way of obtaining the size and time/date
>information of a MS-DOS directory file using standard DOS calls
>under MASM? For a regular file, you can use Int 21, function 5700
>to get the time and date of an open file using its handle, likewise
>you can use the old seek-to-end trick to get the file size, but both 
>of these require an open file handle to work, and you can't open a
>directory file like in Unix (or can you?). The MS C stat function
>goes as far as returning what seems to be a good set of timestamp
>information, so I guess it's there for using if you know how to get
>it. (Or does that function resort to sneaky non-standard methods
>to get the info?) All input would be appreciated!
>
>Thanks!
>
>Heff

Supprised that you know about the Int 21h function 5700 and don't know about
the Int 21h function 11h and function 12h.  Function 11h Finds the first file
matching the file specifications, and function 12h finds the next.

for both, DX = offset of a File Control Block ( you fill in the info )
          DS = segment for the same FCB

These are for DOS Ver 1.0 or better.  for DOS ver 2.0 and better there are
functions 4Eh and 4Fh.

for 4Eh ( find first ):
   ah = 4eh
   cx = file attributes to search for
       0 - Read-Only
       1 - Hidden
       2 - System
       3 - Volume label
       4 - Reserved ( should be 0 )
       5 - Archive
       and bits 6 through 15 are reserved also
   dx = Offset of ASCII string specifing filename ( and optionally a path )
   ds = Segment of above string.  string must be terminated with a nul byte

for 4Fh ( find next )
   ax = 4Fh


before using 4Eh, call service 1Ah to set the address of the current DTA
   ah = 1Ah
   dx = offset
   ds = segment

the DTA is 128 bytes long and is used by service 4Eh and 4Fh.

Hope I helped. 
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
From: d91mf@efd.lth.se (Mats Fraennhagen)
Subject: detecting parameters
Keywords: parameters
Reply-To: d91mf@efd.lth.se (Mats Fraennhagen)
Organization: Lund Institute of Technology
Date: Wed, 11 Nov 1992 09:32:40 GMT

I've written a small program in assembler and I would like to
detect if any parameters like:

test -?

 is given after the filename. Does DOS support this?
 
 /Mats

-- 
 Mats Fraennhagen 	Email: d91mf@efd.lth.se
Newsgroups: alt.msdos.programmer
From: krause@mksol.dseg.ti.com (David J. Krause)
Subject: Re: AT PIC questions
Keywords: AT PIC 8259 master slave EOI
Organization: Texas Instruments Inc
Distribution: na
Date: Wed, 11 Nov 1992 18:29:16 GMT

In <6587@dciem.dciem.dnd.ca> rjm@dciem.dciem.dnd.ca (Robert J. Manley) writes:

>Hi netters.

>Some easy question for those with their tech ref manuals nearby.
>For the AT PICs (8259) I need to know:

>	1. slave IO port address
Ports A0h and A1h are to the slave 8259 what ports 20h and 21h are for the
master 8259.

>	2. slave INT vect range set by BIOS
The interrupts generated by the slave 8259 are 70h - 77h.  BTW, 70h is the
high-speed timer tick interrupt.

>	3. EOI sequence (master/slave or slave/master)
I believe that you send an EOI to slave then master, but I could not 
guarantee that.

Good luck,
  Dave

This has got to be some of the hardest to find info out ther on the PC.

krause@lobby.ti.com
Newsgroups: alt.msdos.programmer
From: reaper@wixer.cactus.org (Keath Milligan)
Subject: Re: Turbo-Pascal 4 Windows - Debugger doesn't work! HELP!
Organization: Real/Time Communications
Distribution: world,local
Date: Wed, 4 Nov 92 23:03:11 GMT

In article <1992Nov3.204546.1@milori.ccit.arizona.edu> nadsap@milori.ccit.arizona.edu writes:
>
>I just installed Turbo Pascal for Windows and am trying the tutorials in
>the Install/IDE/Tutorial manual.  One of the first lessons is supposed to
>be a walk-through of the debugger.  I keep getting the following error
>message:
>
>  Can't Load Windebug.dll
>
>The file is in the TPW directory.  I also copied it to the Windows and 
>Windows\System directories.  Does anyone know what the problem is?
>
>Thanks
>Mike
>NADSAP@CCIT.ARIZONA.EDU


I think it is because you are running Windows 3.1 and the version of TP
you have was for 3.0.  We had this exact same problem when we tried
using the Borland C++ 3.0 package with Windows 3.1.  The problem went
away when we upgraded to BC++ 3.1.  Call Borland -- the updgrade from
BC++ 3.0 (with App. Frameworks) to 3.1 was only $39;  I'm sure the Turbo
Pascal upgrade isn't costly either.

-- 
oooooo ooo o o  o            Keath Milligan            o  o  ooooo oooo oooooo
oooo oo ooo  o   o   Prometheus Light and Sound, Inc.   o   o  o ooooooooooooo
oooooooo o oo  o         Real/Time Communications        o    o o ooo oooooooo
oooooo oooo ooo  o  internet: reaper@wixer.cactus.org  o   o  o ooo oo ooooooo
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
From: tsullivan@trentu.ca (God)
Subject: Re: my_tsr
Followup-To: alt.msdos.programmer,comp.os.msdos.programmer
News-Software: VAX/VMS VNEWS 1.41    
Organization: Trent University Computer Services Department
Date: Wed, 11 Nov 1992 15:08:00 GMT

In article <1347@datmuc.UUCP>, vincent@datmuc.UUCP (vincent) writes...
> 
>This is a repost I never got any replys, The Org. Q. was why this code
>doesn't work?
[tons of code deleted]

  You didn't get any response, because most of us arn't willing to spen 
hours going through your code finding an error we don't even know exists. 
How about telling us what error you get, what happens, or doesn't happen, 
or what the hell is wrong, instead of postign uncommented code, which is 
useless.

   tsullivan@trentu.ca
   cstes@blaze.trentu.ca

A Disclaimer? Yeah, and people BELIEVE what I write, too...
---
 "Virtual Reality has NOTHING on Calvin."
       - Suzy, from Calvin and Hobbes