by cjubb39 · 12y ago · 0 comments
I haven't tested, but I'd bet good money that 12 NOPs would be faster than a jmp.
Smart toolchains will turn those 12 bytes into 2 multi-byte nops, e.g., a 9-byte one and a 3-byte one.
0x66 0x0f 0x1f 0x84 0x00 0x00 0x00 0x00 0x00
That's a size override prefix, followed by the dedicated NOP instruction (0x0f 0x1f), and finally 6 bytes to encode an effective address with offset.
nop word ptr [eax+eax+0] ; 66 0f 1f 84 00 00 00 00 00