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
|
; Compare EAX and ECX. If they are equal then that means the bit wasn't
|
||||||
; flipped, and CPUID isn't supported.
|
; flipped, and CPUID isn't supported.
|
||||||
xor eax, ecx
|
cmp eax, ecx
|
||||||
jz .no_cpuid
|
je .no_cpuid
|
||||||
ret
|
ret
|
||||||
.no_cpuid:
|
.no_cpuid:
|
||||||
mov al, "1"
|
mov al, "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user