|
-
Dec 3rd, 2001, 06:26 PM
#37
Monday Morning Lunatic
For whoever asked about accurate timers...
The Pentium introduced the RTDSC (or is it RDTSC?) instruction that gets the number of clock cycles (i.e. the time is dependent on processor speed) since the processor was initialised (I think this is only on power-up, but may be reset on a hard system reset).
Either way, most assemblers won't support it MSVC lets you use the _emit pseudoinstruction that DIRECTLY includes the bytes you specify into the output object file.
I did post an example on the forum...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|