Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!amdahl!kevin From: kevin@uts.amdahl.com (Kevin Clague) Newsgroups: comp.sys.amiga Subject: Re: Sources needed Message-ID: <055E02KL3eqd01@amdahl.uts.amdahl.com> Date: 13 Jul 89 15:46:35 GMT References: <8907122057.AA08021@jade.berkeley.edu> Reply-To: kevin@amdahl.uts.amdahl.com (Kevin Clague) Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 78 In article <8907122057.AA08021@jade.berkeley.edu> MCARTSHA@UREGINA1.BITNET (Shan Mcarthur) writes: >Hello. I am in desperate need of some C sources that I can use as examples >to aid in my learning C on the Amy. I already know C , but this operating >system is different than what I am used to. I have a few books, but they >either don't have examples or are FAR too simple and have no real applications. >I would like to find some examples on gadgets, menus, m/tasking, dos operations >, ect. ect. > Also, here in Regina, we can't get Robert Peck's PROGRAMMERS GUIDE TO THE >AMIGA (Sybex). This is totally frustrating. I hear it is a good book. If Yes. It is a GOOD book. Too bad you can't get one. Have you looked at mail order places? > > I have RKM includes & Autodocs, Amiga Programmer's Handbook, and Inside >the Amiga with C and have found all of them to be either way too simple and >not informative, or way too informative and no examples of how things >operate together. IE: none of them show me how to non-busy wait for >a number of different signals. I would like to know how to accept input >from a string gadget at the strike of a return key. If you want to Wait() for many signals, just or the Signal's SigMasks together and pass them to wait. Example: aSigMask = 1 << aSigBit; bSigMask = 1 << bSigBit; cSigMask = 1 << cSigBit; allMask = aSigMask | bSigMask | cSigMask; gotSigMask = Wait(allMask); if (GotSigMask & aSigMask) service_aSig(); if (GotSigMask & bSigMask) service_bSig(); if (GotSigMask & cSigMask) service_cSig(); Nice and simple.... I extracted this from MandelVroom sources that were posted in comp.sources.amiga. There are about 400K of source there in a relativly full figured program. You might want to start with main.c which contains the main Wait() loop. > > i am totally frustrated at the lack of docs for this computer, but I hear >that Peck's book is what I really need. It is not that there is a lack of docs. It is that you lack access to docs. The Amiga docs have gotten a lot better especially due to the efforts of Rob Peck (a really nice guy.) Back when there were no docs, I used sources off the Fish disks. I gave the sources to MandelVroom away, so people like you could have working examples to many nice features available on the Amiga. MandelVroom spawns off tasks to do picture Mandelbrot and Julia picture generation, so you can look at the code for how to handle Multitasking. > >Again, I am just waiting to learn, but am short on some good examples. If you need help sorting through the MandelVroom sources, let me know and I'll help. Good luck! > >Shan Kevin -- UUCP: kevin@uts.amdahl.com or: {sun,decwrl,hplabs,pyramid,seismo,oliveb}!amdahl!kevin DDD: 408-737-5481 USPS: Amdahl Corp. M/S 249, 1250 E. Arques Av, Sunnyvale, CA 94086 [ Any thoughts or opinions which may or may not have been expressed ] [ herein are my own. They are not necessarily those of my employer. ]