Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1230 → Rev 1231

/kernel/trunk/sec_loader/trunk/parse_def_sect.inc
1662,7 → 1662,7
test ax,ax
jnz .exit
 
mov si,shot_name_fat
lea si,[shot_name_fat] ; desination name of file
 
;âû÷èñëèì óêàçàòåëü íà êîðíåâóþ äèðåêòîðèþ
mov di,firstDataSect
1672,7 → 1672,6
;di= Ýòî ñìåùåíèå îò íà÷àëà áóôåðà äî ðóò äèðåêòîðèè. â ïðåäåëàõ 64 êá.
;çàãðóçèì çíà÷åíèå - ò.å. êîë-âî ýëåìåíòîâ, êîòîðûå ìû ìîæåì ïðîñìàòðèâàòü.
mov dx,root_dir_entry_count
mov si,point_to_dest_file_name
mov ax,info_real_mode_size
add ax,0x1000
1680,40 → 1679,46
 
mov gs,ax
.loop_size_root_dir:
DEBUG1 equ 0
if DEBUG1
pushad
push di
mov eax,dword[gs:di]
lea si,[check_root_fat_+14]
mov dword [ds:si],'----'
mov dword [ds:si+4],'----'
mov dword [ds:si+8],'----'
mov dword[ds:si],eax
mov eax,dword[gs:di+4]
mov dword[ds:si+4],eax
mov eax,dword[gs:di+8]
mov dword[ds:si+8],eax
 
if DEBUG
; pushad
; push di
; mov eax,dword[gs:di]
; mov si,(check_root_fat_+14)
; mov dword [ds:si],'____'
; mov dword [ds:si+4],'____'
; mov dword[ds:si],eax
; mov eax,dword[gs:di+4]
; mov dword[ds:si+4],eax
;
;
; xor eax,eax
; mov ax,gs;point_next_fat_str
; mov cx,0x0a
; mov di,check_root_fat_
; mov dword [di],' '
; mov word [di+4],' '
; call decode
; xor eax,eax
; pop ax
; mov di,(check_root_fat_+7)
; mov dword [di],' '
; mov word [di+4],' '
; call decode
xor eax,eax
mov ax,gs;point_next_fat_str
mov cx,0x0a
mov di,check_root_fat_
mov dword [di],' '
mov word [di+4],' '
call decode
xor eax,eax
pop ax
mov di,(check_root_fat_+7)
mov dword [di],' '
mov word [di+4],' '
call decode
 
;Show size
; mov si,check_root_fat_
; call printplain
lea si,[check_root_fat_]
call printplain
 
; xor ax,ax
; int 0x16
; popad
lea si,[shot_name_fat]
call printplain
 
xor ax,ax
int 0x16
popad
end if
 
xor bx,bx
1720,10 → 1725,25
mov cx,11 ;size of name in struct FAT
 
@@:
mov al,byte [es:si+bx]
mov al,byte [ds:si+bx] ;ds:si - point to name of convertion variable.
mov ah,byte [gs:di+bx] ;gs:di - point to name in fat struct
inc bx
 
if DEBUG
; pushad
; lea si,[check_root_fat_+14]
; mov dword [ds:si],'----'
; mov word [ds:si],ax
; call printplain
 
; xor ax,ax
; int 0x16
 
; popad
end if
 
 
 
cmp ah,al
jnz .no_equal
 
1750,10 → 1770,12
if DEBUG
pushad
;Show size
mov si,check_name_fat_msg_n
lea si,[check_name_fat_msg_n]
test ax,ax
jz @f
mov si,check_name_fat_msg_y
lea si,[check_name_fat_msg_y]
call printplain
lea si,[alarm_msg]
@@: call printplain
popad
end if