hi about C and asm
lx
lxlenovostar at gmail.com
Tue May 28 21:02:22 EDT 2013
hi all:
They are some asm codes in the kernel like:
#define set_bit(nr,addr) ({\
register int res __asm__("ax"); \
__asm__ __volatile__("btsl %2,%3\n\tsetb %%al": \
"=a" (res):"0" (0),"r" (nr),"m" (*(addr))); \
res;})
But, almost I can't understand this. So I want to understand asm in C,
which book or website I should learn ?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130529/6b24ba0a/attachment.html
More information about the Kernelnewbies
mailing list