--- src/hermes/x86_main.asm +++ src/hermes/x86_main.asm @@ -17,11 +17,6 @@ GLOBAL _x86return GLOBAL _Hermes_X86_CPU -SECTION .data - -cpu_flags dd 0 - - SECTION .text ;; _ConvertX86: @@ -110,16 +105,13 @@ _Hermes_X86_CPU: xor eax,ecx je .L1 - pusha - + push ebx + mov eax,1 cpuid + mov eax,edx - mov [cpu_flags],edx - - popa - - mov eax,[cpu_flags] + pop ebx .L1: ret