Cpuid commands have two sets of functions. The first function returns the basic information of the processor, and the second function returns the extended information of the processor. Figure 1 summarizes the basic information of the processor that can be output by the cpuid command. The output of the cpuid command is completely dependent on the content of the ea
--
Void _ cpuidex (int32 cpuinfo [4], int32 infotype, int32 ecxvalue) {If (null = cpuinfo) return; _ ASM {// load. read the parameter to the Register mov EDI, cpuinfo; // you are prepared to use EDI to address cpuinfo mov eax, infotype; MoV ECx, ecxvalue; // cpuid; // save. save the registers to cpuinfo mov [EDI], eax; MoV [EDI + 4], EBX; MoV [EDI + 8], ECx; MoV [EDI + 12], edX ;}}
5. All code
All code --
# Include
Vi. Compatibility
32/64-bit sup
: whether the CPU supports Ia MMX is very important! If you want to use the 57 new commands, check this digit first. Otherwise, you will wait for Windows to see "The program has executed illegal commands and will be shut down.
(3) dedicated detection of P6 Architecture
First let eax = 1 and then call cpuid
If Al = 1, it is Pentium Pro or Pentium II.
(4) dedicated detection of amd cpu Information
First let eax = 80000001 h and then call
The C ++ programming language has a wide range of applications. Many of these functions can help us meet certain requirements and improve programming efficiency to a certain extent. Here we will introduce some application methods for the C ++ cpuid command for your convenience.
Overview of basic concepts of C ++ class template Specialization
Understand the basic concepts of C ++ non-type template parameters
Summary of precautions for using non-typ
Reprinted please keep this article link: http://blog.csdn.net/sushengmiyan/article/details/8545673
{Hardware Author: sushengmiyan 2013.01.26 remarks: function: hardware information retrieval unit Units units} unit applicationhardwareinfo; interfaceuses windows, sysutils, classes, registry, nb30, Winsock; Type tcpuid = array [1 .. 4] of longint; function getcpuid: tcpuid; assembler; register; Type // cpuid Information Class tcpuidinf O = class private
Article Title: Obtain the CPUID, hard disk serial number, and MAC address in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In the development of many system software, some system uniqueness information is required. Therefore, obtaining the host's CPUID, hard dis
ASM obtains the CPU serial number/CPUID, asmcpuid
I know there are two ways to obtain the CPU serial number: ASM and WMI.
If it is better, it must be the first choice for compilation. There is nothing to explain.
We only embed assembly in the C #, C ++, and E languages to obtain the CPUID.
First, let's take a look at,
The above is C # The CPUID obtained after th
Execute the WMIC CPU get processorid command under the cmd shell, but look at the cpuid of the machine, but this command shows only 2 sets of IDs, actual CPUID, 4 groupsBy changing the virtual machine configuration file. VMX implements the designation of any CPU serial number, and the CPU serial number does not revert to the original value after restarting the virtual machine. Here's how:Open the. vmx file
The CPUID of the three versions-general Linux technology-Linux programming and kernel information. The following is a detailed description. First version
X86-ubuntu-64 bit environment, att format (gas assembly), called using linux:
CODE: # cpuid. s show extract the processor vendor ID. Section. dataOutput:. Ascii "the processor vendor ID is 'xxxxxxxxxxxx' \ n". Section. text. Globl mai
("tmp ",". vbs "); file. deleteonexit (); filewriter fw = new Java. io. filewriter (File); string vbs = "set ob1_miservice = GetObject (\" winmgmts :\\\\. \ Root \ cimv2 \ ") \ n" + "set colitems = Obw.miservice. execquery _ \ n "+" (\ "select * From win32_processor \") \ n "+" for each objitem in colitems \ n "+" wscript. echo objitem. processorid \ n "+" exit for 'Do the first CPU only! \ N "+" next \ n "; // +" exit for \ r \ n "+" Next "; FW. write (vbs); FW. close (); process P = runtime.g
Today, I reviewed the JSP instruction element section, sorted out, share with everybody: One, page instruction: Set the global properties of the JSP page, which acts on the entire JSP page, setting including statically contained files. 1, Language attribute: Declare the type of scripting language used, currently only Java one, do not reject the addition of other languages later. 2, extends property:
JSP instruction elements: Page instruction, include instruction, and taglib instruction
1. Directive elements: controls the generated servlet structure.
JSP commands are used in the "conversion phase" to provide information about the entire JSP page, affecting the overall structure of the servlet generated by the JSP p
Today, I reviewed the JSP instruction elements and sorted them out to share with you:I. page commands:Sets the global attribute of the JSP page. This configuration acts on the entire JSP page and sets static files.1. language attribute: Declares the type of the scripting language used. Currently, only one type of java is available, and other languages will not be excluded.2. extends attributes: Specify the parent class to which the Servlet generated o
Today, I reviewed the JSP instruction element section, sorted out, and shared with you:
One, page instruction:Sets the global properties of the JSP page, which acts on the entire JSP page, setting including statically contained files.
1, Language attribute: Affirm the type of scripting language used, currently only Java one, do not reject the addition of other languages.
2. Extends property: Specifies which parent class the servlet generated by this
Today, I reviewed the JSP instruction elements and sorted them out to share with you:
I. page commands:Sets the global attribute of the JSP page. This configuration acts on the entire JSP page and sets static files.1. language attribute: Declares the type of the scripting language used. Currently, only one type of java is available, and other languages will not be excluded.2. extends attributes: Specify the parent class to which the Servlet generated
The arm instruction set provides two instructions to directly control the status register (psr,program State Register). The Mrs Instruction is used to transmit the value of the CPSR or SPSR to a register; In contrast, the MSR transmits the contents of a register to CPSR or SPSR. These two instructions are combined to read/write to CPSR and SPSR.Cpsr_c represents the low 8 bits in this 32-bit, which is the c
The logical instruction set is: And/orr/eor/bic1) With logic commands are generally used to place 0 bits: andandLogical and operation.
Syntax
And{cond}{s} Rd, Rn, OP2
Description
Load Rd with logical AND of Rn with OP2. Rd: = Rn and OP2
Condition Flags
If S is specified, N, Z the flags are updated. C flag May is updated by calculation of OP2.
Example
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.