2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function CMove()
8 #include <exec/types.h>
9 #include <graphics/copper.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
20 AROS_LHA(struct UCopList
*, ucl
, A1
),
21 AROS_LHA(void * , reg
, D0
),
22 AROS_LHA(WORD
, value
, D1
),
25 struct GfxBase
*, GfxBase
, 62, Graphics
)
28 Add a copper move instruction to the given user copper list.
29 The copper is told to move a value to register reg.
30 If you are using CMOVE() a call to CMove() and CBump() will
34 ucl - pointer to a UCopList structure
35 reg - hardware register
36 value - 16 bit value to be moved to the hardware register
47 CINIT(), CWAIT(), CEND(), graphics/copper.h
53 *****************************************************************************/
57 struct CopIns
* copIns
= ucl
->CopList
->CopPtr
;
58 copIns
->OpCode
= COPPER_MOVE
;
59 copIns
->u3
.u4
.u1
.DestAddr
= (WORD
)(IPTR
)reg
;
60 copIns
->u3
.u4
.u2
.DestData
= value
;