some fixes to accented characters
[tangerine.git] / rom / graphics / cmove.c
blobdf5682123fa08790d220c64beafcc01c166de7f2
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)(ULONG)reg;
60 copIns->u3.u4.u2.DestData = value;
62 AROS_LIBFUNC_EXIT
63 } /* CMove */