sfl-examples/slide-examples/ex28.asm

35 lines
447 B
NASM
Raw Normal View History

2023-12-14 14:12:51 +01:00
; NOPs
bits 64
%idefine rip rel $
SECTION .data
; empty
SECTION .text
global _start
_start:
%include "header.asm.inc"
; normal NOP operation
nop
; 2-byte NOP operation
xchg al, al
xchg ebx, ebx
; 3-byte NOP operation
mov rax, rax
lea eax, [eax]
; 4-byte NOP operation
lea eax,[byte eax]
; 7-byte NOP operation
lea eax,[dword eax]
%include "sysexit.asm.inc"