Optimize 2 bytes away with partial bss zeroing

This commit is contained in:
shikhin 2023-03-19 16:58:09 +05:30
parent ce07a23355
commit 91c56547e5
1 changed files with 4 additions and 2 deletions

View File

@ -38,10 +38,11 @@ start:
; Clear BSS
;xor al, al
mov di, _bss_start
mov cx, _bss_end - _bss_start
mov cx, _bss_end - _bss_start - 1
rep stosb
mov [boot_disk], dl
; At boot_disk
mov [di], dl
initialize_mouse:
; Initialize mouse
@ -467,6 +468,7 @@ mouse_buttons resb 1
mouse_column resb 1
mouse_row resb 1
; Last thing in bss
boot_disk resb 1
_bss_end: