HDTenEightyP/NetNews huggingface dataset:
From: jesup@cbmvax.commodore.com (Randell Jesup)
Newsgroups: comp.sys.amiga.programmer
Subject: A4000 disk performance solution
Date: 14 Oct 92 17:50:17 GMT
Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
Organization: Commodore, West Chester, PA


	Many people have been commenting on low disk performance on production
A4000's.   The solution is simple: reformat and restore.  The partitions are
formatted as OFS because of a glitch in the production sequence (which is being
corrected).
	
	For sys:, it should be easy to copy it to work:sys ("copy sys: work:sys
all clone"), reformat the boot partition, and copy the files back.  Work: can
be done in a similar way, if you haven't installed too much on it.  If you
have, you'll have to backup/restore, or re-install packages from floppy/etc.
The dostypes in the RDB are correct (DOS\3), so a "format drive <blah:> name
<foo> quick" should be fine.
		
	There are some other minor glitches in the master drive being
duplicated that you may wish to correct, such as no languages being installed
by default, and no keymaps.  These can be easily installed from floppy if you
need them.  The installation disk is correct and will build the partitions and
files correctly.

	Please note the disclaimer in my .sig.  This should bring disk
performance levels WAY up.

-- 
To be or not to be = 0xff
-
Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
Disclaimer: Nothing I say is anything other than my personal opinion.
From: fillg1@uni-paderborn.de (Michael Illgner)
Newsgroups: comp.sys.amiga.programmer
Subject: How to use HAM8 in own programs ?
Date: 16 Oct 92 11:49:34 GMT
Article-I.D.: uni-pade.1992Oct16.114934.21779
Organization: Uni-GH Paderborn

Hi folks, how can I use the AA-Mode HAM* in my own programs ?
I unterstand the working of the normal, old HAM Mode, but
what are the differences to HAM8 ?

BTW. Since the 3.0 includes are not available for normals like me yet,
it is possible to program the new modes with 2.x includes ?


						Michael


-- 
Michael Illgner 	fillg1@uni-paderborn.de          Tel. 
Theodorstrasse 27       Warburger Strasse 100		 Buero  05251/60-2331
4790 Paderborn		Theoretische Physik		 Privat 05251/26488
Germany                 Buero : N3.323
From: kzyx@vax5.cit.cornell.edu
Newsgroups: comp.sys.amiga.programmer
Subject: Arithmetic exception and compiler/OS
Date: 12 Oct 92 16:18:59 EDT
Distribution: comp
Organization: Cornell University

Howdy,

Is there a way of catching arithmetic exception?

Consider the simple program below:
#include<stdio.h>
main()
{
int i,k;
double d;
i=5;
for(i=5;i>-1;i--)
        {
        k=1/i;
        d=1.0/(double)i;
/*
        printf(" 1/i=%d\n 1/d=%lf\n",k,d);
*/
        }
}

In unix-cc the division by zero is announced. When compiled
with aztec5.2, the division by zero is caught only if printf
is uncommented.

Any suggestions.
Edval
esantos@ee.cornell.edu

Newsgroups: comp.sys.amiga.programmer
From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
Subject: Re: Problem with the following Code
Organization: Jet Propulsion Laboratory
Date: Thu, 15 Oct 1992 23:11:55 GMT

In article <monster.05e4@mbear.apana.org.au> monster@mbear.apana.org.au (Martin Ozolins) writes:
>
>What is supposed to happen is this.
>
>The code waits until either 10 seconds has passed or the user presses one of the 
>Gadgets.
>If the user presses QUIT we close up shop and leave, else we do what we want and
>then wait again.
>
>Everthing works OK until the user presses a Gadget, then what happens is the code
>acts as if a timersig signal is received instantaneously thus the code uses up
>all the available CPU time until QUIT is pressed.
>
>If I do a wait on just gadsig everything is OK.
>
>I am using SAS/C v5.10.
>
> while ( ! endit )    /* lets loop */
> {                    
>    if ( !( CheckIO(( struct TimerIO *)TimerIO )))
>    {
>       AbortIO(( struct TimerIO * )TimerIO );
>       WaitIO(( struct TimerIO *)TimerIO );
>    }
>                        
>    timersig = ( 1L << timerp->mp_SigBit );
>    gadsig   = ( 1L << MSMScrWnd->UserPort->mp_SigBit );
>                                           
>    TimerIO->tr_node.io_Command = TR_ADDREQUEST;
>    TimerIO->tr_time.tv_secs = 10; /* wait 10 seconds */
>    TimerIO->tr_time.tv_micro = 0;
>    SendIO(( struct IORequest *) TimerIO);
>
>                        
>    signal   = Wait( timersig | gadsig ); 
>                                                                                                
>    if ( signal & gadsig )                        
>    {   
>       ( imsg = GT_GetIMsg( MSMScrWnd->UserPort ));                        
>       g = (struct Gadget *)imsg->IAddress;
>        
>       imsgClass = imsg->Class;
>       imsgCode  = imsg->Code;
>           
>       GT_ReplyIMsg( imsg );

	When you reply a message - you're really telling the sender of it
that you're done with the message. It's not safe to dereference the mes-
sage after this point, because the sender may have reused the memory for
something else or given it back to the O.S. in the interim. You should 
reply the message only when you're really done with it.


>            
>       switch ( imsgClass )
>       {                                    
>          case  IDCMP_GADGETDOWN: 
>          case  IDCMP_GADGETUP:
>          {
>             switch ( g->GadgetID)
>             {
>                case  GD_Quit:
			.
			.
			.

>Martin Ozolins :Internet   monster@mbear.apana.org.au
>Victoria       :FIDO       3:633/359.6
>Australia      :AMIGANET   41:300/359.6
>               :TRINET     42:8699/8.6




Newsgroups: comp.sys.amiga.programmer
From: foregone@stein.u.washington.edu (Ah so Grasshopper!)
Subject: I need AMOS help
Organization: University of Washington, Seattle
Date: Thu, 8 Oct 1992 04:44:18 GMT

	after I compile a program for the Workbench and double-click on
it, and then it crashes from an out-of-memory error when the first screen
is opened. Does anybody have some general techniques to lower memory
requirements? My program currently needs 520K to run (which is another
question of mine: I have 926K available! Why would I get a memory error?)
From: mctaylor@mta.ca (Michael C. Taylor)
Newsgroups: comp.sys.amiga.programmer
Subject: Looking for Oberon
Date: 13 Oct 92 18:41:40 GMT
Reply-To: mctaylor@mta.ca
Organization: Mount Allison U, Sackville, N.B. Canada

I looked at the Oberon on whichever FF disk, I started to become interested
in what makes it different, but the docs were mainly not in English and the
ones which were I found errorous and a real pain in the butt. So I want to
know if there is a better release of (well better English docs) of Oberon
availible?
Newsgroups: comp.sys.amiga.programmer
From: walker@twix.unx.sas.com (Doug Walker)
Subject: Re: SAS/6.0 Bugs...
Originator: walker@twix.unx.sas.com
Date: Fri, 9 Oct 1992 13:22:57 GMT
Organization: SAS Institute Inc.


In article <107320003@hpfcso.FC.HP.COM>, aoe@hpfcso.FC.HP.COM (Alexander Elkins) writes:
|> In comp.sys.amiga.programmer, walker@twix.unx.sas.com (Doug Walker) writes:
|> > Use the EMITS facility as described in the manual (under "contacting
|> > technical support") to report bugs via email.
|> 
|> I tried that.  Here's the reply I got:

|> phone number for Customer Service is (919) 677-8003.

Well, I suggest calling it!  They should be able to fix up your
EMITS access...

|>  - Alexander Elkins [aoe@hpfiaoe.fc.hp.com]

-- 
  *****
=*|_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: kehlet@kehlet.adsp.sub.org (Jesper Kehlet)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: How to drop DTR
Date: 11 Oct 92 23:29:16 GMT
Organization: Compos Mentis Software Systems
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith

In article <OA92-910-201_14def98e@piraya.bad.se> Mark_Cassidy@f201.n910.z92.badnet.bad.se (Mark Cassidy) writes:
> In a message of < 5-Oct-92 03:04> Dan Griffin (2:230/1992) wrote:
> 
>  DG> I have been looking through the RKM: Devices manual and I do not see a
>  DG> way to drop DTR.  If someone would tell me how this is accomplished,
>  DG> or possibly point me in the right direction, I'd appreciate it. -- 
> 
> I've learned that the only way to accomplish this, is to CloseDevice() the
> serial.device completely for a period of time.

It is also possible to drop DTR by obtaining a lock on ciab.resource and
pulling the CIAB_DTR low for a minimum period of one second.  This way, you
won't have to do a timeconsuming CloseDevice()/OpenDevice() sequence.

But, if time doesn't matter, it doesn't matter...  :-)


>    ______________________
>   /                     /    E-mail: Mark_Cassidy@f201.n910.z92.badnet.bad.se
>  / Wize Productions DK /    FidoNet: 2:230/611.0
> /_____________________/    AmigaNet: 39:140/108.0                      |
>                                                                      --*--
>                                                                        |
> ---

-- 
  ----------------------------------------------------------------------
  \  Jesper Kehlet, Compos Mentis Software Systems -- A Kind Of Magic  /
   \    (uunet|pyramid|rutgers)!cbmvax!cbmehq!cbmden!kehlet!kehlet    /
    \----------------------------------------------------------------/
     \          To dare is to loose foothold a short while.         /
      \                Not to dare is to loose life.               /
       ------------------------------------------------------------
Newsgroups: comp.sys.amiga.programmer
From: mks@cbmvax.commodore.com (Michael Sinz)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: A4000 anim speed?
Date: 9 Oct 92 12:34:19 GMT
Reply-To: mks@cbmvax.commodore.com (Michael Sinz)
Organization: Commodore, West Chester, PA

jazz@netcom.com (David C. Navas) writes:
>[Note followup line]
>In article <35657@cbmvax.commodore.com> mks@cbmvax.commodore.com (Michael Sinz) writes:
>>Yes, the system calls in Release 3 that do double
>>buffering can do it basically the same speed in all
>>of the video modes.  Well over 2000fps...
>
>I've seen this number, but not the processor it goes along with.
>I somehow assume that this is an A4000 number (ie: '040), in which
>case, on an A500, this overhead is far too high.  Of course,
>the speed may not translate linearly across platforms because of
>the "split bus" architecture.  I think we'd all like numbers for:
>	a) 500/600
>	b) 3000
>	c) 4000
>
>Let me explain why I'm not impressed by this number.  I have, on my
>A3000, some AVL routines.  They are semaphored, -always-, when
>accessed.  My semaphore routines allocate semaphore nodes, they are
>not hardcoded into a structure like Exec semaphores are.  In addition,
>the binary nodes are -also- not hardcoded into the structures that
>are added into the binary tree, they too are allocated on the fly.
>For a 256 node tree, I get 3500 -pairs- of Add/Remove node calls per
>second.  On my A3000/25Mhz.  I'm not sure I understand why there's so
>much overhead on what is (in my incredibly naive belief) a rather simple
>matter of changing eight pointers in a copper list.  Any explanation of
>what else is happening in the system would be appreciated!
>
>On the otherhand, if this is the number for the A500, then I offer my
>congrats to you!

Notice that I said well over 2000fps.  Basically, I can say that
no matter which machine you have, you will not notice the display
double-buffering overhead compaired to your rendering/copying/etc.

Also, the 2000 number was not generated on a system with very fast
hardware.  And, since the copper list is in CHIP RAM, most of the time
is spent waiting for access to the RAM and not the actual code.
(Even on the low-end machines)

/----------------------------------------------------------------------\
|      /// Michael Sinz  -  Senior Amiga Systems Engineer              |
|     ///                   Operating System Development Group         |
|    ///   BIX:  msinz      UUNET:  mks@cbmvax.commodore.com           |
|\\\///    Programming is like sex:                                    |
| \XX/     One mistake and you have to support it for life.            |
\----------------------------------------------------------------------/
Newsgroups: comp.sys.amiga.programmer
From: Uwe.Illig@bbs.oit.unc.edu (Uwe Illig)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
Subject: How to boot from Kickstart in WB_2.x/Devs ?
Date: 12 Oct 92 10:32:33 GMT
Organization: Extended Bulletin Board Service


I installed a new Kickstart file in my WB_2.x:Devs drawer and thought that
my Amiga 3000 would use this file version of Kickstart instead of the ROMs,
because in the readme it was described this way.
But after a reboot I always get the ROM version. 
With SetCpu I can load the Kickstart file and it works, but I want the system
to load the kickstart version in the Devs drawer directly.

Do I have forgotten something?

Thanx,

     Uwe
(ILLIG@fritz.gsi.de)  or
(Uwe.Illig@bbs.oit.unc.edu)

--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  bbs.oit.unc.edu or 152.2.22.80
From: dlarson@cbmvax.commodore.com (Dale Larson - Product Assurance)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: HELP!!! - More on Multitasking, Library Base Pointers
Date: 15 Oct 92 14:02:31 GMT
Article-I.D.: cbmvax.35917
Reply-To: dlarson@cbmvax.commodore.com (Dale Larson - Product Assurance)
Organization: Commodore, Systems Assurance, Amiga Systems Group

In article <1992Oct14.104444.2489@brandonu.ca> brycerw@brandonu.ca writes:
>I define all my library bases in one module, and every other modules reference
>them via extern.  This is for the entire program, task code and everything.
>I also have exactly one routine to open the libraries, in the same module
>where they are declared.

You can't do this.  Your task code must have not have a global library base in
order for it to be different from the parent's library base.  If you are using
pragmas to call ROM functions and aren't pulling in any amiga.lib functions
which need your library bases (i.e., varargs stub functions), then at the start
of your task code, use #define to change the library bases.  For example:

__saveds void taskcode(void)
{
struct IntuitionBase *localIB;
#define IntuitionBase localIB

	IntuitionBase = OpenLibrary()
	...
}

>What am I doing wrong?  What do I do to fix this - to have storage of library 
>base pointers at different addresses in memory for each task/process?

Exactly.  

Note that, in general with low-level programming (such as creating tasks,
libraries or cli commands, etc.), life is much easier and programs are much
more efficient if global variables are avoided altogether.

-- 
Dale Larson, Software Engineer
dlarson@commodore.com
From: johnv@tower.actrix.gen.nz (John Veldthuis)
Newsgroups: comp.sys.amiga.programmer
Subject: ColdReboot()
Distribution: World
Date: 8 Oct 92 17:13:53 +1200
Organization: Amiga Virus Extermination Services, TAUG

I am trying to get around a problem with my drive not spinning up in time
and botting off the wrong harddisk. I wrote a small program below to fix
the problem. The source is

  movea.l   (4).w,a6
  jsr       (_LVOColdReboot,a6)
  rts

The script to go with it would be
if not exists dh0:
coldreboot
endif

This does not work. The ColdReboot() shuts downeverything but the machine
will not come up again and you have to give it the 3 finger salute
ctrl-amiga-amiga to reboot. I have an A2500/20 with WB2.04 in Rom.

Can someone tell me why ColdReboot() does not do what it is suppose to?
---
*** John Veldthuis, Taranaki Amiga Users Group, johnv@tower.actrix.gen.nz ***
Newsgroups: comp.sys.amiga.programmer
From: walker@twix.unx.sas.com (Doug Walker)
Subject: Re: SAS/6.0 Compiling from Editor HELP!!!!!
Originator: walker@twix.unx.sas.com
Date: Wed, 7 Oct 1992 12:48:26 GMT
Organization: SAS Institute Inc.


In article <18683.2ad20120@ecs.umass.edu>, bell@ecs.umass.edu writes:
|>     I can't compile from the editor, and I'm upset.  I have the above done
|> correctly.  I had csh5.19 on my system but have completely wiped it off and I
|> still can't compile from the editor.  All that happens is the same as described
|> above -- Compiling... and then nothing and I'm back were I started.

This looks to be more complicated than I can deal with over the 
net.  Technical support can probably help you with this if you can
give them some additional information - I don't think there is 
enough to go on here.  They will want to know the version of the
OS you are running, how much memory your machine has, what other
software is running, etc.  See your manual under "contacting
technical support" for a good description of the kind of things
they will need to know.

|>     Any and all help is appreciated.  I have a program to write and if I don't
|> like doing things from the shell although that seems to work - although in a 
|> sample compilation it seems that the executable was much larger than the one
|> from V5.10b.

Try the workbench interface, especially if you are running under 2.0.

One reason your program might get bigger - were you replacing main with _main?
If so, you need to rename it __main (two underscores) to avoid linking in lots
of other stuff.  Use the MAP <mapfile> HX option on the linker or the 
MAP MAPHUNK MAPXREF compiler options to generate a map file and see what is 
getting pulled in from the libraries that didn't get pulled in in version 5.

|>     Thanks for the help!!!!

You're welcome.  Please do contact tech support for the editor problem.

-- 
  *****
=*|_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: efp90@ecs.soton.ac.uk (Pritchard EF)
Newsgroups: comp.sys.amiga.programmer
Subject: Lexx/Yacc source for Lint?
Date: 8 Oct 92 15:10:59 GMT

Can anyone tell me where I can get Lexx and Yacc source for a Lint
type utility? What I really need is something which can parse C source
programs, to which I can add my own extensions (symbol tables etc.).
I'd write one myself from the EBNF but why reinvent the wheel???

Cheers!!

----

E.F.Pritchard                       ///
efp90@uk.ac.soton.ecs           \\\/// Amiga     I seriously need something
University of Southampton        \xx/            to go on this side of my
England.                                         signature, any ideas?
From: jheadley@dvorak.amd.com (James Headley)
Newsgroups: comp.sys.amiga.programmer
Subject: Timer programming
Date: 8 Oct 92 17:34:34 GMT
Article-I.D.: dvorak.1992Oct8.173434.10318
Organization: Advanced Micro Devices, Inc.; Austin, Texas

Does anyone have any C-Source code that sets up and uses the timer?  I
am interested in doing some time critical work with the ports on my 
A3000-25 and am having trouble finding any examples.  

Thanks,
James H.

/---------------------------------\ /---------------------------------\
|"Alright, so it's impossible. How | There's a remote possibility that|
|  long will it take?",            |   these words are mine but, they |
|    -  Forbidden Planet           |   are definitly not my employers |
>----------------------------------+----------------------------------/
|    jheadley@dvorak.amd.com       |
\__________________________________/
Newsgroups: comp.sys.amiga.programmer
From: c164-as@po.berkeley.edu (Chuck Woo)
Subject: Re: AMOS Pro Demo available on
Organization: University of California, at Berkeley
Date: Sun, 11 Oct 1992 04:30:57 GMT

In article <1b3s8aINN3pl@usenet.INS.CWRU.Edu> aj639@cleveland.Freenet.Edu (Michael Cox) writes:
>I will put it on nic.funet.fi
>I can not stay connected to wuarchive long enough to put it there, so maybe
>someone will do it for me once it is cleared by amiga-adm@nic.funet.fi

no prob, Mike, I did it this morning!  :)

---------------------------------------------///
Chuck Woo      wchucky@ocf.berkeley.edu     ///
(bubba buh boo dee do buh boo dee do..) \\\///
-----------------------------------------\XX/
From: Chris_Lynn_Minshall@cup.portal.com
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Writing a postscript interpreter
Date: Wed, 14 Oct 92 19:35:29 PDT
Organization: The Portal System (TM)

Why re-invent the wheel.....An excellent postscript interpreter has been
available for the Amiga for several years.  Called "Post" it is up to 
version 1.7 and is implemented as a shared library.

Chris
From: coatta@cs.ubc.ca (Terry Coatta)
Newsgroups: comp.sys.amiga.programmer
Subject: ARexx and ExecIO
Date: 8 Oct 1992 17:56:52 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
Distribution: world
NNTP-Posting-Host: cascade.cs.ubc.ca

I am using ExecIO within an ARexx program to read the contents of
a file into a stem variable (using the STEM option to ExecIO).  The
ARexx manual states that strings may be up to 65,535 characters in
length, but I find that when I run this program ExecIO only seems
to be willing to read 512 characters into each elements of the
stem variable.  Is there a way in which I can force ExecIO to read
the maximal amount of data into each element of the stem variable?

-- 
Terry Coatta (coatta@cs.ubc.ca)
Dept. of Computer Science, UBC, Vancouver BC, Canada

`What I lack in intelligence, I more than compensate for with stupidity'
Newsgroups: comp.sys.amiga.programmer
From: jamie@cdevil.unx.sas.com (James Cooper)
Subject: Re: Looking for a CONSOLE-ONLY hotkey util..
Originator: jamie@cdevil.unx.sas.com
Date: Mon, 12 Oct 1992 14:50:10 GMT
Organization: SAS Institute Inc.


In article <9210101918.AA10996@csugrad.cs.vt.edu>, pmiller@csugrad.cs.vt.edu (Paul Miller) writes:
>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...

No way I know of to do this... but you could get WShell V2.0, and attach
Menus with standard MenuKey shortcuts to your consoles.  It works great!

-- 
---------------
Jim Cooper
(jamie@unx.sas.com)                             bix: jcooper

Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
and not necessarily those of my employer.
Newsgroups: comp.sys.amiga.programmer
From: waw5805@ultb.isc.rit.edu (W.A. Willis)
Subject: Re: HDMem vs GigaMem for virtual memory on Amigas?
Originator: waw5805@ultb
Organization: Rochester Institute of Technology
Date: Tue, 6 Oct 1992 22:32:13 GMT

Kinda off the topic here... but am I the only one who sees the GREAT
probability that one of these two programs will eventually become part
of AmigaDOS like ARexx did? (or is it wishfull thinking?)
From: Tony-Preston@cup.portal.com (ANTHONY FRANCIS PRESTON)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Help with this C code please. (console/serial)
Date: Sat, 10 Oct 92 10:22:03 PDT
Organization: The Portal System (TM)

One thing I see in the opening of the serial port is that your are
trying to use RAD_BOOGIE with the Parity options.  RAD_BOOGIE will
bypass certain checks in the interest of speed.  It should be ok,
but then you will not get parity.