1 #include <aros/asmcall.h>
2 #include <exec/interrupts.h>
3 #include <hardware/intbits.h>
6 #include <proto/exec.h>
8 int __nocommandline
= 1;
10 static int counter
= 0;
12 static AROS_INTH1(vblank_handler
, APTR
, mydata
)
24 static struct Interrupt vblank_int
=
26 .is_Code
= (APTR
)vblank_handler
31 AddIntServer(INTB_VERTB
, &vblank_int
);
33 while (!(CheckSignal(SIGBREAKF_CTRL_C
)))
35 Printf("\rVBlank counter: %lu ", counter
);
38 RemIntServer(INTB_VERTB
, &vblank_int
);
40 Printf("\nTerminated\n");