Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6797 → Rev 6798

/kernel/trunk/fs/fat.inc
1410,26 → 1410,36
push edi esi
mov edi, esi
mov esi, ebp
test byte [ebp-4], 1
jz .ansi
.uni:
cmp byte [ebp-4], 2
jz .utf16
cmp byte [ebp-4], 3
jz .utf8
@@:
lodsw
stosw
test eax, eax
jnz .uni
call uni2ansi_char
stosb
test al, al
jnz @b
pop esi edi
add esi, 520
add esi, 264
.ret:
ret
 
.ansi:
.utf8:
push ecx
mov ecx, 519
call UTF16to8_string
pop ecx
jmp @f
 
.utf16:
lodsw
call uni2ansi_char
stosb
test al, al
jnz .ansi
stosw
test eax, eax
jnz .utf16
@@:
pop esi edi
add esi, 264
add esi, 520
ret
 
bdfe_to_fat_entry: