Announcement

Collapse
No announcement yet.

CPUID

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CPUID

    I've come across a processor detection algorithm ( http://x86.ddj.com/ftp/source/cpuid/cpuid.asm ) that I would like to incorporate into my PB/DOS program. I'm not sure what assembler was used to write it, but it was probably either MASM or TASM. I don't have either assembler, so I was wondering if anyone knows if such an assembler is freely available (so I could compile the ASM source code into an .OBJ file which I could link into my PB/DOS program), or, if it is possible to convert the ASM source code into a form such that I could use it with PB/DOS's built-in assembler (it appears to use a number of compiler-specific directives).

    Please don't suggest that I use the pbvCpu internal variable or the official Intel-authorised CPUID detection algorithm, as I desire greater (and more accurate in the case of the Intel routine) detail than either of those methods can provide.
    If you try to make something idiot-proof, someone will invent a better idiot.

  • #2
    I have some public-domain PB code that does this with inline assembler. Email me and I'll send it to you.

    Also, there may be a posting of this in the Source Code forum, and also over at the www.basicguru.com/abc site

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:lanceedmonds[email protected]

    Comment


    • #3
      try this one:




      ------------------
      lance
      powerbasic support
      mailto:[email protected][email protected]</a>
      Lance
      mailto:[email protected]

      Comment

      Working...
      X