SourcePoint AMD Help

Table of Contents

cpuid_ecx

Execute the CPUID assembly instruction and return the value in ECX.

Syntax:

[result =] [[px]] cpuid_ecx [(eax[,ecx])]

Where:

[px]

is the viewpoint override, including punctuation ( [ ] ), specifying that the viewpoint is temporarily set to processor x of the boundary scan chain. ย The processor can be specified as px (where x is the processor ID), or an alias you have defined for a given processor ID. ย ALL cannot be used as a viewpoint override.

eax

is the value to be stored in EAX before the CPUID instruction is executed. If no value is specified, 1 is used by default.

ecx

is the value to be stored in ECX before the CPUID instruction is executed. If no value is specified, 0 is used by default.

result

is an ord4 variable to receive the value of ECX.

Discussion

Execute the CPUID instruction with the specified values of EAX and ECX. ย The return value (ECX) can be assigned to a debug variable, or displayed on the command line.

Example 1

To run cpuid_ecx on the viewpoint processor with EAX=1 and display the value obtained in ECX:

Command input:

cpuid_ecx

Result:

0298E3FFH

Example 2

To run cpuid_ecx on the viewpoint processor with EAX=10 and display the value obtained in ECX:

Command input:

cpuid_ecx(10)

Result:

00000100H

Example 3

To run cpuid_ecx on the viewpoint processor with EAX=10 and ECX=5 and store the result obtained in ECX to a variable:

Command input:

define ord4 o4cpuidecx = cpuid_ecx(10,5)

04cpuidecx

Result:

00000005H

Related Topics

ย