Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!tandem!zorch!amiga0!mykes From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz) Newsgroups: comp.sys.amiga.programmer Subject: Re: Copper list help requested Message-ID: Date: 9 May 91 17:29:58 GMT References: <1991May7.034044.26814@nntp-server.caltech.edu> <1991May7.154923.20565@cs.umu.se> Organization: Amiga makes it possible Lines: 38 In article <1991May7.154923.20565@cs.umu.se> dvljrt@cs.umu.se (Joakim Rosqvist) writes: >In article <1991May7.034044.26814@nntp-server.caltech.edu> nygardm@nntp-server.caltech.edu (Michael T. Nygard) writes: >>I've been trying to go through the Copper list examples in the Hardware >>Reference Manual, but I can't make them work. Here's the deal. >> >>I'm looking at page 24-5, and the sample copper list. I wrote a bit of >>wrapper code to just startup, load the copper list, and start it. (It's not >>very friendly...takes over the machine... busy waits, but hey! I'm just >>starting in assembly!) I know the wrapper code runs OK, but I run into trouble >>with the copper list itself. >> >>The example needs real bitplanes. I'd like to use the active view, but I can't >>seem to get a bitplane pointer (GfxBase->ActiView->ViewPort->RasInfo->BitMap-> >>Planes is NULL somewhere along the line.) >> >Try to go via IntuitionBase->ActiveScreen Then, 192 bytes in, are the >bitplane pointers! > >/$DR.HEX$ If you need bitplanes, use _LVOAllocMem, or _LVOAllocRaster to get them. Or even better yet: SECTION chipBSS,BSS,CHIP bitplanes ds.b PLANES*PLANESIZE This lets the LOADER allocate and deallocate the bitplanes for you. (The SECTION directive might be slightly different depending on the assembler you use). -- **************************************************** * I want games that look like Shadow of the Beast * * but play like Leisure Suit Larry. * ****************************************************