2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/asmcall.h>
7 #include <exec/interrupts.h>
8 #include <hardware/intbits.h>
10 #include <proto/dos.h>
11 #include <proto/exec.h>
13 int __nocommandline
= 1;
15 static int counter
= 0;
17 static AROS_INTH1(vblank_handler
, APTR
, mydata
)
29 static struct Interrupt vblank_int
=
31 .is_Code
= (APTR
)vblank_handler
36 AddIntServer(INTB_VERTB
, &vblank_int
);
38 while (!(CheckSignal(SIGBREAKF_CTRL_C
)))
40 Printf("\rVBlank counter: %lu ", counter
);
43 RemIntServer(INTB_VERTB
, &vblank_int
);
45 Printf("\nTerminated\n");