revert - libatomic is still needed for target code.
[AROS.git] / rom / graphics / cmove.c
blob981b64d74ba4ae5a22ed98dd3db1a9f5943d3f46
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function CMove()
6 Lang: english
7 */
8 #include <exec/types.h>
9 #include <graphics/copper.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/graphics.h>
17 AROS_LH3(void, CMove,
19 /* SYNOPSIS */
20 AROS_LHA(struct UCopList *, ucl, A1),
21 AROS_LHA(void * , reg, D0),
22 AROS_LHA(WORD , value, D1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 62, Graphics)
27 /* FUNCTION
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
31 be made.
33 INPUTS
34 ucl - pointer to a UCopList structure
35 reg - hardware register
36 value - 16 bit value to be moved to the hardware register
38 RESULT
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 CINIT(), CWAIT(), CEND(), graphics/copper.h
49 INTERNALS
51 HISTORY
53 *****************************************************************************/
55 AROS_LIBFUNC_INIT
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;
62 AROS_LIBFUNC_EXIT
63 } /* CMove */