Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!cmcl2!rutgers!cbmvax!chrisg From: chrisg@cbmvax.commodore.com (Chris Green) Newsgroups: comp.sys.amiga.programmer Subject: Re: Assembly Graphics Help Needed Message-ID: <22701@cbmvax.commodore.com> Date: 26 Jun 91 14:26:52 GMT References: <91177.015130G60LG@CUNYVM.BITNET> Reply-To: chrisg@cbmvax.commodore.com (Chris Green) Organization: Commodore, West Chester, PA Lines: 36 In article <91177.015130G60LG@CUNYVM.BITNET> G60LG@CUNYVM.BITNET (Anton Mitchell) writes: > > I have tried to get this assembly program to work for the longest. >Any help would be great. What I dont understand is when assembled and >executed the bitplanes are not cleared. When allocating the memory I set >the Clear and Chip flags. But it is not cleared. The only way I have been >able to clear the bitplanes is by using: > lea PlaneAdr,a1 > move.l PlaneSize*6,d1 > Loop: move.w #0,(a1)+ > dbra d1,Loop >Also when executed several times the bars which usually present in a >blue wind up with other colors etc. And after several executions it will >not execute. Any help on what is wrong with the code would be great. I >have just started programming Assembly and I am going crazy with this >program. > > Thanks in Advance, > Anton Mitchell > > > move.w #PlaneSize*6,d0 This should be MOVE.L #PlaneSize*6,d0 > move.w Clear,d1 This should be MOVE.L #Clear,d1 Also, your replacement of the system copper list didn't look robust enough. That would explain your messed up colors. -- *-------------------------------------------*---------------------------* |Chris Green - Graphics Software Engineer - chrisg@commodore.COM f | Commodore-Amiga - uunet!cbmvax!chrisg n |My opinions are my own, and do not - killyouridolssonicdeath o |necessarily represent those of my employer.- itstheendoftheworld r *-------------------------------------------*---------------------------d