Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
F1L1Pv2 committed Feb 28, 2024
1 parent 039cb17 commit 56f9e1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/kernel/core/memory.asm
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ write_in_correct_size:
push ecx
push edx

mov ecx, 1000
mov ecx, 1024

cmp eax, 1000
cmp eax, 1024
jge .kilo_bytes

.bytes:
Expand All @@ -48,7 +48,7 @@ write_in_correct_size:
mov edx, 0
div ecx

cmp eax, 1000
cmp eax, 1024
jge .mega_bytes


Expand All @@ -67,7 +67,7 @@ write_in_correct_size:
mov edx, 0
div ecx

cmp eax, 1000
cmp eax, 1024
jge .giga_bytes


Expand Down

0 comments on commit 56f9e1c

Please sign in to comment.