[comp.sys.amiga] Manx Bug/Trouble with UCopperListInit

ewhac@well.UUCP (05/08/87)

[ Friction is a real drag. ]

	Okay.  I've been fiddling around with user copper lists of late, and
without as much success as I'd like.

	First problem:  The new Manx 3.40a library doesn't have the function
UCopperListInit() in it.  Somehow, it got its name changed to
CopperListInit() (this discovered by inspecting the library to the source).
And yes, I informed Manx about this.

	Now that you know this caveat, don't use the CopperListInit() call,
since it doesn't work.  The library interface expects one argument, whereas
the docs claim that it requires two.

	Which brings me to the second problem:  I wrote my own
UCopperListInit() library interface call, and proceeded to use it as per the
1.2 docs to allocate and initialize a UCopList structure.  It kept giving me
a pointer into very low memory (0x673).  The system then crashed when I
tried to use CMOVE(), CWAIT(), and that crowd.

	I then used AllocMem() to allocate the UCopList structure, and
everything started working wonderfully.

	Clearly, I'm not understanding something here.  I don't have the
Addison/Wesley manuals; I have the earlier ones.  Does the A/W manual have
more information about manipulating copper lists?  If not, could some
enlightened individual publicly discuss how those calls work, and how to
intelligently use the copper structures.

	I feel that the copper manipulation routines are one of the most
poorly documented features in the system.  Unfortunate, considering the
power wielded by this device.

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 ________		 ___			Leo L. Schwab
	   \		/___--__		The Guy in The Cape
  ___  ___ /\		    ---##\		ihnp4!ptsfa!well!ewhac
      /   X  \_____    |  __ _---))			..or..
     /   /_\--    -----+==____\ // \  _		well ---\
___ (   o---+------------------O/   \/ \	dual ----> !unicom!ewhac
     \     /		    ___ \_  (`o )	hplabs -/       ("AE-wack")
 ____ \___/			     \_/
	      Recumbent Bikes:			"Work FOR?  I don't work FOR
	    The _O_n_l_y Way To Fly!		anybody!  I'm just having fun."