diff --git a/vbr.nasm b/vbr.nasm index 2c54e31..2ff530d 100644 --- a/vbr.nasm +++ b/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 \ No newline at end of file