Advertisement
LincolnArantes

Pegar id fornecedor do processador

Oct 24th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;; Esse código pegar o fornecedor do processador
  2.  
  3. SYS_WRITE equ 1
  4. SYS_EXIT  equ 60
  5.  
  6.         section .data
  7. output  db `O fornecedor do processador: 'xxxxxxxxxxxx'\n`
  8. output_len equ $-output
  9.        
  10.         section .text
  11.         global _start
  12. _start:
  13.         mov eax,0
  14.         cpuid
  15.         mov rdi,output
  16.         mov [rdi+28],ebx
  17.         mov [rdi+32],edx
  18.         mov [rdi+36],ecx
  19.         mov eax,SYS_WRITE
  20.         mov rdi,1               ;stdout
  21.         mov rsi,output
  22.         mov rdx,output_len
  23.         syscall
  24.         mov eax,SYS_EXIT
  25.         mov rdi,0
  26.         syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement