瀏覽代碼

Mid updating file system, SingOS does not support updated version yet

master
Jørn Guldberg 5 年之前
父節點
當前提交
2c5a5ebbda
共有 1 個文件被更改,包括 36 次插入9 次删除
  1. +36
    -9
      vbr.nasm

+ 36
- 9
vbr.nasm 查看文件

@ -207,15 +207,16 @@ DAPACK:
; Entry one:
;.filename:
db 'LSFS v0.1.2-exp', 13, 10, '(LessSimpelFileSystem)', 13, 10, 'Developed to SingOS', 13, 10, 'by Jorn Guldberg', 13, 10, 0 ; 66 chars + 8 bytes
times 163 db 0 ; 256 bytes file system informaiton
db 'LSFS v0.1.4-exp', 13, 10, '(LessSimpelFileSystem)', 13, 10, 'Developed to SingOS', 13, 10, 'by Jorn Guldberg', 13, 10, 0 ; 66 chars + 8 bytes
times 175 db 0 ; 256 bytes file system informaiton
dw 24, 0x00, 0x00, 0x00 ; offset on disk asb LBA address
dw 23, 0x00, 0x00, 0x00 ; offset on disk asb LBA address
dw 2306, 0x00, 0x00, 0x00 ; Next free LBA partition index free
dw 0x04, 0x00, 0x00, 0x00 ; Next free uniqe ID
dw 0x00, 0x00, 0x00, 0x00 ; next_sector_reuse_pointer
dw 0x00, 0x00, 0x00, 0x00 ; last_sector_index_on_partition
dw 0xff, 0xff, 0xff, 0xff ; last_sector_index_on_partition
dw 0x00, 0x00, 0x00, 0x00 ; sectors_size_on_disk
times 208 db 0
times 200 db 0
;db 'File_System_Control_information', 0
;times 224 db 0
@ -240,8 +241,13 @@ dw 0x01, 0x0, 0x0, 0x0
dw 4096, 0x0, 0x0, 0x0
;.ext_file_data 64-bits (Extended data about the file, timestamps etc.)
dw 0x0, 0x0, 0x0, 0x0
;control_bits 64-bits
dw 0x0, 0x0, 0x0, 0x0
;control_bits 32-bits
db 0x0, 0x0, 0x0, 0x0
; entry kind
db 0x1 ; 1 is file
db 0x0, 0x0, 0x0
;.file_data_pointers
dw 89, 0x0, 0x0, 0x0
times 216 db 0
@ -255,11 +261,32 @@ dw 0x02, 0x0, 0x0, 0x0
dw 0x00, 0x10, 0x0, 0x0
;.ext_file_data 64-bits (Extended data about the file, timestamps etc.)
dw 0x0, 0x0, 0x0, 0x0
;control_bits 64-bits
dw 0x0, 0x0, 0x0, 0x0
;control_bits 32-bits
db 0x0, 0x0, 0x0, 0x0
; entry kind
db 0x1 ; 1 is file
db 0x0, 0x0, 0x0
;.file_data_pointers
dw 97, 0x0, 0x0, 0x0
times 216 db 0
; Entry Three:
db 'First_Folder', 0
times 243 db 0
;.file_id:
dw 0x03, 0x0, 0x0, 0x0
;.file_size
dw 0x20, 0x00, 0x0, 0x0
;.ext_file_data 64-bits (Extended data about the file, timestamps etc.)
dw 0x0, 0x0, 0x0, 0x0
;control_bits 32-bits
db 0x0, 0x0, 0x0, 0x0
; entry kind
db 0x2 ; 1 is folder
db 0x0, 0x0, 0x0
;.file_data_pointers
dw 0x0, 0x0, 0x0, 0x0
times 216 db 0
times 4096 + (32768-($-$$)) db 0

Loading…
取消
儲存