Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #if (defined(__i386__) || defined(__x86_64__)) && ! defined(HOST_WIN32)
  2.  
  3. #if defined(__i386__)
  4. static const guchar cpuid_impl [] = {
  5. 0x55, /* push %ebp */
  6. 0x89, 0xe5, /* mov %esp,%ebp */
  7. 0x53 /* push %ebx */
  8. 0x8b, 0x45, 0x08, /* mov 0x8(%ebp),%eax */
  9. 0x0f, 0xa2, /* cpuid */
  10. 0x50, /* push %eax */
  11. 0x8b, 0x45, 0x10, /* mov 0x10(%ebp),%eax */
  12. 0x89, 0x18, /* mov %ebx,(%eax) */
  13. 0x8b, 0x45, 0x14, /* mov 0x14(%ebp),%eax */
  14. 0x89, 0x08, /* mov %ecx,(%eax) */
  15. 0x8b, 0x45, 0x18, /* mov 0x18(%ebp),%eax */
  16. 0x89, 0x10, /* mov %edx,(%eax) */
  17. 0x58, /* pop %eax */
  18. 0x8b, 0x55, 0x0c, /* mov 0xc(%ebp),%edx */
  19. 0x89, 0x02, /* mov %eax,(%edx) */
  20. 0x5b, /* pop %ebx */
  21. 0xc9, /* leave */
  22. 0xc3, /* ret */
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement