Results 1 to 3 of 3
register unsigned var=1234;
register unsigned dwords=5;
while (dwords--) {
var+=5;
__asm rol var,1
}
I see gcc supports inline assembly, but I don't understand its format at all.
TIA!!...
- 10-01-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 10
How do you do __asm rol var,1 in GCC?
register unsigned var=1234;
register unsigned dwords=5;
while (dwords--) {
var+=5;
__asm rol var,1
}
I see gcc supports inline assembly, but I don't understand its format at all.
TIA!!
- 10-01-2011 #2
I thought you just did
Code:asm { rol var,1 }Linux user #126863 - see http://linuxcounter.net/
- 10-01-2011 #3Just Joined!
- Join Date
- Sep 2011
- Posts
- 10
I'll have to try, but you're saying the only requirement is to place it within the brackets? The information I've seen on gcc inline assembly is cryptic.


Reply With Quote