2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: Read the current vertical position of the beam
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
11 #include <clib/graphics_protos.h>
13 /* See rom/graphics/vbeampos.c for documentation */
15 AROS_LH0(LONG
, VBeamPos
,
16 struct GfxBase
*, GfxBase
, 64, Graphics
)
20 volatile struct Custom
*custom
= (struct Custom
*)0xdff000;
24 v1
= custom
->vhposr
>> 8;
26 if (v1
== (custom
->vhposr
>> 8))
30 return v1
| ((v2
& 7) << 8);