|
|
@ -32,7 +32,7 @@ BITS 16 |
|
|
|
jnc ext_disk_supported |
|
|
|
; The System does support exented read write |
|
|
|
mov si, vbr_lsfs_disk_error_msg |
|
|
|
call print |
|
|
|
call 0x00:tmp_print |
|
|
|
cli |
|
|
|
hlt |
|
|
|
|
|
|
@ -123,9 +123,12 @@ ext_disk_supported: |
|
|
|
; dx data read |
|
|
|
; es = remember to restore es if this has to be saved. |
|
|
|
|
|
|
|
mov ax, [vbr_LBA_address] |
|
|
|
inc ax |
|
|
|
call 0x00:tmp_dumpax |
|
|
|
mov dl, [global_disk_identifier] |
|
|
|
mov WORD [DAPACK.lba_addr_dw_low], 4193 |
|
|
|
mov WORD [DAPACK.blkcnt], 0x08 |
|
|
|
mov WORD [DAPACK.lba_addr_dw_low], ax |
|
|
|
mov WORD [DAPACK.blkcnt], 0x10 |
|
|
|
mov WORD [DAPACK.db_addr_segment], 0x7e0 |
|
|
|
mov WORD [DAPACK.db_addr_offset], 0x00 |
|
|
|
mov si, DAPACK ; address of "disk address packet" |
|
|
@ -232,7 +235,6 @@ times 510-($-$$) db 0 |
|
|
|
dw 0x1818; Signature, homemade, sshould it be 0xAA55? |
|
|
|
|
|
|
|
; rest of VBR, which has to be loaded in the first part of the VBR |
|
|
|
%include "lib/os_lib.nasm" |
|
|
|
;%include "filesystems/lsfs/lsfs.nasm" |
|
|
|
|
|
|
|
incbin "../lsfs_16-bit/disk.out" |
|
|
|
; By specification the max size can be 1MB of the compiled file. |