Machine.X64.Component.Registers.Iced
1.0.0
dotnet add package Machine.X64.Component.Registers.Iced --version 1.0.0
NuGet\Install-Package Machine.X64.Component.Registers.Iced -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Machine.X64.Component.Registers.Iced" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Machine.X64.Component.Registers.Iced --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Machine.X64.Component.Registers.Iced, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Machine.X64.Component.Registers.Iced as a Cake Addin #addin nuget:?package=Machine.X64.Component.Registers.Iced&version=1.0.0 // Install Machine.X64.Component.Registers.Iced as a Cake Tool #tool nuget:?package=Machine.X64.Component.Registers.Iced&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Machine.X64.Component.Registers.Iced
A small number of extension methods to the ProcessorRegisters
class from Machine.X64.Component.Registers
to evaluate registers based on the Iced.Intel.Register enumeration.
See the following example.
using Machine.X64.Component;
using System.Runtime.Intrinsics;
// Not using 'using Iced.Intel' in this context for clarity
// Set registers
var processorRegisters = new ProcessorRegisters();
processorRegisters.Rax = 123;
processorRegisters.Rbx = 42;
processorRegisters.Xmm5 = Vector128.Create(1F, 2F, 3F, 4F);
processorRegisters.Xmm3 = Vector128.Create(4F, 3F, 2F, 1F);
// Evaluate them
Console.WriteLine(processorRegisters.EvaluateRegisterValue32(Iced.Intel.Register.RAX)); // 123
Console.WriteLine(processorRegisters.EvaluateRegisterValue32(Iced.Intel.Register.RBX)); // 42
Console.WriteLine(processorRegisters.EvaluateXmm(Iced.Intel.Register.XMM5)); // <1, 2, 3, 4>
Console.WriteLine(processorRegisters.EvaluateXmm(Iced.Intel.Register.XMM3)); // <4, 3, 2, 1>
// Set registers based on the Iced.Intel.Register enumeration
processorRegisters.SetXmm(Iced.Intel.Register.XMM8, Vector128.Create(0F, 8F, 16F, 24F));
Console.WriteLine(processorRegisters.EvaluateXmm(Iced.Intel.Register.XMM8)); // <0, 8, 16, 24>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Iced (>= 1.21.0)
- Machine.X64.Component.Registers (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 27 | 12/22/2024 |