Creates a new code writer for generating x86 machine code
written directly to memory at codeAddress
.
Memory address to write generated code to.
Optional
options: X86WriterOptionsOptions for customizing code generation.
Memory location of the first byte of output.
Memory location of the next byte of output.
Current offset in bytes.
Program counter at the next byte of output.
Puts an ADD instruction.
Puts an ADD instruction.
Puts an ADD instruction.
Puts an AND instruction.
Puts an AND instruction.
Puts raw data.
Puts a CALL instruction.
Like putCallWithArguments()
, but also
ensures that the argument list is aligned on a 16 byte boundary.
Puts code needed for calling a C function with the specified args
.
Puts a CALL instruction.
Puts a CALL instruction.
Puts a CALL instruction.
Puts code needed for calling a C function with the specified args
.
Like putCallWithArguments()
, but also
ensures that the argument list is aligned on a 16 byte boundary.
Puts code needed for calling a C function with the specified args
.
Puts a CMP instruction.
Puts a CMP instruction.
Puts a CMP instruction.
Puts a CMP instruction.
Puts a DEC instruction.
Puts a DEC instruction.
Puts an INC instruction.
Puts an INC instruction.
Puts a JCC instruction.
Puts a JCC instruction referencing labelId
, defined by a past
or future putLabel()
.
Puts a JCC instruction.
Puts a JCC instruction referencing labelId
, defined by a past
or future putLabel()
.
Puts a JMP instruction.
Puts a JMP instruction.
Puts a JMP instruction.
Puts a JMP instruction.
Puts a JMP instruction.
Puts a LEA instruction.
Puts a LOCK CMPXCHG instruction.
Puts a LOCK DEC IMM32 instruction.
Puts a LOCK INC IMM32 instruction.
Puts a LOCK XADD instruction.
Puts a MOV FS instruction.
Puts a MOV GS instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV FS instruction.
Puts a MOV GS instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a MOV instruction.
Puts a POP instruction.
Puts a PUSH instruction.
Puts a PUSH instruction.
Puts a PUSH instruction.
Puts a SHL instruction.
Puts a SHR instruction.
Puts a SUB instruction.
Puts a SUB instruction.
Puts a SUB instruction.
Puts a TEST instruction.
Puts a TEST instruction.
Puts an XCHG instruction.
Puts an XOR instruction.
Recycles instance.
Optional
options: X86WriterOptionsGenerated using TypeDoc
Generates machine code for x86.