4 .sect .text; .sect .rom; .sect .data; .sect .bss
6 .define _read_tsc ! read the cycle counter (Pentium and up)
9 !*===========================================================================*
10 ! PUBLIC void read_tsc
(unsigned long
*high
, unsigned long
*low
);
11 ! Read the cycle counter of the CPU. Pentium
and up.
14 .data1 0x0f ! this is the RDTSC instruction
15 .data1 0x31 ! it places the TSC in EDX:EAX