Rev 1065 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1065 | Rev 1132 | ||
---|---|---|---|
Line 51... | Line 51... | ||
51 | ; rb 3 ; BS_FilSysType, first 3 bytes |
51 | ; rb 3 ; BS_FilSysType, first 3 bytes |
52 | read_sectors dw ? |
52 | read_sectors dw ? |
53 | read_sectors2 dw ? |
53 | read_sectors2 dw ? |
54 | lookup_in_root_dir dw ? |
54 | lookup_in_root_dir dw ? |
55 | scan_for_filename dw ? |
55 | scan_for_filename dw ? |
56 | err dw ? |
56 | err_ dw ? |
57 | noloader dw ? |
57 | noloader dw ? |
58 | cachelimit dw ? |
58 | cachelimit dw ? |
59 | filesize: ; will be used to save file size |
59 | filesize: ; will be used to save file size |
60 | rb 5 ; BS_FilSysType, last 5 bytes |
60 | rb 5 ; BS_FilSysType, last 5 bytes |
61 | ; following variables are located in the place of starting code; |
61 | ; following variables are located in the place of starting code; |
Line 114... | Line 114... | ||
114 | int 12h ; ax = size of available base memory in Kb |
114 | int 12h ; ax = size of available base memory in Kb |
115 | sub ax, 94000h / 1024 |
115 | sub ax, 94000h / 1024 |
116 | jae @f |
116 | jae @f |
117 | nomem: |
117 | nomem: |
118 | mov si, nomem_str |
118 | mov si, nomem_str |
119 | jmp [err] |
119 | jmp [err_] |
120 | @@: |
120 | @@: |
121 | shr ax, 3 |
121 | shr ax, 3 |
122 | mov [cachelimit], ax ; size of cache - 1 |
122 | mov [cachelimit], ax ; size of cache - 1 |
123 | ; get type of file system - FAT12 or FAT16? |
123 | ; get type of file system - FAT12 or FAT16? |
124 | ; calculate number of clusters |
124 | ; calculate number of clusters |
Line 180... | Line 180... | ||
180 | kordldr_full: |
180 | kordldr_full: |
181 | ; ...continue loading... |
181 | ; ...continue loading... |
182 | mov di, secondary_loader_info |
182 | mov di, secondary_loader_info |
183 | call load_file |
183 | call load_file |
184 | test bx, bx |
184 | test bx, bx |
185 | mov bx, [err] |
185 | mov bx, [err_] |
186 | jz @f |
186 | jz @f |
187 | mov si, aKernelNotFound |
187 | mov si, aKernelNotFound |
188 | jmp bx |
188 | jmp bx |
189 | @@: |
189 | @@: |
190 | ; for subsequent calls to callback function, hook error handler |
190 | ; for subsequent calls to callback function, hook error handler |