dale@amiga.UUCP (02/26/87)
If you are using 1.2 I advise you to use the CINIT macro, since it will allocate a buffer of the size you need for all your copper instructions. If you add more copper instructions it will allocate another and chain buffers together. You can allocate a UCopList structure and zero out the entries instead though. The first call to CMOVE or CWAIT will notice this and allocate the rest for you. However, since it does not know how many instructions you will have, it guesses. If it guesses too high you waste some memory, if it guesses too low you waste some memory, but also incur a little extra overhead when processing the chain. The method of just zeroing the pointer was the pre 1.1 way of initializing your copper list. Too maintain backwards compatibility, it still works, although not reccomended. Duck of Commodore-Amiga I think I'll be VP of software at Commodore-Amiga, ya that's it, a few more heads to fall and I'll be head honcho, ya