ASM nop

James Dunne james.jdunne at gmail.com
Sun Jun 11 18:38:00 PDT 2006


Jarrett Billingsley wrote:
> "Bruno Medeiros" <brunodomedeirosATgmail at SPAM.com> wrote in message 
> news:e6i5n5$kok$2 at digitaldaemon.com...
> 
> 
>>What are those NOPs for, if I may ask?
> 
> 
> Usually for alignment, so that the instructions pair better in the pipeline, 
> though three nops in a row seems kind of odd, unless that's some kind of 
> technique I've never seen before. 
> 
> 

A MOV reg, reg instruction is encoded as a single byte, so to pad it 
gets three NOPs.  Correct me if mistaken!

-- 
Regards,
James Dunne



More information about the Digitalmars-d mailing list