HDTenEightyP/NetNews huggingface dataset:
From: rwm@atronx.OCUnix.On.Ca (Russell McOrmond)
Date: 9 Oct 92 12:33:32 EST
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How to drop DTR

griffin@eecae.msu.edu (Dan Griffin) writes:

>I have been looking through the RKM: Devices manual and I do not see
>a way to drop DTR.  If someone would tell me how this is accomplished,
>or possibly point me in the right direction, I'd appreciate it.


  The option does not exist in any of the CBM supplied serial devices.  Here
is some code that I use myself.  Hopefully CBM will fix this 
short-sightedness soon in a new driver for the internal and A2232 ports.


  I hate hacks to patch for missing fundamental operations.

/* DTR.c -- handle DTR */
/****************************************/
/* Set com DTR line                     */
/* FALSE = DTR off; TRUE = dtr on       */
/****************************************/

void SetInternalDTR(MHANDLE fd,int set)
{
  struct CIA *Ciab;

  Ciab=(struct CIA *)0xBFD000;
  Disable();
  Ciab->ciaddra |= CIAF_COMDTR;            /* Set DTR as output */
  if (set) Ciab->ciapra &= ~CIAF_COMDTR;   /* Set DTR low */
  else Ciab->ciapra |=  CIAF_COMDTR;       /* Set DTR high */
  Enable();
}

/****************************************************/
/* DTR control originated by ASDG in their Dual     */
/* Serial Board (and presumably 4 board)            */
/* Now in use by many other popular 3'rd party      */
/* boards (PDIO,CMASER,etc)                         */
/****************************************************/
#define SIOCMD_SETCTRLLINES 0x10
#define SIOB_RTSB  0
#define SIOB_DTRB  1
#define SIOB_RTSF  (1<<SIOB_RTSB)
#define SIOB_DTRF  (1<<SIOB_DTRB)

void SetAsdgDTR(MHANDLE fd,int set)
{
  IOExtSer ios;

  ios=(fd->SerIO);

  ios.IOSer.io_Message.mn_Node.ln_Name="SetAsdgDTR";
  ios.IOSer.io_Command=SIOCMD_SETCTRLLINES;
  ios.IOSer.io_Offset=SIOB_DTRF;
  if(set==TRUE) {
    ios.IOSer.io_Length=SIOB_DTRF;
  }
  else {
    ios.IOSer.io_Length=0;
  }
  if(DoIO(&ios)) PutStr("DoIO Error: SetAsdgDTR\n");
}

>-- 
>Dan Griffin                     Abort the whales with a nuclear handgun.
>griffin@egr.msu.edu             
--
  Opinions expressed in this message are my Own. I represent nobody else.
  Russell McOrmond  rwm@Atronx.OCUnix.On.Ca Net Support:(613) 230-2282(V.32Bis)
  FidoNet 1:163/109 Welmat Help 1:1/139  Current WELMAT 'keeper of sources'.
From: tomme@Prag.docs.uu.se (Thomas Holmstr|m)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: DICE registration: Matt Dillon still around?
Date: 12 Oct 92 11:09:17 GMT
Organization: Uppsala University
NNTP-Posting-Host: prag.docs.uu.se

I sent the money for the DICE registration in the middle
of August and I received the three-disk kit last week.
I too, was becoming pessimistic about the chances
that the money was lost on the way over the Atlantic.
Matt apologized for the delay, I believe he's busy
with a commercial release of Dice.

--
_/_/_/_/_/   _/    _/         Thomas  Holmstr|m
   _/       _/_/_/_/        tomme@Student.docs.uu.se
  _/       _/    _/            +46 18 261628
 _/       _/    _/   DVL, University of Uppsala, Sweden
From: robertm@terapin.com (Robert Michaels)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: CreateNewProc examples please?  Its drivin me crazy!
Date: 10 Oct 92 10:02:51 PST
Organization: BBS

You seem to have the exact same problem I do.  I get the same guru with some
similiar code I have been trying to get to work.  That guru means 'ILLEGAL
INSTRUCTION' apparently and in my case the process is always name 'NEW PROCESS'
as if the name (and apparently from the guru the address) arguments are not
being used.  Are you using SASC?  I'm using SASC 5.10b and I've become
convinced that this has something to do with the compiler and the lc options
rather than with the code.  Someone sent me an example of CreateNewProcTags
that he successfully compiled under the DICE compiler and of course it will not
work when compiled by me under SASC.  
Newsgroups: comp.sys.amiga.programmer
From: walker@twix.unx.sas.com (Doug Walker)
Subject: Re: C++ and Amiga shared libs (was: Re:  Obj-C vs. C++)
Originator: walker@twix.unx.sas.com
Date: Thu, 15 Oct 1992 13:09:55 GMT
Organization: SAS Institute Inc.


In article <Bw4H4G.Hxs@well.sf.ca.us>, comeau@csanta.attmail.com (Greg Comeau) writes:
|> In article <67684@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes:
|> >Greg:  Has anyone looked at how to write C++ classes that will use
|> >Amiga shared libraries?  i.e. I come up with a great class collection.
|> >I want to make a shared lib out of it.  Can this even be done?
|> 
|> I have heard of none, but in some cases I am the last to hear.
|> Anybody else heard?

Basically, if you can link with cres.o and make your program
resident, then you can make it into a shared library.

You should be able to create a shared library in C++ assuming all 
of the following are true (Greg may be able to help on some of 
these):

   *) Your program has less than 64k of read-write external data

   *) Comeau C++ provides near-data-model libraries (libraries compiled
      without the DATA=FAR (6.0) or -b0 (5.10) option.

   *) Comeau libraries do not use the __saveds keyword or call the
      geta4() function to get the near data pointer.  (I doubt 
      seriously if they do this.)

The reason this will work is that with SAS/C 6.0 there is a new kind
of library called a "multiple library base" library.  Each time
OpenLibrary is called, a new copy of the library base is created and
the near data section for the library is copied into a new chunk
of memory.  This effectively means that you can use up to 64k of
external data for each invocation of your library as long as you
compile with the LIBCODE option and use the __saveds keyword on
any entry points to the library.

Since the near data section gets set up correctly, Comeau C++'s
libraries should work fine, as long as they are actually using
the near data.

-- 
  *****
=*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
 *|. o.| ||                                          1200/2400/9600 Dual
  | o  |//     For all you do, this bug's for you!
  ====== 
usenet: walker@unx.sas.com                            bix: djwalker 
Any opinions expressed are mine, not those of SAS Institute, Inc.
From: crisp@dcs.warwick.ac.uk (CrisP)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: C++/G++ programming question
Date: 15 Oct 92 15:43:16 GMT
Organization: Department of Computer Science, Warwick University, England

In article <Bw4Hqs.IF9@well.sf.ca.us> comeau@csanta.attmail.com (Greg Comeau) writes:
>In article <1992Oct8.011236.3156@tplrd.tpl.oz.au> paulg@tplrd.tpl.oz.au (Paul Gittings) writes:
>>The definition for the graphics library pointer, GfxBase, in C is
>>        struct GfxBase *GfxBase;
>>or in C++
>>        GfxBase *GfxBase;
>>This works  OK and I can even assign a library pointer to GfxBase.
>>The problem I run into is when I try to close the graphics library
>>        CloseLibrary((Library*) GfxBase);
>>I get a message from g++; name GfxBase could be a type or expression.
>>Compiler assuming type.
>>Which results in a parse error, because we really wanted the variable
>>GfxBase not the type GfxBase.  Is there any way (I'm new to C++) to
>>force the compiler to use the variable? or do I use another variable which
>>is a reference to GfxBase?
>
>C++ rules say that the pointer is in scope in this situation and that
>to use the type you'd need to explicitly prefix it with struct (in this
>case), so you're not supposed to have to force it to do anything.
>You might be able to convince g++ of this by doing something with the pointer
>(casting or adding to it (although I see you're casting it now!)), using
>another pointer, renaming this pointer, and the reference might work too
>I think that will border on cryptic for somebody maintaining the code.
>

Personaly I try and avoid the cast altogether.
I can't rember exactly what the structure member is, I'd have to look at
the includes. I'd do something like this:

CloseLibrary(&GfxBase->gb_LibNode);

~CrisP.

-- 
------------------------------------------------------------------------
crisp@uk.ac.warwick.dcs | Acid on the floor so she walks on the ceiling.
                        | - Andrew Eldritch.
------------------------------------------------------------------------
From: hoehle@inf-wiss.ivp.uni-konstanz.de (Joerg-Cyril Hoehle)
Newsgroups: comp.sys.amiga.programmer
Subject: doing DOS I/O and MsgPort I/O simultaneously
Summary: trying not to get stuck in Read()
Keywords: Read(), MsgPort, waiting for messages
Date: 7 Oct 92 18:39:38 GMT
Organization: Information Science, Univ. of Konstanz
X-Newsreader: TIN [version 1.1 PL6]

Hi netters,

I'm facing the following problem: I want a program to receive input
both from Standard-Input and from a message port, let's say an ARexx
port. The problem is that if I call Read(Input()), my program does not
listen to other messages/signals anymore. How can I prevent this? Is
there something like the UNIX select() call?

In typical window-based applications, doing this is no problem,
because one always waits for messages from either your window, ARexx
or timer or whatever ports, but with standard(console) I/O?

Thanks for any info,
 	Joerg.
hoehle@inf-wiss.ivp.uni-konstanz.d
Date: Wednesday, 7 Oct 1992 16:22:35 CET
Newsgroups: comp.sys.amiga.programmer
From: staferne@risc.uni-linz.ac.at (Stefan Taferner)
Distribution: world
Organization: RISC, J.K. University of Linz, Austria
Subject: Gnu Malloc Package

Hi folks!
I am searching for an Amiga port of the gnu malloc package. I think this
file is named gnu_malloc.c and was originally distributed with the GNU
Emacs.
Well, if you know/have a replacement of the standard malloc functions for
the Amiga that makes optimized memory management, please tell me also.
Thanks,   Stefan
Stefan Taferner
staferne@risc.uni-linz.ac.at
Research Institute for Symbolic Computation  (RISC)
From: peter@cbmvax.commodore.com (Peter Cherna)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How to get Intuition to send button clicks from overscan area?
Date: 13 Oct 92 13:21:03 GMT
Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
Organization: Commodore-Amiga, Inc.  West Chester, PA.

In article <1992Oct12.210516.9190@vicorp.com> ron@vicorp.com (Ron Peterson) writes:
>I've just finished writing a program under contract and am troubled
>by one last bug I haven't been able to track down.  The program
>displays graphics over genlocked video using an overscanned screen.
>Whenever I try to read a button click while the cursor is in the
>overscanned region, Intuition stops sending my program mouse events
>without even sending the button press report.

If the mouse can travel into the overscan area, then you should be
able to hear mouse clicks.  Well, you've opened an overscan screen (to
have firm numbers around, lets pretend that it's hires non-lace,
720x240 pixels).  If you're getting button events, then I presume you
have a window open.  Did you open your window to full-size?  Or did
you forget and only open 640x200?  I suspect that is your problem,
and mouse clicks "in the overscanned region" are actually mouse
clicks outside your window, which you never hear.

>ron@vicorp.com or uunet!vicorp!ron

     Peter
--
Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"I believe it's bad luck to be superstitious."
From: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: VBLANK Examples wanted.
Date: 10 Oct 92 12:44:43 GMT
Reply-To: forgeas@swinjm.adsp.sub.org (Jean-Michel Forgeas)
Organization: The Software Winery
X-Newsreader: Arn V1.00 alpha rel2

In article <39198@sdcc12.ucsd.edu>, Steven Cobb writes:

> Does anybody know of some examples of vertical blank [...]
> to do something like color cycling and animation on a screen

Quoted from the autodocs for LoadRGB4():

: NOTE: Under V36 and up, it is not safe to call this function
: from an interrupt, due to semaphore protection of graphics
: copper lists.

> and time criticle device triggering using the parallel port.

The parallel port has its own interrupt that you should use with
a call at AddICRVector( CIAA, CIAICRB_FLG, ... );

    Jean-Michel
--
Jean-Michel Forgeas         uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
4 rue du General Leclerc                       __
95210 Saint Gratien, France                    \/
From: IO00198@MAINE.MAINE.EDU (Just some weird dude)
Newsgroups: comp.sys.amiga.programmer
Subject: C graphics help
Date: 7 Oct 92 14:44:34 GMT
Organization: University of Maine System

Hi guys! I'm working on a program with a friend and we want to
use graphics in it.  Does anyone know a good source that explains
what the graphics routines are in C?  I'm using Manx Aztec-C if
that helps.  Just knowing the names of all the functions and
their parameters would be of help, even if I didn't know what they
did.  Thanks.
______________________________________________________________________
  COREY GRAY   IO00198@MAINE.MAINE.EDU  |
 "THE MEEK SHALL INHERIT THE EARTH -    | "A WET DOG SWIMS IN THE RAIN
  AND THE BOLD SHALL INHERIT THE STARS" |   BUT A DRY MARTINI LAUGHS"
   - ME, AND PROBABLY A MILLION OTHERS. |  - DEFINITELY ME
----------------------------------------------------------------------
From: dwong@waikato.ac.nz
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How to reset the ....... Amiga 3000?
Date: 13 Oct 92 17:21:01 +1300
Organization: University of Waikato, Hamilton, New Zealand

In article <35765@cbmvax.commodore.com>, mks@cbmvax.commodore.com (Michael Sinz) writes:
>
[ ...stuff about ColdReboot() deleted... ]
> 
> I have a program I use to reset all of my machines...  It watches for
> this special file to show up from the network (a new kickstart :-) and
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> then calls ColdReboot().  Works fine on all of the machines I use...
> 

Are you dropping hints or something Michael...  8^)

Hope this network stuff goes into (near) future versions of the Amiga OS...

Keep up the good work!

> /----------------------------------------------------------------------\
> |      /// Michael Sinz  -  Senior Amiga Systems Engineer              |
> |     ///                   Operating System Development Group         |
> |    ///   BIX:  msinz      UUNET:  mks@cbmvax.commodore.com           |
> |\\\///                     When people are free to do as they         |
> | \XX/                      please, they usually imitate each other.   |
> \----------------------------------------------------------------------/
-- 
+-----------------------------------------------------------------------------+
| Derek Wong.                    |                                            |
| Computer Science Dept.         |                                            |
| University of Waikato,         |                                            |
| Hamilton, NEW ZEALAND.         |                                            |
| Internet - dwong@waikato.ac.nz |                                            |
+-----------------------------------------------------------------------------+
Newsgroups: comp.sys.amiga.programmer
From: eda735a@monu6.cc.monash.edu.au (P.E. Mazur)
Subject: clean reset
Keywords: how?
Organization: Monash University, Melb., Australia.
Date: Fri, 16 Oct 1992 02:41:27 GMT

Does anyone have a 68000 routine to completely reset any machine (1.2, 1.3,
2.0 etc).  I have tried jumping into the ROM reset routine at various locations
but this was more an act of desperation than an act of action.
			- Shem
Newsgroups: comp.sys.amiga.programmer
From: pmiller@csugrad.cs.vt.edu (Paul Miller)
Subject: Looking for a CONSOLE-ONLY hotkey util..
Organization: The Ohio State University Department of Computer and Information Science
Date: Sat, 10 Oct 1992 19:18:55 GMT

I'm looking for a hotkey tool (function-keys, really) which works ONLY
with console windows (ie the shell). I'm really tired of having to
disable my hotkey program every time I go into DPaint. I'm phasing out
MachII (which gives me enforcer hits every time you click on a different
screen) for a more modular Commodity-drive utility setup, and I really
only need hotkeys in shell windows (I've gotten very used to running
dme, smake, or avail with hotkeys, as well as doing directories).

If nobody knows of one already available, can someone tell me if there
is a way to detect if the active window is a CONSOLE window from within
a Commodity? If this is possible I'll just write one myself...

-- 
****************************************************************************
* Paul Miller                         |Nobody cares about my opinion anyway*
* Certified Amiga Developer           |                                    *
* INTERNET: pmiller@csugrad.cs.vt.edu |    - Have a JOLT and a smile! -    *
* ------------------------------------------------------------------------ *
* "What IS it, man?"                                "Happy Happy, Joy Joy" *
****************************************************************************
Newsgroups: comp.sys.amiga.programmer
From: sponsler@mingus.stsci.edu (Jeffrey Sponsler)
Subject: Amiga Common Lisp
Organization: Space Telescope Science Institute
Distribution: usa
Date: Fri, 9 Oct 1992 22:29:15 GMT


I have an A3000 and would like to find out
where I can get a Common Lisp (preferably with
a compiler and graphics hooks).
I have a shareware XLISP already but would like to
be Common.  Thanks 
--

Jeff Sponsler
Spike System Lead

Work: 410 338 4565
Home: 410 747 3588
Space Telescope Science Institute
From: chrisg@cbmvax.commodore.com (Chris Green)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Wolf3D -- programming aspects
Date: 16 Oct 92 12:17:29 GMT
Reply-To: chrisg@cbmvax.commodore.com (Chris Green)
Organization: Commodore, West Chester, PA

In article <6228@pdxgate.UUCP> idr@rigel.cs.pdx.edu (Ian D Romanick) writes:
>One way to do fast rotation would be to use the blitter to do shearing.  What
>you'd have to do is shear it on the x axis, like so:
>
>Original:		After first shear:
>	-----			-----
>	-----			 -----
>	-----			  -----
>
>Then shear it on the y axis:
>
>	    ---
>	   ---
>	  ---
>	 ---
>	---
>
>This is the way that people did all those old demos with the rotating letters
>in their scrollers.  It only does 2D rotation, but with a little work you
>could probably adapt it to do 3D rotation.
>
	That won't work for texture mapping. The multi-pass techniques can only
handle affine mappings, and even the cheesiest texture mapping approximations
are not affine. You could use this if you broke each polygon up into many
sub-polygons which could be approximated with an affine map, but the
overhead would kill you.

-- 
*-------------------------------------------*---------------------------*
|Chris Green - Graphics Software Engineer   - chrisg@commodore.COM      f
|                  Commodore-Amiga          - uunet!cbmvax!chrisg       n
|My opinions are my own, and do not         - icantforgettheimpression  o
|necessarily represent those of my employer.- youmadeyouleftaholeinthe  r
|"A screaming comes across the sky..."      - backofmyhead              d
*-------------------------------------------*---------------------------*
Newsgroups: comp.sys.amiga.programmer
From: sutela@polaris.utu.fi (Kari Sutela)
Subject: SAS/C 6.0 in Europe?
Summary: Does anyone have it.
Organization: University of Turku, Finland
Date: Wed, 7 Oct 92 19:19:36 GMT


Has anyone in Europe received an upgrade notice for SAS/C from the SAS
Heidelberg office?  According to an article by Doug Walker they should
have been sent about two weeks ago.  Should I begin worrying :-)?

-- 
Kari Sutela	sutela@utu.fi
From: Fred_M_Hamilton@cup.portal.com
Newsgroups: comp.sys.amiga.programmer
Subject: SAS/C 6.0 and WShell
Date: Wed,  7 Oct 92 07:18:22 PDT
Organization: The Portal System (TM)
Distribution: world



A few days ago, someone (Doug?) wrote: 

> Ah, we have just discovered something.  If you use WShell as your
> default user shell under 2.0, compiling from within SE does not
> work.


Does anyone know why?  Is there a workaround, short of removing WShell?
Has Bill Hawes been advised?  

Other than that minor annoyance, I'm very impressed with SAS/C 6.0.
I find the manuals much more readable and understandable than <=5.1,
and the overall environment seems much cleaner.  Good job!

-Fred
From: jcmurphy@acsu.buffalo.edu (Jeff Murphy)
Newsgroups: comp.sys.amiga.programmer
Subject: SANA II
Date: 8 Oct 92 20:47:36 GMT
Organization: UB
	
	How can I find out about SANA II? Is there somewhere I can get

j murphy


-- 
Newsgroups: comp.sys.amiga.programmer
From: u9155406@cs.uow.edu.au (Gerardo Bentancor)
Subject: Are there any PD assembly-source level debuggers?
Keywords: Assembly (of course)
Organization: Dept of Computer Science, Wollongong University, Australia
Date: Wed, 7 Oct 1992 21:42:45 GMT

G'day Guys,

	I was just wondering if there are any Public Domain/ShareWare
assembly source level debuggers? Like CPR for C, but one for 68k assembler.
I am having a few problems with a small program I have written, and it is
not very easy finding the problem...(and please don't tell me to go out
and buy DevPac III or something like that!)

					Any help greatly appreciated,

					GB

u9155406@cs.uow.edu.au
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Fast Fourier Transform C-code Wanted
From: fheitkamp@desire.wright.edu
Date: 11 Oct 92 10:34:37 EST
Organization: Wright State University 

In article <hassink.718754503@manning>, hassink@cs.UAlberta.CA (Hassink Brian John) writes:
> Anybody out there have some sample C-code for
> doing fast fourier tranforms? 
> 
> Code that does it iteratively would be preferable,
> but recursive would be fine too.
> 
> If there is no sample code, could somebody direct
> me to a good text?
	
	Try 'Numerical Recipes in C' pub. Cambridge University Press
	The FFT routine in the book is generic.  If you want a
	more advanced routine you'll have to do some more searching.
	
> 
> Thanks in advance.
> Brian
> 
> hassink@cs.ualberta.ca
Fred Heitkamp,  ** Not an organization.  My opinions only **
From: fgd3@nifty.UUCP (Fabbian G. Dufoe, III)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Defect: SAS/C "se" (screen editor)
Distribution: world
Date: 11 Oct 92 00:04:56 EDT
Organization: Fabbian G. Dufoe, III

In article <107320004@hpfcso.FC.HP.COM> aoe@hpfcso.FC.HP.COM (Alexander Elkins) writes:
>There is a defect in SAS/C "se" (screen editor).  To see the defect turn
>on the auto-indent feature and turn off expand tabs to spaces.  Then type
>in exactly the following text test case, substituting keystrokes for <return>,
><tab>, and <backspace>:
>0123456789<return><tab>abcd<return><backspace>
>
>What you see is
>0123456789
>        abcd
>       89
>       ^cursor is here
>

   It's not clear why you think this is defective behavior.  The cursor was
positioned at the beginning of the text on the previous line, less one space
for the backspace.  You could argue that the backspace should cancel the
<TAB> character.  It that what you think the program should do?

--Fabbian G. Dufoe, III
   350 Ling-A-Mor Terrace South   | GEnie:    F.DUFOE3
   St. Petersburg, Florida  33705 | internet: fgd3%nifty@tct.com
   813-823-2350                   | uucp:     ...tct!deep6!nifty!fgd3

Newsgroups: comp.sys.amiga.programmer