Displaying 5 results from an estimated 5 matches for "file_sector".
2009 Mar 21
0
[PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
...x.asm
+++ b/core/ldlinux.asm
@@ -984,10 +984,10 @@ allocate_file:
 ;	Assumes DS == ES == CS.
 ;
 ;	     If successful:
-;		ZF clear
+;		ZF set
 ;		SI	= file pointer
 ;	     If unsuccessful
-;		ZF set
+;		ZF clear
 ;		EAX clobbered
 ;
 alloc_fill_dir:
@@ -999,12 +999,14 @@ alloc_fill_dir:
 		mov [si+file_sector],eax	; Current sector
 		mov dword [si+file_bytesleft],0	; Current offset
 		mov [si+file_left],eax		; Beginning sector
+		xor bx,bx			; ZF <- 1
 		pop bx
 		ret
 .alloc_failure:
+		xor eax,eax		; ZF <- 1
+		and bx,bx		; ZF = 0; BX from allocate_file not 0
 		pop bx
-		xor eax,eax			; ZF <...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...ture for a directory starting in
+;	sector EAX.
+;
+;	Assumes DS == ES == CS.
+;
+;	     If successful:
+;		ZF clear
+;		SI	= file pointer
+;	     If unsuccessful
+;		ZF set
+;		EAX clobbered
+;
+alloc_fill_dir:
+		push bx
+		call allocate_file
+		jnz .alloc_failure
+.found:
+		mov si,bx
+		mov [si+file_sector],eax	; Current sector
+		mov dword [si+file_bytesleft],0	; Current offset
+		mov [si+file_left],eax		; Beginning sector
+		pop bx
+		ret
+
+.alloc_failure:
+		pop bx
+		xor eax,eax			; ZF <- 1
+		ret
+
+;
 ; search_dos_dir:
 ;	     Search a specific directory for a pre-mangled filename in
 ;...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...ture for a directory starting in
+;	sector EAX.
+;
+;	Assumes DS == ES == CS.
+;
+;	     If successful:
+;		ZF clear
+;		SI	= file pointer
+;	     If unsuccessful
+;		ZF set
+;		EAX clobbered
+;
+alloc_fill_dir:
+		push bx
+		call allocate_file
+		jnz .alloc_failure
+.found:
+		mov si,bx
+		mov [si+file_sector],eax	; Current sector
+		mov dword [si+file_bytesleft],0	; Current offset
+		mov [si+file_left],eax		; Beginning sector
+		pop bx
+		ret
+
+.alloc_failure:
+		pop bx
+		xor eax,eax			; ZF <- 1
+		ret
+
+;
 ; search_dos_dir:
 ;	     Search a specific directory for a pre-mangled filename in
 ;...
2008 Jul 16
1
[PATCH] isolinux: rename CurDir to CurrentDir
...root
@@ -918,12 +918,12 @@
 		call searchdir_iso
 		jz .no_isolinux_dir
 .found_dir:
-		mov [CurDir+dir_len],eax
+		mov [CurrentDir+dir_len],eax
 		mov eax,[si+file_left]
-		mov [CurDir+dir_clust],eax
+		mov [CurrentDir+dir_clust],eax
 		xor eax,eax			; Free this file pointer entry
 		xchg eax,[si+file_sector]
-		mov [CurDir+dir_lba],eax
+		mov [CurrentDir+dir_lba],eax
 %ifdef DEBUG_MESSAGES
 		push si
 		mov si,dbg_isodir_msg
@@ -1138,7 +1138,7 @@
 		push es
 		push ds
 		pop es				; ES = DS
-		mov si,CurDir
+		mov si,CurrentDir
 		cmp byte [di],'/'		; If filename begins with slash
 		jne .not_...
2008 Nov 27
1
RFC: COMBOOT API directory calls
...struc,
open_dir_t to house the needed data elements, or reuse the existing
struc?  If I should reuse open_file_t, how should I and should I
allocate a new array Dirs or reuse Files?  If I don't reuse
open_file_t, Dirs will be a necessity.
My first thoughts are that if I reuse open_file_t, that file_sector
holds the current sector number, file_left holds the starting sector
number and file_bytesleft holds the sector offset.  I just noticed the
struc dir_t in ISOLINUX but I don't think that it would be appropriate
for storing the open directories.
If I create open_dir_t, this is what I think firs...