mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 09:04:49 -04:00
Save some space
This commit is contained in:
parent
50ffb9c67a
commit
a682a77b47
@ -57,6 +57,7 @@ rm_start:
|
||||
|
||||
ASM_KERNEL_BASE equ 0x100 ; 0x0100:0x0 = 0x1000
|
||||
sectors equ 0x20 ; sectors to read
|
||||
bootdev equ 0x0
|
||||
|
||||
; Reset disk drive
|
||||
xor ax, ax
|
||||
@ -75,7 +76,7 @@ rm_start:
|
||||
xor ch, ch ; Cylinder 0
|
||||
mov cl, 2 ; Sector 2
|
||||
xor dh, dh ; Head 0
|
||||
mov dl, [bootdev] ; Drive
|
||||
mov dl, bootdev ; Drive
|
||||
int 0x13
|
||||
|
||||
jc read_failed
|
||||
@ -116,8 +117,6 @@ error_end:
|
||||
read_failed_msg db 'Read disk failed', 0
|
||||
load_failed db 'Kernel loading failed', 0
|
||||
|
||||
bootdev db 0
|
||||
|
||||
; Make a real bootsector
|
||||
|
||||
times 510-($-$$) db 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user