소스 검색

More work on vbr

exp
Jørn Guldberg 5 년 전
부모
커밋
398d1ad57c
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. +7
    -5
      vbr.nasm

+ 7
- 5
vbr.nasm 파일 보기

@ -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.

불러오는 중...
취소
저장