Recent GAS in binutils has a .nops N
pseudo-instruction that expands to the requested number of bytes for the target:
.nops
size
[,
control
]
Related Contents:
- Why does this MOVSS instruction use RIP-relative addressing? [duplicate]
- Is it possible to decode x86-64 instructions in reverse?
- Why do x86-64 instructions on 32-bit registers zero the upper part of the full 64-bit register?
- What’s the purpose of the LEA instruction?
- Why doesn’t GCC use partial registers?
- Why does the x86-64 / AMD64 System V ABI mandate a 16 byte stack alignment?
- Is a sign or zero extension required when adding a 32bit offset to a pointer for the x86-64 ABI?
- rbp not allowed as SIB base?
- Why in x86-64 the virtual address are 4 bits shorter than physical (48 bits vs. 52 long)?
- Difference between movq and movabsq in x86-64
- How do RIP-relative variable references like “[RIP + _a]” in x86-64 GAS Intel-syntax work?
- Printing floating point numbers from x86-64 seems to require %rbp to be saved
- How to print a single-precision float with printf
- MOVZX missing 32 bit register to 64 bit register
- How to load a single byte from address in assembly
- Where exactly is the red zone on x86-64?
- CS:APP example uses idivq with two operands?
- Why are signed and unsigned multiplication different instructions on x86(-64)?
- What do the E and R prefixes stand for in the names of Intel 32-bit and 64-bit registers?
- Why is the address of static variables relative to the Instruction Pointer?
- why we can’t move a 64-bit immediate value to memory?
- Set all bits in CPU register to 1 efficiently
- What does @plt mean here?
- Why is (or isn’t?) SFENCE + LFENCE equivalent to MFENCE?
- How to disassemble 16-bit x86 boot sector code in GDB with “x/i $pc”? It gets treated as 32-bit
- Distinguishing memory from constant in GNU as .intel_syntax
- Why can’t I move directly a byte to a 64 bit register?
- Why is imul used for multiplying unsigned numbers?
- Why are rbp and rsp called general purpose registers?
- Why NASM on Linux changes registers in x86_64 assembly
- How to multiply a register by 37 using only 2 consecutive leal instructions in x86?
- How to push a 64bit int in NASM?
- What does “DS:[40207A]” mean in assembly?
- x86_64 registers rax/eax/ax/al overwriting full register contents [duplicate]
- What does NOPL do in x86 system?
- Assembly registers in 64-bit architecture
- Why not store function parameters in XMM vector registers?
- Bomb lab phase_4
- What does “rep; nop;” mean in x86 assembly? Is it the same as the “pause” instruction?
- Does it make any sense to use the LFENCE instruction on x86/x86_64 processors?
- What are the names of the new X86_64 processors registers?
- Segmentation fault when using DB (define byte) inside a function
- How to use RIP Relative Addressing in a 64-bit assembly program?
- Does each PUSH instruction push a multiple of 8 bytes on x64?
- When should I use size directives in x86?
- x86-64 canonical address?
- Load from a 64-bit address into other register than rax
- Understanding %rip register in intel assembly
- Create an arg array for execve on the stack
- Using ymm registers as a “memory-like” storage location