For example:    EAX = 10101010 00001110 11001010 00100000
I want to move EAX high 8 bits to right 7 times,what can i do in c or in python?
In asm :    SHR ah,7
The result of EAX is:10101010 00001110 00000001 00100000
And how about     SHR ax,7?
I have tried ((EAX & 0xff00) >> 8 ) >> 7,but i don't how to add it back to EAX?
You can store bits from 9th onwards in other variable. Then make those vits 0 in EAX. Then do EAX << 7 and add those bits again to it.
how to move a number's high 8 bits 7 times in c or python?