Guest User

Untitled

a guest
May 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. __asm__ __volatile__ (
  2.  
  3. "mov %4, %%eax\n"
  4.  
  5. "cpuid\n"
  6.  
  7. "mov %%eax, %0\n"
  8.  
  9. "mov %%ebx, %1\n"
  10.  
  11. "mov %%ecx, %2\n"
  12.  
  13. "mov %%edx, %3\n"
  14.  
  15. : "=m" (regs[0]), "=m" (regs[1]),
  16.  
  17. "=m" (regs[2]), "=m" (regs[3])
  18.  
  19. : "m"(cmd)
  20.  
  21. : "eax", "ebx", "ecx", "edx"
  22.  
  23. );
Add Comment
Please, Sign In to add comment