PDA

View Full Version : Nop?


petersa
21st May 2001, 08:07
Just wondering what Nop is used for? Obviously there's some use for it because it's there.

THEMike
21st May 2001, 08:24
because a label has to be followed by at least one instruction.

So if you have a conditional jump on something like DLLCompareVersions then you can jump somewhere and do nothing in one case.

petersa
21st May 2001, 08:33
Okay...would SectionEnd count as an instruction? If so, are there any cases outside sections where you would use Nop?

yazno
21st May 2001, 08:52
hi,

1. yes, as labels are only valid within a section/function.
2. yes, in functions

cu yzo