HDTenEightyP/NetNews huggingface dataset:
From: parkhugj@NeXTwork.Rose-Hulman.Edu (Gregory J Parkhurst)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Truly odd stack overflow situation.
Date: 13 Dec 1992 10:47:48 GMT
Organization: Computer Science Department at Rose-Hulman
Reply-To: parkhugj@NeXTwork.Rose-Hulman.Edu (Gregory J Parkhurst)
NNTP-Posting-Host: purple.nextwork.rose-hulman.edu

I'm posting this for a friend.  (GJP)

In article <9212100328.AA00556@csugrad.cs.vt.edu> jaker@csugrad.cs.vt.edu (Jake  
Rose) writes:
 
>  I'm working on a screen blanker commodity, and I'm having the most bizarre
>stack overflow error I've ever seen.  If I run the program from the Workbench
>or from the cli, it runs fine (no enforcer hits, either, so nyah! :) ).

>However, if I place it in the WBStartup drawer it causes a stack overflow when
>it attempts to blank the screen.  I've tracked down the point of overflow to
>a single function call, which passes a pointer and three longs.  This is
>obviously no major stack operation, so I upped the stack size for the program
>(using Info) just to see what would happen.  Surprizingly, even at twice the
>stack space, there's no change in its behavior.

>Here's the line that brings it down (It *is* on this line, not in the function
>it calls - don't you just love cut & paste (TERM 2.4!)):

>         if (!(Data=BuildData(Screen,Data1,Data2,Data3,Data4)))

     I was also writing a screen-blanker Commodity (seems like everybody is  
now!) and ran into the same problem.  The problem is with the stack checker.
When you are in this routine that calls BuildData(), your code is running as a
part of another task or process.  Therefore, you need to inform the compiler of  
this fact by using the __interrupt keyword on *any* function called in an  
interrupt or call-back type situation (where the code in question does not use  
the same stack as the main program).  You probably put the one for the routine  
that initially gets called, but not for BuildData().
     Another solution is to turn off stack checking altogether.  I prefer to  
keep the __interrupt keywords in in case I or someone else turns the stack  
checking on and then runs into the problem again.

Craig M. Buchek

Xref: sparky comp.sys.amiga.programmer:17311 comp.sys.amiga.hardware:21429
From: amipb@amipb.gna.org (Philippe Berard)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
Subject: Re: Attn Commodore: You are making a Big Mistake (Hardware
Date: 10 Dec 92 14:35:30 GMT
Organization: IWANIMA
X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith

In article <70436@cup.portal.com> TomK@cup.portal.com (Tom R Krotchko) writes:
>
> Ferinstance:
>
> Monkey Island 2: Doesn't Work
> Anything Accolade: Doesn't Work
> Superbase 4: Doesn't Work.
>
> Yet, Legends of Valour, a fast scrolling game does work. And doesn't
> blow away the OS.

    You miss a serious point here : most of the games break on the 4000
    because of the instruction/data cache. Turn it off, and 80-90% or
    your games will work again.

                                   -- Philippe

.----------------------------------------------------------------------------.
|  Philippe Berard  (French Amiga User)       |                              |
|  "They hold a cup of wisdom,                | UseNet : amipb@amipb.gna.org |
|   But there is nothing within" (Kate Bush). |                              |
`----------------------------------------------------------------------------'
Newsgroups: comp.sys.amiga.programmer
From: mctaylor@mta.ca ("Michael C. Taylor")
Subject: Are 2.1 Includes and AutoDocs avail from CATS?
Reply-To: mctaylor@mta.ca
Organization: Mount Allison U, Sackville, N.B. Canada 
Date: Thu, 17 Dec 1992 19:31:50 GMT

Since Commodore announced the offical release of WB2.1 update kit for 
all amigas (A1000, umm..:) I was wondering if the 2.1 includes are now 
availible to 'mere mortals' now. Also the P/N and price would be a nice 
touch if known. Thanks,
----------
Michael C. Taylor  Internet: MCTaylor@MtA.ca  phone: (506) 364-9819
Box M-14 Mount Allison University, Sackville, NB, E0A 3C0, Canada
Amiga 3000/25MHZ/100MB/5MB/KS 2.04 ROM/WB 2.05  A1960/A3070/A225/A2065
Exec - What an OS was meant to be.  MS-DOS - what your 64 should of used. :-)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
From: iank@microsoft.com (Ian Kennedy)
Subject: Re: Attn Commodore: You are making a Big Mistake (Hardware
Date: 16 Dec 92 19:38:26 GMT
Organization: Microsoft Corporation

In article <1992Dec16.012049.4783@kth.se> tomasa@dront.nada.kth.se (Tomas Arvidsson) writes:
>In <1992Dec15.170840.60807@qut.edu.au> podesta@qut.edu.au (Department of Computing Science, QUT) writes:
>>Does anybody know what the lowest end MMU AGA Amiga will be and when??
>
>All A3000's have a MMU and they've been available for quite some time. Before 
>that you had the A2630 accelerator (in the A2500) which also had a MMU.

Is it just me or doesn't anybody bother to read posts completly anymore?
He was looking for an AGA machine. The A3000 doesn't have the AGA chipset.
-- 
|------------------------------------------------------------------|
|Currently Amigaless soon to   | Eagle Talon TSI AWD/ABS/Turbo     |
|own A1200/100MB               | Iank@Microsoft.com                |
|------------------------------------------------------------------|
Newsgroups: comp.sys.amiga.programmer
From: boily@perseus.phy.ulaval.ca (Edouard Boily)
Subject: Re: Calling other Canadian developers...
Organization: Universite Laval, Ste-Foy, Qc, Canada
Distribution: can
Date: Fri, 11 Dec 1992 23:47:55 GMT

In article <Bz3qpp.3H9@undergrad.math.waterloo.edu> pejanes@undergrad.math.waterloo.edu (Peter Janes) writes:
... [stuff deleted]
>How have you found the developer program so far?  To tell the truth, I'm not
>very happy; I'd hoped to be a _little_ ahead of the game, OS-wise and
>hardware-wise.  As it is, I'm running 2.04 on a 68000 A2000HD.  From the
>application information, I understood that as a developer, I'd be able to
>purchase hardware at a reduced price (tell me that a 25MHz A2630 costs
>>Can$1500 for a non-developer).
>
>Please reply via e-mail.  If my situation is an anomaly, I'd like to get
>things fixed ASAP.
>Peter Janes                       // | "Now, here's a song that answers the

I have about the same feeling about developper's support from C=
Canada.  It might be because they are overloaded and do not have
enough human resource.  Anyway, I think there is a serious problem
with C= dev. supp. here in Canada.

 - Edouard
.---------------------------------------------------------.
|                   boily@phy.ulaval.ca                   |
|---------------------------------------------------------|
| Edouard Boily  | Projects: AmiGraph, AmigIRAF      ///  |
| Physic's Dept. | Interests: Astronomy, Comp. Sciences   |
| Laval Univ.    | Work: On my Ph. D.          \\\ ///    |
| Quebec, CANADA | Citation: "Not yet!" - Me    \\XX/     |
`---------------------------------------------------------'
From: chucks@pnet51.orb.mn.org (Erik Funkenbusch)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: App(Icon|Window) and Style Guide.
Date: 14 Dec 92 03:45:05 GMT
Organization: People-Net [pnet51], Minneapolis, MN.

heinz@edohwg.adsp.sub.org (Heinz Wrobel) writes:
>In article <8765@orbit.cts.com> chucks@pnet51.orb.mn.org (Erik Funkenbusch) writes:
>>Why doesn't the style guide define visual feedback for Appicons and
>>Appwindows?  How do you know they are there?  How do you distinguish them from
>>normal windows and normal icons?
>
>You shouldn't. ;-) They should behave like any other WB window/icon. That's
>the idea.

But it doesn't.  AppWindows and AppIcons have features that normal windows and
icons don't.  As such, there is no way to know these features exhist without
reading the documentation.

.-----------------------------------------------------------------------------.
| UUCP: {crash tcnet petrus quest}!orbit!pnet51!chucks | Amiga, IBM, and any  |
| ARPA: crash!orbit!pnet51!chucks@nosc.mil             | system you let me    |
| INET: chucks@pnet51.orb.mn.org                       | get my grubby mind   |
|------------------------------------------------------| into.                |
| Programmer at large, employment options welcome, inquire within.            |
Xref: sparky comp.sys.amiga.programmer:17267 comp.sys.amiga.hardware:21367
From: bn@mndcrme.uoknor.edu (Bo Najdrovsky)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
Subject: Re: Attn Commodore: You are making a Big Mistake (Hardware
Date: 10 Dec 92 19:19:54 GMT
Article-I.D.: mndcrme.bn.01fe
Organization: Operation Mindcrime
X-Newsreader: TIN [version 1.1 PL6]

-~=Zaphod=~- (csg019@cch.coventry.ac.uk) wrote:
:
: Eurodemo version.
: Boot it up on an A500 with 1 meg ram (you know, the one that a few
  ^^^^
: million people own, no, not the big one that a few thousand people
: have.)

and there is the problem. The multitasking version could be loaded in the
background as you typed your message, and you could be actually looking at
the game on another screen once it was loaded.	I am convinced that fast
scrolling games CAN be written without banging on the hardware in 100%
assembly. The game that proved this for me by a game on fish disk 336
called CAR. It is a smooth scrolling game, written in C if I remember
correctly. It ran fast back when I had my 500 and I'm fairly certain that
it would work on my 3000 if I was to d/l it again.

--
---------------------------------------------------------------------------
|  Bo Najdrovsky  bn@mndcrme.uoknor.edu bn@okcforum.uoknor.edu|    //	  |
|							      |   //	  |
|      "I remember now, I remember how it started..."         | \X/ AMIGA |
---------------------------------------------------------------------------
Newsgroups: comp.sys.amiga.programmer
From: peraue@cs.vu.nl (Paul-Erik Raue)
Subject: Re: Does opening libraries require a fixed varname?
Organization: Digital Intelligence
X-Newsreader: TIN [version 1.1 PL8]
Date: Thu, 17 Dec 1992 08:48:39 GMT

Sam Hulick (shulick@navajo.ucs.indiana.edu) wrote:

: If I wanted, for instance, to open intuition.library, does the line
: *HAVE* to be:

: IntuitionBase = OpenLibr.......

: Can it be something like "IBase = OpenLibrary(.." or "blech = Open..."
: In other words, does it matter what you call the variable?
: GadToolsBase, ExecBase, GfxBase, etc.

It depends on what language you program in, but seeing as your example is
in C (or a very similar language), the answer is a qualified yes.

The link libraries in C which contain the stubs to call the library functions
are defined using the variable IntuitionBase for intuition.library calls
and GfxBase for graphics.library calls and so on, and if you look in the
pragmas for the library calls you should see that they too use these variable
names.

It would be possible to use the variable IBase instead of IntuitionBase, but
that would probably include re-writing all stubs to functions. If you do
want to change the name I suggest you use:

#define IBase IntuitionBase

which will let you write IBase in your program and the preprocessor expands
this to IntuitionBase.

: -- 
:     // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
:    // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
: \\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
:  \/                     / taxi."  --George Bernard Shaw

Good luck,
	Paul-Erik Raue (peraue@cs.vu.nl)
-- 
Slang is language that takes off its coat, spits on its hands, and goes
to work.
Newsgroups: comp.sys.amiga.programmer
From: dnavas@oracle.uucp (David Navas)
Subject: Re: Bug in SAS/C V6.1?
Organization: Oracle Corporation, Redwood Shores CA
Distribution: comp
Date: Tue, 15 Dec 1992 00:35:53 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.

In article <Bz3nvr.82D@unx.sas.com> jamie@cdevil.unx.sas.com (James Cooper) writes:
>>struct MyStruct default_mystruct = {
>>       ~0
>>};
>>-----------------------------------------------------------
>>SAS/C gives me a warning in a line containg ~0, saying something
>>like that I can`t init unsigned short to -1. Okey, I understand that
>>it ~0 means the same as -1 but if I have wanted to use signed numbers
>>I would have specified it as -1.

>This is just the compiler trying to keep you out of trouble.  :-)

I'd like to go on record as saying that this sucks :)

Really, ~0 is NOT the same thing as -1.  Not -all- computers in existance
are two's complement, you know -- and the symbols mean something different
too.  Had I meant -1, I'd say -1, had I mean ~0, I'll say ~0.  Having to
cast ~0 back to an unsigned state is, well, icky....

Would you at least be kind enough to make ~0x0 be unsigned?

[I don't like this behaviour..mumble..mumble..mumble..I really don't like it]

Alternatively, if it isn't a separate warning from the "unsigned junk = -1"
warning, make it so, and then I'll shut this warning off.

>Since you are sure you want to do this, just add a type-cast to tell the
>compiler you really meant it, and it will not warn you anymore.

Key concept -- C isn't supposed to look like Cobol. ;)  Thank you.  [Grant me
a good natured exaggeration here.]
Next you'll be telling me to put "I_MEAN_IT_REALLY  +*@ I_KID_YOU_NOT" in front
of every semicolon ;(

Repeat mumbling....

David C. Navas						dnavas@oracle.com
Working for, but not speaking on behalf of, Oracle Corp.
From: alexm@aisb.ed.ac.uk
Newsgroups: comp.sys.amiga.programmer
Subject: Gravity Force (?) Conversion.
Date: 13 Dec 92 19:47:18 GMT
Reply-To: alexm@aisb.ed.ac.uk ()
Organization: Dept AI, Edinburgh University, Scotland

One of you guys wrote of a favourite game (Gravity Force (?) I think.
I seriously doubt it cant be knocked out on a A1200.
What exactly is it??

Alex McLean.
Newsgroups: comp.sys.amiga.programmer
From: solorzan@fwi.uva.nl (Valik Solorzano (I88))
Subject: SASC libraries to GCC libraries HELP
Keywords: library
Organization: FWI, University of Amsterdam
Date: Wed, 16 Dec 1992 15:31:54 GMT

Hallo everyone,
I'm wondering if there is any utility which translates gcc libraries into sasc
libraries and also the other way arround.

For any answers you can contact me at:

 solorzan@carol.fwi.uva.nl

  Thanks in advance
From: tlbechar@thunder.LakeheadU.Ca (Timothy Lee Bechard)
Newsgroups: comp.sys.amiga.programmer
Subject: Pascal
	I am looking for a copy of PASCAL for the Amiga also.  If anyone knows
Date: 15 Dec 1992 19:41:24 GMT
Distribution: comp
Organization: Lakehead University; Thunder Bay, Ont

any information you can give me...

	Thanx You.


Newsgroups: comp.sys.amiga.programmer
From: walker@twix.unx.sas.com (Doug Walker)
Subject: Re: SAS6.1 users: please read
Originator: walker@twix.unx.sas.com
Date: Fri, 11 Dec 1992 18:52:22 GMT
Organization: SAS Institute Inc.


In article <ByM64K.6z2@fc.hp.com>, koren@fc.hp.com (Steve Koren) writes:
|> Consider this code:
|> 
|> /***********************************************************************
|>  **   sc test1.c
|>  **   slink from lib:c.o test1.o to test1 lib lib:sc.lib
|>  ***********************************************************************/
|> 
|> # include <stdio.h>
|> # include <string.h>
|> 
|> main(int argc, char **argv) {
|>    char *str = "abc";
|>    int  num = 7;
|> 
|>    if ((strlen(str) - num) > 0) {
|>       printf("Ooops!\n");
|>    }
|> 
|>    exit(0);
|> }
|> 
|> Even though one would expect
|>    if ((strlen(str) - num) > 0) {
|> 
|> in cases where strlen(str)=3 and num=7 to fail (ie, 3-7 is -4,
|> and -4 is NOT greater than 0 last time I checked), the if
|> statement passes instead.

This is not a bug, this is correct behavior.  It's a confusing 
point in the ANSI C standard that I've explained here a couple of
times before, in slightly different terms.

strlen() is defined by the standard as returning a value of type
"size_t", which must be an unsigned integer value.  In our case,
it is "unsigned int".

The variable "num" is of type "int", of course, as is the constant
zero.  Therefore, the subtraction in the condition of the if 
statement is

   "unsigned int" - "int"

The ANSI expression rules state that the types of the expression
must be promoted to the "widest" type in the expression, or "int",
whichever is smaller.  i.e. in the above expression, the second
"int" gets converted to "unsigned int" and the result of the
expression is "unsigned int".

Since the result of the expression is unsigned, it is impossible
for the condition to be negative.  Thus, the subtraction results
in an underflow and the result is a large positive number.

|> I hope this helps someone else avoid the code problems I was
|> having.  I'm sure they'll fix this for 6.2.  SASC continues,
|> IMHO, to be the best development environment for the Amiga bar
|> none.
|> 
|>   - steve

Thanks for the compliment.  Unfortunately, we can't change this
without violating the ANSI (and now ISO) standard for C expressions.

-- 
  *****
=*|_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.

Newsgroups: comp.sys.amiga.programmer
From: tatulund@polaris.utu.fi (Tatu J. Lund)
Subject: vd0: and OS/3
Organization: University of Turku
X-Newsreader: Tin 1.1 PL5
Date: Sat, 12 Dec 92 19:37:26 GMT

Somebody asked about VD0:  it is on fish something, but it is allways 
invalidted in OS/3 so you cannot write on to it. If there is a fixed
version somewhere, I would apreciate the information, cause VD0: much 
better than RAD:

Other bug is PLT: v1.3. It tilts in OS/3. So if there is also a bug fix,
I would like to know.

Virus_Checker v6.19 has a nasty bug. It cannot read VCBrain when using
PowerPackerPatcher.
 
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
From: robm@zaphod.ncsa.uiuc.edu (Rob McCool)
Subject: Re: CISC and RISC
X-Newsreader: Tin 1.1 PL5
Organization: The Organization of Disorganization
Date: Fri, 18 Dec 1992 17:22:26 GMT

Richard Jones (vac133m@nella8.cc.monash.edu.au) wrote:
:   Yes, CISC _is_ easier to program in most cases because the instructions are
: generalized. As for memory writes.. if your chip is doing this then I suggest
: you change manufacturers..

This is hardware interlocking, and there are different approaches used to
  the problem. The problem is memory latency; we all know memory is slow
  and it takes 2 cycles to execute a load. The problem is when someone does
  a load, and then in the next instruction does something to the just-loaded
  data. 

The SPARC has interlocking which will insert no-ops into the pipeline if 
  there is an instruction which attempts to reference data that is not there 
  yet. The MIPS decided to leave out hardware interlocking, and depend on the 
  software to do proper instruction scheduling to gain speed, and so if
  you reference data that has not been loaded yet you will get garbage.

--
Rob McCool, NCSA STG System Administrator
robm@ncsa.uiuc.edu r-mccool@uiuc.edu robm@imsa.edu
It was working ten minutes ago, I swear...
Xref: sparky comp.sys.amiga.programmer:17363 comp.sys.amiga.hardware:21502
From: TomK@cup.portal.com (Tom R Krotchko)
Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
Subject: Re: Attn Commodore: You are making a Big Mistake (Hardware
Date: Mon, 14 Dec 92 17:17:13 PST
Organization: The Portal System (TM)
  <70436@cup.portal.com> <amipb.04wr@amipb.gna.org>

>> Yet, Legends of Valour, a fast scrolling game does work. And doesn't
>> blow away the OS.
>
>    You miss a serious point here : most of the games break on the 4000
>    because of the instruction/data cache. Turn it off, and 80-90% or
>    your games will work again.

No, in fact the cache only helped one game, and that game was SimCity.
The copy protection used self-modifying code, and the caches seemed to
put a kink in that scheme.

TomK@cup.portal.com
Tom Krotchko
From: Lee_Robert_Willis@cup.portal.com
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Multiple Windows
Date: Tue, 15 Dec 92 19:34:39 PST
Organization: The Portal System (TM)
Distribution: world

Erik Funkenbush writes:

>Is there an easier way of telling which Window a Window pointer is pointing
>without resorting to the UserData field?

OK, I'll play straight man.  Why not just use the Window.UserData field?
That's what I use.  Works great.

Lee      Lee_Robert_Willis@cup.portal.com
Newsgroups: comp.sys.amiga.programmer
From: vjh21@cas.org (Vince Herried ext 2877)
Subject: Re: Sorry, can't learn from includes alone
Organization: CAS
Date: Wed, 16 Dec 1992 23:27:39 GMT

I hope the person that posted the original message will not
be offended by this message but...

I don't understand how anyone can expect to use much less program
a computer without owning a set of manuals.  The manuals from
the manufacturer are always considered to be the primary source
for information and other manuals from secondary sources should
be considered just that, SECONDARY.  If the manufacture's manuals
leave things out or are possibly confusing then you should refer
the the 2ndary manual in an attempt to clarify the subject but
in all cases the manufacture's manual is to be considered
the authority (this of course does not mean that there are not
mistakes or ommisions, intentional or otherwise).

My job, as I see it, is often to help my felow employees 
understand IBM mainframe manuals and how our big computer
operating system works.  I would not think of trying without
consulting the correct manual that is applicable to the
subject at hand.

My favorite analogy is that even if you are the richest person
in the world, you cannot drop several millions down and buy
yourself a Lear Jet airplane, then jump in and take off without
learning a great deal about the plane and the process of flying.

To program your Amiga effectivly you must understand programming
and then understand at least some of the operating system.
The less you understand about either, the poorer will be your
end result.  If you have a good understanding of both and understand
the task you are trying to solve, then your result will be
"wonderful".

Now of course if you are truely rich, you can hire someone to
learn for you, in which case, all bets are off.

I'm reminded of the tale of a royal prince from (fill in your favorite country)
that had a royal whipping boy to take the prince's punishment when he 
did poorly in his lessons.


My parting shot, buy the books, buy the autodocs, buy as many 2nd party 
books as you can find, consider them the entry fee to the
programming task.  Stop whining.  If the books are not available to you
then strugle mightly to make them available.  That $2000 A3000 machine (Lear Jet)
deserves better.

Whew, I feel better already  :-)
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
				 |     Vincent Herried  (614) 447-3600 x 2877
				 |     Chemical Abstracts Service
 _____________________           |     P.O. Box 3012
(_)________________   \          |     Columbus, OH 43210-0012
  ________________|\   \         |
 (_)______________\_\   \        |     Current thought: People who cannot be
   ______________________\       |     understood are geniuses, so management
  (_)____________________|       |     assigns them the toughest projects.
				 |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-