AnsweredAssumed Answered

Assembly question (clearing a data register)

Question asked by Greenmaze on Dec 1, 2010
Latest reply on Dec 1, 2010 by gyi

I came across some assembly where a vector subtract was used to clear a register instead of a load immediate. Example:

 

R1 = R1 -|- R1;

 

What's the advantage of using a vector subtract to clear a data register?

 

Thanks

Outcomes