flat assembler
Message board for the users of flat assembler.
Index
> Main > point of nop? Goto page Previous 1, 2 |
Author |
|
edfed 24 Nov 2010, 00:37
a standardised delay nop can be a fun thing.
for exemple, if intel decide to create a time instruction. for example: 1 nop = 50 nanoseconds 0.01% or somethin else. and then, no matter the time needed by others parts of code. this 50 nanosecond delay (20MHz fixed clock) will be very fun for many purposes. and if nop can use rep prefix? lol. and rep can use an argument (operand) Code:
rep 45 nop
|
|||
24 Nov 2010, 00:37 |
|
sinsi 24 Nov 2010, 00:54
"rep nop" is now the "pause" instruction.
|
|||
24 Nov 2010, 00:54 |
|
bitRAKE 24 Nov 2010, 06:51
Modern NOP only consumes decode resources of the processor - it must be optimized in some way for that to happen. Even in the latest processors NOP is used for timing. Albeit rare cases where it is needed.
Quote: Using an instruction with operand-size prefix and modr/m that starts at offset 14, add a NOP before the instruction or re-schedule the instructions to change the 0x66-prefix instruction alignment. |
|||
24 Nov 2010, 06:51 |
|
nop 01 Dec 2010, 00:10
its nice of you all to talk so much about me but i believe i have some more uses that nobody has really mentioned yet
|
|||
01 Dec 2010, 00:10 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.