mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use cmp and je instead of xor and jz
This commit is contained in:
@@ -139,8 +139,8 @@ check_cpuid:
|
||||
|
||||
; Compare EAX and ECX. If they are equal then that means the bit wasn't
|
||||
; flipped, and CPUID isn't supported.
|
||||
xor eax, ecx
|
||||
jz .no_cpuid
|
||||
cmp eax, ecx
|
||||
je .no_cpuid
|
||||
ret
|
||||
.no_cpuid:
|
||||
mov al, "1"
|
||||
|
||||
Reference in New Issue
Block a user