HDTenEightyP/NetNews huggingface dataset:
From: junaid@yoyo.cc.monash.edu.au (Junaid Walker)
Subject: Re: Help w/ VGA Graphics Animation Routines
Organization: Monash University, Melb., Australia.
Date: Mon, 25 Jan 1993 05:18:17 GMT

In <1993Jan19.104520.13127@ousrvr.oulu.fi> scorpion@phoenix.oulu.fi.oulu.fi (Antti Kangas) writes:

>Joe Huffman (joe@proto.com) wrote:
>: jap7g@fermi.clas.Virginia.EDU (Jim Alan Pisano) writes:
>: 
>: >I need to write some animation-type graphics routines for VGA 16-color
>: >480X640 mode.  Specifically I'd like some routines that block copy from
>: >normal RAM to the VGA video RAM and once the images are in video RAM, then
>: >swap frames for high-speed animation.
>: 
>: I prefer to use the super VGA VESA 256 color modes (resolutions include
>: 640 x 480).  This gives you a one byte per pixel interface which allows
>: for easy data manipulation off screen with no conversion when doing the
>: transfer to the real screen.  The no conversion when doing the transfer


	I am in the process of creating a simular sprite library for
SVGA modes.  I agree competely, there's nothing like raw (non-bitplane)
video memory.  I also want to support mode X (320*480*256...) but using
the INT 10 mode 13 to boot the card in 320*200*256 and then tweaking
(like in the vgakit41) divides each video address into bitplanes and you
need to output a byte to some port for each memory access to select the
correct bits.  What a kludge!

BIG QUESTION: does anyone know how de-bitplane mode X and other standard
'IBM' 256 color modes?

Had a look at vgadoc the other day, nothing useful......



	As an asside, mere blitting to video memory isnt the problem,
its putting sprites on the screen without redundantly reading from video
memory (unless you keep a screen size background buffer).  Anyone have
any ideas for a sprite collision detection routine for N sprites?
I was thinking of a y-axis orrderred binary tree or hash array to reduce
bank switching.  But this still doesnt give you sprite collision
detection capability.  Think about it, it's not a trivial problem.
You update sprites in whatever convenient order and check for a
collision.  But there must be a better way than cheching the current
sprite for a collision with every other sprite?
Newsgroups: comp.os.msdos.programmer
From: vdkamp@rullf2.leidenuniv.nl
Subject: RE: COMPLETELY amazed! how is it done
Organization: Leiden University, Medical Informatics
Date: 22 Jan 93 10:15:39 +0100

In article <C16zAy.KIz@news.cso.uiuc.edu>, amead@s.psych.uiuc.edu (Alan Mead) writes:

[.... stuff deleted....] 
 
> I know how to change a font, but how do you make more than 256
> different chars appear on the screen?  And why would WordPerfect remap
> the normal a..zA..Z to something else?

The EGA/VGA Character generator can display simultaniously 512 different 
characters on your screen.

Russian (Cyrillic fonts) people don't have a..zA..Z characters so they
remap.

> 
> Thanks.  I'll be able to sleep again when I know.

Sleep well....

Bob.


VDKAMP@RULLF2.LeidenUniv.nl


Newsgroups: comp.os.msdos.programmer,comp.os.ms-windows.programmer.win32,comp.os.msdos.desqview,comp.os.os2.programmer,comp.os.ms-windows.programmer,comp.lang.c,comp.lang.fortran
From: jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin)
Subject: Re: 32 bit compilers and environments
Organization: University of Maine, Department of Computer Science
Date: Tue, 26 Jan 1993 04:17:56 GMT

In article <1993Jan26.030446.698@ornl.gov> fea@ornl.gov (FREELS J D) writes:
>In article <1993Jan25.222125.25160@news.acns.nwu.edu> phantom@casbah.acns.nwu.edu (James Choi) writes:
>>5.  Can os2 multi-task 32 bit codes?  (stupid question, but just to make
>>    sure)
>Yes, but no direct experience here.

Very well, in fact.  A nice side effect is it does a great job with 16 bit
programs...

Jeff



-- 
--------------------------------------
jurlwin@gandalf.umcs.maine.edu

Xref: sparky comp.os.msdos.programmer:12501 alt.msdos.programmer:3264
From: dmarer@td2cad.intel.com (Dennis Marer)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Protected mode source code example - I'll send it to you.
Date: 26 Jan 93 21:48:52 GMT
Organization: Intel Corporation, Santa Clara, CA USA

In article <93026.100558KDW103@psuvm.psu.edu> KDW103@psuvm.psu.edu writes:
>    Does anyone have any source code already typed in that they would be
>willing to share with the rest of us?  I want to try programming in protected
>mode, but I HATE typing assembly listings out of books.  Anything from books or
>your own code if you're willing to share it would be appreciated.

For anybody that's interested, I do have such an example.  At this point, I
don't guarantee it's 100% correct, but it initializes Protected Mode from DOS,
setting up the IDT, GDT, LDT, shifting hardware interrupts so they don't
conflict with the reserved Intel interrupts, and so on.  It's very primitive
at this time, but it gets the point across.  Once in Protected Mode, it
writes messages to the screen and tests the new interrupts.  It does NOT
emulate the DOS interrupts, so this causes a few problems:

	1) The floppy drive motor stays on indefinitely
	2) You can't exit back to DOS once running this program

If you're interested, drop me some e-mail and I'll send it to you in a
couple of days.  It's completely free and copyable.  It's also got nothing
to do with my work at Intel - I don't get to play with Protected Mode here! :-(
It's very documented (over documented?) so it should be easy to understand,
given familiarity with the 386.

One more thing - it was written using Turbo Assembler, so it will require a
few modifications to assemble under MASM, etc.

				Dennis Marer
				dmarer@td2cad.intel.com

-- Not speaking for Intel
Newsgroups: comp.os.msdos.programmer
From: pjunold@daimi.aau.dk (Peter Joachim Unold)
Subject: DMA memory->memory question
Summary: DMA
Keywords: DMA
Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
Date: Sat, 23 Jan 93 15:16:48 GMT

Questions:

1) Does memory->memory DMA, in the mainmemory work on all PCs? 

2) Using a program I found in the now dead >The Assembly Language Magazine<
   I was able to move a constant value into the memory on my VGA card. The
   program was supposed to be able to copy, but it only moved a constant
   into the memory. This effect could be very useful for clearing the screen.
   But will it also work with VGA cards from other vendors?(mine is a tseng3k).
   
 -hope some hardware wizards will answer
    Peter Unold - pjunold@daimi.aau.dk
Newsgroups: comp.os.msdos.programmer
From: sprott@128.104.39.173 (Sprott@Juno.Physics.Wisc.Edu)
Subject: Missing sound function
Reply-To: sprott@128.104.39.173 (Sprott@Juno.Physics.Wisc.Edu)
Organization: Univ. of Wisconsin, Plasma Physics
Date: Sun, 24 Jan 1993 19:28:52 EST

Can anyone suggest a way to implement a function sound(frequency, duration)
in a version of C (MS QuickC v. 2.5) that lack sound capability?
Alternately a good reference to programming the sound chip would help.
Newsgroups: comp.os.msdos.programmer
From: silvia@rcf.rsmas.miami.edu
Subject: Re: Dissasemble .EXE files on 386?
Reply-To: silvia@rcf.rsmas.miami.edu
Organization: RSMAS
Date: Sat, 23 Jan 93 20:17:52 GMT

In article <93023.143259GNR100@psuvm.psu.edu>, <GNR100@psuvm.psu.edu> writes:
>
>      Hi.  I am looking for a good program to take a .EXE file as input
>and create a .ASM file as output, so that it can be edited and then
>re-assembled.  Is such a program available?  If someone can give me
>tha name of one that is proven to work, I can locate the file with archie.
>                         Thanks.
>
>                                 Gordon Rogers
>                                 gnr100@psuvm.psu.edu
The only program that i know that will do what you want is Soure IT from V
Communications its very good and lets you pick the compiler you. Such as TASM
or MASM.

       Manolo
From: yawei@bronze.ucs.indiana.edu (~{QG9p~})
Newsgroups: comp.os.msdos.programmer
Subject: Re: Tracing function call path on Ctrl-C break?
Date: 28 Jan 93 00:02:04 GMT
Organization: Indiana University

In article <1993Jan26.194939.1326@oracle.us.oracle.com> fyu@shanghai.oracle.com (Francis H. Yu) writes:
>Is there any way to let a C program trace back to the function and the
>statement in the source file when a Ctrl-C break occur?  I do not want
>to run the program in CodeView.


You may be able to first obtain the value of the BP register (DOS should
tell you this during an int 23h trap), and then trace backward for 
the function call frames.  After that it is just a matter of matching
the addresses of the functions to their entries in the symbol table.
It's not foolproof, but may work.

  Ya-Gui Wei
Newsgroups: comp.os.msdos.programmer
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Coprocessor exceptions under DPMI
Organization: Queen's University
Date: Sun, 24 Jan 1993 01:05:19 GMT

I'm trying to figure out why Borland Pascal's protected mode programs mess up
the handling of coprocessor errors.  Reading the 486 manual, I see that 
INT 10h will be generated when an error occurs on the coprocessor, provided 
the "NE bit" is set in CR0.  

Under DPMI, I don't seem to be getting any exceptions generated.  I suspect 
this is because the NE bit isn't set, but I can't see any way to find out.
Is there some DPMI service that could tell me this?  All I get is exception
13 when I try to read it by "mov eax,cr0".  Even more to the point:  is there
any way to set the bit?

Duncan Murdoch
dmurdoch@mast.queensu.ca
From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Unerase - how does it wor
Date: 25 Jan 93 08:27:36 GMT
Followup-To: comp.os.msdos.programmer
Organization: Apple Computer Europe

In article <markus.409.727646157@clement.info.umoncton.ca>,
markus@clement.info.umoncton.ca (PAULIN MARC) wrote:
> 
> In article <rol-190193093304@90.222.1.80> rol@grasp1.univ-lyon1.fr (Paul Rolland) writes:
> >From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
> >Subject: Re: Unerase - how does it wor
> >Date: 19 Jan 93 08:31:55 GMT
> 
> >The key, at this point, is to do supposition... Imagine that your disk is
> >not fragmented. THen, your file TOTO is stored in contiguous clusters, and
> >you have :
> >'correct'
> >---------
> >FAT:   Entry number:     Content of this entry
> >             3                      4
> >             4                      5
> >             5                    0xfff
> 
> >When it is cleared, you have :
> >FAT:   Entry number:     Content of this entry
> >             3                      0
> >             4                      0
> >             5                      0
> >So, if you undelete a file, you check the FAT to see if you have enough
> >CONTIGUOUS free clusters starting at the first one allocated to the file,
> >and you allocate them to the file you are restoring, rewriting the FAT so
> >that it is like the one marked 'correct'.
> 
> 
> 	Ok.  And what if you have more contiguous space than the actual file 
> size?  UNERASE will bring back a file larger than its original size?  If so, 
> unfragmenting can cause UNERASING problems too.

Nice remarks... This tends to prove that you have read my complete post :)
No, in fact, you point out something I've completely forgotten (well, it
seems that). When you unerase a file, you have the length of the file which
is still present in the directory entry. Using this length, you can
determine how many clusters are required (just by dividing the length of
the
file (in byte) by the length of a cluster (in byte too) and then adding 1
*IF* there is a remainder). For example, let's imagin you have a cluster
size
that is 2048 bytes. If your file is 10000 bytes, you will have 10000/2048=4
and you add 1, so you'll need 5 clusters. If your file is 4096, you'll
need 4096/2048 = 2, and you*don't* add 1, so you need 2 free clusters to
*try* to undelete !
But you're right, unfragmenting can cause UNERASING problem for these
reasons:
  - First, unfragmenter move clusters, and usually rewrite on the clusters
of
your lost files, 
  - Second, they sometines clear unused entry in the directories, and an
erased files is often considered as unused. Thus, you have no more
information
on your file, and can't unerase it.

Hope that now it is a bit more clear.

*****************************************************************************
THIS SHOULD BE PART OF THE FAQ !!!!!!!!!!
*****************************************************************************

Paul Rolland

A bug can be changed to a feature by documenting it. Developpers know !
Newsgroups: comp.os.msdos.programmer
From: gilligan@camelot.bradley.edu (Edward Henigin)
Subject: Re: Learning C
Organization: Your Mother's Knee
Distribution: na
Date: 27 Jan 93 18:54:53 GMT

In <Steve_Mech.04q2@bearsden.UUCP> Steve_Mech@bearsden.UUCP (Steve Mech) writes:

>What I would like to know is how I should go about learning C. 

First off, watch your margins.

Secondly, I would recommend going to your local community college and
taking a class on C.  Should be pretty cheap, and you will probably learn
things that you may or may not learn on your own.

Thirdly, get a hold of other people's sources, and look at theirs, and
try to understand why they did what they did.  This has proven invaluable
to me in learning just about anything.

Fourthly, RTFM.  You should get about 10 pounds in docs for your compiler,
and you can learn a lot by leafing through them, because you will pick
up things you may later want to refer back to and use as reference in your
projects.

Fifthly, and finally, get projects of your own.  Learning by doing, I say.

ed
--
| To make do is a promise / Hard to keep without help.   -- Helmet           |
| ed -- gilligan@camelot.bradley.edu                                         |
|----------------------------------------------------------------------------'
Newsgroups: comp.os.msdos.programmer
From: dboese@spartan.ac.BrockU.CA (Darcy Boese)
Subject: Font woes
Organization: Brock University, St. Catharines Ontario
X-Newsreader: Tin 1.1 PL4
Date: Mon, 25 Jan 1993 13:58:02 GMT

I've been working on setting up a different font for some DOS applications,
using the example of the shareware program _Font Mania_ by Rexxcom.  I only
have one major obstacle which I can't quite figure out:

How do you choose between using an 8xNN font versus a 9xXX font with the
extra pixel leaving space between characters?

I am using assembly-language calls to BIOS (from within a Turbo Pascal
program) to load in the new fonts, exactly the same way that the demo uses,
but the space is there.

But I have noticed that if I run the demo program before I run my own
switcher, the space is gone.  	

So what BIOS calls do I need to make to switch between these two font modes?
Newsgroups: comp.os.msdos.programmer
From: gisie@wam.umd.edu (Satan)
Subject: C Libraries in Borland (TLIB etc)
Organization: University of Maryland, College Park
Date: Thu, 28 Jan 1993 13:43:42 GMT

I have created a library of my most used functions in Borland
C++ 3.1.  Once I have the .obj files, I use tlib to create/update
my library.

Is there a way to set up a project or someway to manage my
library from within the IDE?  If I put the .c files in the
project, the compiler runs, then tries to link to create an
exe file.  I just want it to run tlib to update or create the
library.

Also, what do the librarian options do under Option|Librarian ??

Any info isd greatly appreciated,
Tim

-- 
gisie@wam.umd.edu
"How will these windows affect my final document?"
Newsgroups: comp.os.msdos.programmer
From: mueller@iwf.mabp.ethz.ch (Mueller Beat)
Subject: Re: CTRL-ALT-DEL : how to send from a program ?
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Thu, 21 Jan 1993 07:52:32 GMT

$dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS) writes:

>In article <1993Jan20.104411.18440@ghost.dsi.unimi.it> cotrozzi@ghost.dsi.unimi.it (Massimo Cotrozzi) writes:
>>Which is the way to reboot from within a program ?
>>
>>Many thanx in advance
>>
>>Massimo
>>-- 
>> -- Massimo Cotrozzi  Computer Science Dept. Milan Italy
>>            cotrozzi@ghost.dsi.unimi.it  +39-2-27201253
>> #include     "std/disclaimer.h"

>JMP FFFF:0000 will do the trick.

>_____

>Douglas R. Nebeker              Internet: $dougn@sasb.byu.edu

if want a warm boot, store $1234 in $0040:$0072 and then do the jump.
for a cold one, store $0000 in the same address and jump then.

zosh
Newsgroups: comp.os.msdos.programmer
From: gerrits@research.ptt.nl
Subject: TIFF/GIF/WMF/CGM/AI formats
Keywords: TIFF, GIF, WMF, CGM, AI, EPS
Reply-To: R.Gerrits@research.PTT.NL
Organization: PTT Research, The Netherlands
Date: Tue, 26 Jan 1993 08:09:57 GMT


Help! I've written a program for (CCITT) Q.73 information flow diagrams
which generates EPS output. But people using my program complain about
this: No decent drawing tools (you know CorelDraw, Designer, DrawPerfect)
imports EPS files correctly. CorelDraw and DrawPerfect don't at all!
Furthermore printing EPS files using WordPerfect, WinWord or a Mac
word processor (I don't know the name) is not possible.

So this is what I want: Please can anyone give me info about TIFF, GIF,
WMF (Windows meta files), CGM (comp. graph. metafiles), AI (Adobe illustr.)
? And maybe also something about inserting an tiff preview into an EPS file?

Great, great thanx in advance!!!
Rob Gerrits

---------------------------------------------------------------------------
.   .   .  .  . . . ...          Please post or send mail to:
              . . . :::       
        .  .  . . . :::          R.Gerrits@research.ptt.nl
.   .   .     . . . :::          phone +31-70-3326160
        .  .  . . . :::
---------------------------------------------------------------------------


Newsgroups: comp.os.msdos.programmer
From: emoreno@scheria.NMSU.Edu (Elena M. Castruita)
Subject: WANTED:  GCC aout -> exe
Organization: New Mexico State University, Department of Computer Science
	<books.206.0@fsunuc.physics.fsu.edu>
Date: Tue, 26 Jan 1993 21:00:04 GMT


	Thanks to all who replied about FSF's aout2exe.  I already
have that.  What I wanted is something that creates an exe file ( out of
a GCC aout format file ) that DOES NOT use go32.  aout2exe prepends a
call to go32 to the aout file.  In order to run program hello.exe
(compiled on machine X) on machine Y, I would need to install go32 on
machine Y.  That is something I want to avoid if at all possible.  

	Anyone know of anything that will do what I want?
--

		   "I know what I want out of life.
	    I just don't know what I want to put into it."
	       Copyright @ 1991, Fitzgerald Enterprizes
From: richard.vannoy@filebank.cts.com (Richard Vannoy)
Newsgroups: comp.os.msdos.programmer
Subject: A PEACHY-KEEN PROGRAM
Date: 26 Jan 93 17:05:00 GMT
Article-I.D.: filebank.990.331.uupcb
Reply-To: richard.vannoy@filebank.cts.com (Richard Vannoy)
Distribution: world
Organization: The File Bank BBS - Fallbrook, CA  619-728-4318

So here's a question for programmers.

If you are allowed to pick any seven tiles in Scrabble,
what seven letters (no blanks) would you pick that would 
let you make the most seven letter words?  (Answer below.)

How do I know?  Well, out of curiosity, I wrote a program 
that takes various combinations, like:

    - Just the seven tiles you have (for the first play
      in Scrabble), and you get a list of all words in
      the English language that can be made with any 
      combination of from 2 to seven tiles.  (My Quick-
      BASIC program spits out from just a few words to 
      200 words, depending on the tiles used, in about 
      3 to 8 seconds.)

    - Input the seven tiles you have, and the cross tiles
      you can make words with.  The list shows all possible
      cross words you can make, in order of the point 
      values assigned to Scrabble tiles.

    - Enter just six tiles and you get a list of all 
      possible words you can make using a blank.

Each of the first two variations can search a specially 
prepared 55,000 word dictionary for all possible  words 
that can be made from the given letters in under 10 
seconds.

Now that I've written this wonderful, peachy-keen program,
my question is what do I do with it??  Other than a "How
to Cheat at Scrabble" program, has anyone any ideas on how
this could be packaged or marketed as Shareware in a way
that might benefit Shareware users?

And the answer to the question above is for you to pick the 
following tiles:  E I P R S S T
There are seven different seven letter words you can make 
from these tiles.  I challenge anyone else to pick a better
seven letters.
--- MegaMail 2.10 #0
                                                                                                              
----
*--------------------------------------------------------------------------*
| The File Bank BBS - 619-728-4318 - PCBoard v.14.5a/E10 - USR HST & DS    |
| 8 nodes / RIME / Internet / Largest Clipper file collection in the world |
*--------------------------------------------------------------------------*
From: scheff@scheff (Wolfgang Scheffbuch)
Newsgroups: comp.os.msdos.programmer
Subject: coff2hex or coff2bin-tool ?
Date: 26 Jan 93 12:45:18 GMT


    Hello,

I'm looking for a tool like coff2bin under MS-DOS. I've a compile -
environment which creates me a coff-file. I dispose already of a
coff2hex and a hex2bin -converter. The second one seems to work
fine and the first one seems to work fine only, if the coff-file
does not exceed 64 kB. I don't have sources of these tools, so I
cannot modify them. According to what I've heard the coff2hex
converter uses sometimes integers when it should not, as this
tool shall work fine on a SUN but not on MS-DOS, when it is
generated from the same source. That's what I've heard from the
hotline of the coff2hex-producer. But for two month, I'm already
waiting in vain for any patch or update.

So where may I find a coff2bin or a coff2hex converter which may
work fine under MS-DOS for files up to 1 MB? Please Email me, as
my news-feed expires after half a week.

	Bye,
Wolfgang Scheffbuch
Email: scheff@scheff.tps.de
Organization: Penn State University
Date: Sat, 23 Jan 1993 14:32:59 EST
From: <GNR100@psuvm.psu.edu>
Newsgroups: comp.os.msdos.programmer
Subject: Dissasemble .EXE files on 386?


      Hi.  I am looking for a good program to take a .EXE file as input
and create a .ASM file as output, so that it can be edited and then
re-assembled.  Is such a program available?  If someone can give me
tha name of one that is proven to work, I can locate the file with archie.
                         Thanks.

                                 Gordon Rogers
                                 gnr100@psuvm.psu.edu
From: Steve_Mech@bearsden.UUCP (Steve Mech)
Newsgroups: comp.os.msdos.programmer
Subject: Learning C
Date: 27 Jan 93 00:36:12 GMT
Organization: The Bear's Den BBS   (715) 839-7997

I have done some programming in BASIC.  I had a class on it in college and
do
some small programs like developing a check book balance program in BASIC. 
I
am getting Borland's C++ free with my new Gateway 2000 66VL-Bus computer.  

What I would like to know is how I should go about learning C.  I got a
book 
from Que on learning the C language.  I plan to read this book and any
other 
beginner books I can find.  Is this a good way to learn C?  Some of the    

concepts in C are a little confusing and it appears it will take me quit a 

while to learn C.  How difficult is it to know enough about C to develop a 

program like a card game for instance.  Am I way over my head trying to
learn
C, or should I master BASIC first.  I heard they will come out with a
program
called Visual C(a take-off of Visual Basic).  Would a program like this
help 
me to program in C, or do I need to learn everything about C first.        

I have lots of free time to learn C, I'm just wondering if I'm over my
head. 
Any comments would be appreciated.

-- Via DLG Pro v0.995