You are on page 1of 1

~/work/asm/cpuid.

asm 1 ¿¿¿

;bits 64

section .text
global main

main:
mov eax,0x80000008
cpuid

;mov rax,0x2000001
;xor rdi,rdi
;syscall

mov eax,1 ;system call number (sys_exit)


int 0x80 ;call kernel

section .data
msg db 'Hello, world!'
len equ $ é msg

You might also like