Commentary 101

Published March 04, 2005
Advertisement
I enjoy reading your journals on this fine site.
As an aside, sra is not the same as srl in SPARC ASM. Those game developers able to realize why this is are far brighter than I.
Previous Entry Ring of Pain
Next Entry I hate midterms
0 likes 3 comments

Comments

H_o_p_s
I enjoy reading your journals on this fine site.
As an aside, sra is not the same as srl in SPARC ASM. Those game developers able to realize why this is are far brighter than I.


The reason that sra != srl in SPARC ASM is because there is a 1 letter difference ;)
March 04, 2005 02:32 PM
johnhattan
int sra(0);
int srl(0);

if (sra == srl)
puts("nope, you're wrong");
else
puts("sonofagun, you're right");
March 04, 2005 02:54 PM
mossmoss
In case you were actually looking for an answer... (don't know if that was sarcasm or not, hard to tell with just ascii).

I expect that sra is "shift right arithmetic" and srl is "shift right logical". Which one you use is important if the number being shifted is negative. sra is sign-preserving, srl always shifts in a zero into the msb.
March 09, 2005 03:12 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement