Struct CpuContext
- Namespace
- SkyrimForge.Hooks
- Assembly
- SkyrimForge.dll
The registers of a thread that reached an InstructionHook, as they are before the hooked instruction runs.
public readonly ref struct CpuContext
- Inherited Members
Remarks
The thread continues with every register as the handler leaves it. The upper halves of the AVX registers are not saved, and the handler's compiled code may clear them. Game code with a 256-bit value live across the hooked instruction can lose its upper half.
Properties
R10
r10.
public ulong R10 { get; set; }
Property Value
R11
r11.
public ulong R11 { get; set; }
Property Value
R12
r12.
public ulong R12 { get; set; }
Property Value
R13
r13.
public ulong R13 { get; set; }
Property Value
R14
r14.
public ulong R14 { get; set; }
Property Value
R15
r15.
public ulong R15 { get; set; }
Property Value
R8
r8.
public ulong R8 { get; set; }
Property Value
R9
r9.
public ulong R9 { get; set; }
Property Value
Rax
rax.
public ulong Rax { get; set; }
Property Value
Rbp
rbp.
public ulong Rbp { get; set; }
Property Value
Rbx
rbx.
public ulong Rbx { get; set; }
Property Value
Rcx
rcx.
public ulong Rcx { get; set; }
Property Value
Rdi
rdi.
public ulong Rdi { get; set; }
Property Value
Rdx
rdx.
public ulong Rdx { get; set; }
Property Value
Rflags
The flags register.
public ulong Rflags { get; set; }
Property Value
Rip
The address of the instruction the thread runs next. It reads as the hooked address until the handler sets it.
public ulong Rip { get; set; }
Property Value
Remarks
Setting it to another address skips the hooked instruction and continues there.
Exceptions
- InvalidOperationException
The address lies inside a recorded patch or hook past its first byte.
Rsi
rsi.
public ulong Rsi { get; set; }
Property Value
Rsp
The stack pointer at the hooked instruction.
public ulong Rsp { get; }
Property Value
Xmm0
xmm0.
public ref Xmm Xmm0 { get; }
Property Value
Xmm1
xmm1.
public ref Xmm Xmm1 { get; }
Property Value
Xmm10
xmm10.
public ref Xmm Xmm10 { get; }
Property Value
Xmm11
xmm11.
public ref Xmm Xmm11 { get; }
Property Value
Xmm12
xmm12.
public ref Xmm Xmm12 { get; }
Property Value
Xmm13
xmm13.
public ref Xmm Xmm13 { get; }
Property Value
Xmm14
xmm14.
public ref Xmm Xmm14 { get; }
Property Value
Xmm15
xmm15.
public ref Xmm Xmm15 { get; }
Property Value
Xmm2
xmm2.
public ref Xmm Xmm2 { get; }
Property Value
Xmm3
xmm3.
public ref Xmm Xmm3 { get; }
Property Value
Xmm4
xmm4.
public ref Xmm Xmm4 { get; }
Property Value
Xmm5
xmm5.
public ref Xmm Xmm5 { get; }
Property Value
Xmm6
xmm6.
public ref Xmm Xmm6 { get; }
Property Value
Xmm7
xmm7.
public ref Xmm Xmm7 { get; }
Property Value
Xmm8
xmm8.
public ref Xmm Xmm8 { get; }
Property Value
Xmm9
xmm9.
public ref Xmm Xmm9 { get; }