flat assembler
Message board for the users of flat assembler.

Index > Main > I am confused ! I found nop WORD PTR [rax+rax*1+0x0]

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 24 Mar 2021, 13:47
I know about nop(hex op code 90).
But what this mean ?
nop WORD PTR [rax+rax*1+0x0]

hex op code: 66 0f 1f 44 00 00
Post 24 Mar 2021, 13:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20526
Location: In your JS exploiting you and your system
revolution 24 Mar 2021, 14:17
Multi-byte nops are also nops.

You can use them for padding. They might, or might not, be more efficient than multiple single byte nops when you execute them. Test it to see how it performs on your system running the code.
Post 24 Mar 2021, 14:17
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 24 Mar 2021, 14:24
Its like rept for nop ?
I am right ?
Post 24 Mar 2021, 14:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20526
Location: In your JS exploiting you and your system
revolution 24 Mar 2021, 14:33
It is different. You can't arbitrarily enter the instruction at any point. You still have to begin at the proper place.
Code:
my_padding_1:
  times 6 nop
;...
my_padding_2:
  nop WORD PTR [rax+rax*1+0x0] 
;...
jmp my_padding_1 + 0 ; okay
jmp my_padding_2 + 0 ; okay
jmp my_padding_1 + 2 ; okay
jmp my_padding_2 + 2 ; FAIL    
Post 24 Mar 2021, 14:33
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.