MEMORY

Nop

Fills a range with no-operation instructions.

Syntax

local ok = ONYX.Memory.Nop(address, count)

Parameters

  • address (integer) — Target address.
  • count (integer) — Number of NOP (0x90) bytes to write (1 to 4096).

Return(s)

boolean — true on success, false on failure.

Behavior

  • Fills the range with 0x90 and handles page protection automatically.

Example(s)

ONYX.Memory.Nop(jumpAddr, 6)