asmjit::x86::Gp Class Reference [¶]

General purpose register (X86|X86_64).
To get a specific register you can use:
- specific registers directly, like
x86::eax
orx86::rbx
, etc... - construct a register operand dynamically, like
x86::gp8(id)
,x86::gp64(id)
, etc... - use
Gp::make_r[8|8lo|8hi|16|32|64](id)
API for convenience
To cast a register to a specific type, use Gp::r8(), Gp::r8_lo(), Gp::r8_hi(), Gp::r16(), Gp::r32(), and Gp::r64() member functions. Each cast first clones the register and then changes its signature to match the register it has been casted to.