2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function CWait()
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(WORD
, v
, D0
),
22 AROS_LHA(WORD
, h
, D1
),
25 struct GfxBase
*, GfxBase
, 63, Graphics
)
28 Add a copper wait instruction to the given user copper list.
29 The copper is told to wait for a vertical beam position v and
30 a horizontal beam position h.
31 If you are using CWAIT() a call to CWait() and CBump() will
35 ucl - pointer to a UCopList structure
36 v - vertical beam position (relative to top of viewport)
37 h - horizontal beam position
46 It's illegal to wait for horizontal values greater than 222 decimal!
49 CINIT(), CMOVE(), CEND(), graphics/copper.h
55 *****************************************************************************/
59 struct CopIns
* copIns
= ucl
->CopList
->CopPtr
;
60 copIns
->OpCode
= COPPER_WAIT
;
61 copIns
->u3
.u4
.u1
.VWaitPos
= v
;
62 copIns
->u3
.u4
.u2
.HWaitPos
= h
;