22007E/0 — November 1999

AMD Athlon™ Processor x86 Code Optimization

;lea edi

,[edi+00000000]

NOP6_EDI

TEXTEQU <DB 08Dh,0BFh,0,0,0,0>

;lea ebp

,[ebp+00000000]

NOP6_EBP

TEXTEQU <DB 08Dh,0ADh,0,0,0,0>

;lea eax,[eax*1+00000000]

NOP7_EAX

TEXTEQU <DB 08Dh,004h,005h,0,0,0,0>

;lea ebx,[ebx*1+00000000]

NOP7_EBX

TEXTEQU <DB 08Dh,01Ch,01Dh,0,0,0,0>

;lea ecx,[ecx*1+00000000]

NOP7_ECX

TEXTEQU <DB 08Dh,00Ch,00Dh,0,0,0,0>

;lea edx,[edx*1+00000000]

NOP7_EDX

TEXTEQU <DB 08Dh,014h,015h,0,0,0,0>

;lea esi,[esi*1+00000000]

NOP7_ESI

TEXTEQU <DB 08Dh,034h,035h,0,0,0,0>

;lea edi,[edi*1+00000000]

NOP7_EDI

TEXTEQU <DB 08Dh,03Ch,03Dh,0,0,0,0>

;lea ebp,[ebp*1+00000000]

NOP7_EBP

TEXTEQU <DB 08Dh,02Ch,02Dh,0,0,0,0>

;lea eax,[eax*1+00000000] ;nop

NOP8_EAX

TEXTEQU <DB 08Dh,004h,005h,0,0,0,0,90h>

;lea ebx,[ebx*1+00000000] ;nop

NOP8_EBX

TEXTEQU <DB 08Dh,01Ch,01Dh,0,0,0,0,90h>

;lea ecx,[ecx*1+00000000] ;nop

NOP8_ECX

TEXTEQU <DB 08Dh,00Ch,00Dh,0,0,0,0,90h>

;lea edx,[edx*1+00000000] ;nop

NOP8_EDX

TEXTEQU <DB 08Dh,014h,015h,0,0,0,0,90h>

;lea esi,[esi*1+00000000] ;nop

NOP8_ESI

TEXTEQU <DB 08Dh,034h,035h,0,0,0,0,90h>

;lea edi,[edi*1+00000000] ;nop

NOP8_EDI

TEXTEQU <DB 08Dh,03Ch,03Dh,0,0,0,0,90h>

;lea ebp,[ebp*1+00000000] ;nop

NOP8_EBP

TEXTEQU <DB 08Dh,02Ch,02Dh,0,0,0,0,90h>

;JMP

NOP9 TEXTEQU <DB 0EBh,007h,90h,90h,90h,90h,90h,90h,90h>

Code Padding Using Neutral Code Fillers

43

Page 59
Image 59
AMD x86 manual NOP6EDI