Disk reading partly done
This commit is contained in:
@@ -25,7 +25,7 @@ ebr_drive_number: db 0 ; ignore
|
||||
ebr_signature: db 29h ; boot signature, indicates that the next three fields are present (0x29)
|
||||
ebr_volume_id: db 12h, 34h, 56h, 78h ; unique id for volume tracking
|
||||
ebr_volume_label: db 'CrawShaw OS' ; must be 11 bytes
|
||||
ebr_system_id: db 'FAT12 ' ' ; must be 8 bytes
|
||||
ebr_system_id: db 'FAT12 ' ; must be 8 bytes
|
||||
|
||||
main:
|
||||
; Setup registers
|
||||
@@ -117,6 +117,7 @@ found_kernel:
|
||||
mov ax, [di+26] ; di is the address of the kernel, 26 is the offset
|
||||
mov [kernel_cluster], ax
|
||||
|
||||
; Setup registers for disk read
|
||||
mov ax, [bdb_reserved_sectors]
|
||||
mov bx, buffer
|
||||
mov cl, [bdb_sectors_per_fat]
|
||||
@@ -334,7 +335,7 @@ print_string:
|
||||
pop si
|
||||
ret
|
||||
|
||||
boot_text: db 'OK] Boot sequence begun', 0
|
||||
boot_text: db 'OK] Boot begun', 0
|
||||
kernel_found_text: db 'OK] Kernel located', 0
|
||||
kernel_loading: db 'OK] Loading kernel', 0
|
||||
disk_read_fail: db 'ERR] Disk read fail', 0
|
||||
|
||||
Reference in New Issue
Block a user