|
|
1.1 ! root 1: /* ! 2: * UAE - The Un*x Amiga Emulator ! 3: * ! 4: * Definitions for accessing cycle counters on a given machine, if possible. ! 5: * ! 6: * Copyright 1998 Bernd Schmidt ! 7: */ ! 8: ! 9: typedef unsigned long frame_time_t; ! 10: ! 11: static __inline__ frame_time_t read_processor_time (void) ! 12: { ! 13: frame_time_t b; ! 14: /* __asm__ __volatile__ ("mfspr %0,269" : "=r" (a) : );*/ ! 15: __asm__ __volatile__ ("mfspr %0,268" : "=r" (b) : ); ! 16: return b; ! 17: } ! 18: ! 19:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.