Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- .text
- .globl czas
- .type czas, @function
- czas:
- push %ebp
- mov %esp, %ebp
- cmp $1,%eax
- jl rdtsc
- jmp rdtscp
- rdtsc:
- xor %eax,%eax
- cpuid
- rdtsc
- jmp end
- rdtscp:
- #xor %eax,%eax
- #cpuid
- rdtscp
- jmp end
- end:
- mov %ebp, %esp
- pop %ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement