Path: utzoo!mnetor!uunet!cbmvax!carolyn From: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: frustration, frustration.. Message-ID: <3009@cbmvax.UUCP> Date: 23 Dec 87 20:31:25 GMT References: <2166@crash.cts.com> <4794@well.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 35 >In article <2166@crash.cts.com> steelie@pro-charlotte.cts.com (Jim Howard) writes: >>Is there anyone out there that programs in assembly on the Amiga >>or am I just looking in the wrong places? There aren't a lot of assembler examples floating around. One good example is the AStartup.asm code (Lattice may call their's c.asm) which is the source for the startup code provided with Amiga and Lattice C compilers. AStartup.asm is also available on the 1.2 Native Developer Update disks from CATS, and I think Fish may also have picked up the startups and startup.doc and put them on a Fish disk. The startup code shows, among other things, how to - find ExecBase - call an Exec function (OpenLibrary, etc) - Use returned library base to call another library's function - How to set up and reference null terminated strings This is enough to get you started. For more advanced assembler examples, check out some of the device and handler examples on the Fish disks. At least some of these are in assembler. And, BTW, you don't have to do all of the startup work yourself. I often link assembler programs with the same AStartup.asm and let it do all the CLI/WB startup stuff for me. If I need the args, I can get them off the stack where the startup puts them for C. (Note - devices, drivers, handlers must not be linked with the startup code. Startup code is for programs started from CLI or WB) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CATS >>Commodore Amiga Technical Support<< UUCP ...{allegra,ihnp4,rutgers}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=