Subversion Repositories Kolibri OS

Rev

Rev 848 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 848 Rev 2971
Line 7... Line 7...
7
;; (C) 2004 Ville Turjanmaa, License: GPL                       ;;
7
;; (C) 2004 Ville Turjanmaa, License: GPL                       ;;
8
;; Addings by M.Lisovin                                         ;;
8
;; Addings by M.Lisovin                                         ;;
9
;; LFN support by diamond                                       ;;
9
;; LFN support by diamond                                       ;;
10
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
10
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 11... Line 11...
11
 
11
 
Line 12... Line 12...
12
$Revision: 848 $
12
$Revision: 2971 $
Line 13... Line 13...
13
 
13
 
Line 856... Line 856...
856
	jz	.notfound
856
	jz	.notfound
857
	movzx	eax, word [edi+26]
857
	movzx	eax, word [edi+26]
858
	mov	[esp+8], eax
858
	mov	[esp+8], eax
859
	mov	dword [esp+4], ramdisk_notroot_first
859
	mov	dword [esp+4], ramdisk_notroot_first
860
	mov	dword [esp], ramdisk_notroot_next
860
	mov	dword [esp], ramdisk_notroot_next
-
 
861
	test	eax, eax
-
 
862
	jnz	.loop
-
 
863
	mov	dword [esp+4], ramdisk_root_first
-
 
864
	mov	dword [esp], ramdisk_notroot_next
861
	jmp	.loop
865
	jmp	.loop
862
.notfound:
866
.notfound:
863
	add	esp, 12
867
	add	esp, 12
864
	pop	edi esi
868
	pop	edi esi
865
	stc
869
	stc
Line 889... Line 893...
889
;  ret ebx = bytes read or 0xffffffff file not found
893
;  ret ebx = bytes read or 0xffffffff file not found
890
;      eax = 0 ok read or other = errormsg
894
;      eax = 0 ok read or other = errormsg
891
;
895
;
892
;--------------------------------------------------------------
896
;--------------------------------------------------------------
893
fs_RamdiskRead:
897
fs_RamdiskRead:
894
 
-
 
895
	cmp	byte [esi], 0
898
	cmp	byte [esi], 0
896
	jnz	@f
899
	jnz	@f
897
	or	ebx, -1
900
	or	ebx, -1
898
	mov	eax, 10 	; access denied
901
	mov	eax, 10 	; access denied
899
	ret
902
	ret