src/hermes/x86_main.asm
changeset 1227 3202d727bb4b
parent 1199 2d6dc7de1145
child 1697 393092a3ebf6
--- a/src/hermes/x86_main.asm	Wed Jan 04 22:57:50 2006 +0000
+++ b/src/hermes/x86_main.asm	Thu Jan 05 07:08:59 2006 +0000
@@ -16,11 +16,6 @@
 	
 GLOBAL _Hermes_X86_CPU
 
-SECTION .data
-	
-cpu_flags dd 0
-	
-		
 SECTION .text
 		
 ;; _ConvertX86:	 
@@ -109,16 +104,13 @@
 	xor eax,ecx
 	je .L1
 	
-	pusha
-	
+	push ebx
+
 	mov eax,1
 	cpuid
-
-	mov [cpu_flags],edx
+	mov eax,edx
 
-	popa
-
-	mov eax,[cpu_flags]
+	pop ebx
 
 .L1:	
 	ret