New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / cmove.c
blob8c3865597d69e0eb4b544a308ca9cb209fa0232f
1 /*
2 Copyright © 1995-2001, 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
56 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
58 struct CopIns * copIns = ucl->CopList->CopPtr;
59 copIns->OpCode = COPPER_MOVE;
60 copIns->u3.u4.u1.DestAddr = (WORD)(ULONG)reg;
61 copIns->u3.u4.u2.DestData = value;
63 AROS_LIBFUNC_EXIT
64 } /* CMove */