🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #183

Copper Programming

#183
From: Robert Barton
Date: Sun, 25 Jun 1989 19:17
34 lines
1458 bytes
 brett@umd5.umd.edu (Brett Bourbin) writes:

>    if ( !( vp->UCopIns = (struct UCopList *)
>       AllocMem( (long) sizeof (struct UCopList),
>          MEMF_CHIP|MEMF_CLEAR ))) goto FAIL;
> 
>    ucl = vp->UCopIns;
>    CINIT( ucl, 10L );
>    CWAIT( ucl, (long) STARTLINE-1, (long) width-1 );
>    CMOVE( ucl, custom.cop2lc, (long) (privatecop >> 16) & 0xffff );
>    CMOVE( ucl, (*((UWORD *) &custom.cop2lc+1)), (long) privatecop &0xffff );
>    CMOVE( ucl, custom.copjmp2, 0L );
>    CEND( ucl );
> 
>    Can someone tell me where I am going wrong?  It looks to me like the
> correct way to do it, but since it doesn't work, I guess there is a better
> way.  8^)

  Your UCopList structure doesn't need to be in CHIP memory, but it should be
PUBLIC and CLEAR.  But that wouldn't cause your problem.  These might:
1) Your 'privatecop' should point to CHIP memory.
2) How are you measuring 'width'?  It should be in 'color clocks'.
3) Shouldn't the second CMOVE be &custom.cop2lc+2 ?


(*
f
i
l
l
e
r
*)
Technical Details
Message-ID: <1411@psueea.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr!tektronix!psueea!jove.cs.pdx.edu!bartonr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr!tektronix!psueea!jove.cs.pdx.edu!bartonr
From: bartonr@jove.cs.pdx.edu (Robert Barton)
Newsgroups: comp.sys.amiga.tech
Subject: Copper Programming
Message-ID: <1411@psueea.UUCP>
Date: 25 Jun 89 19:17:14 GMT
Sender: news@psueea.UUCP
Reply-To: bartonr@jove.cs.pdx.edu (Robert Barton)
Organization: Dept. of Computer Science, Portland State University; Portland OR
Lines: 34