search for: file_left

Displaying 6 results from an estimated 6 matches for "file_left".

Did you mean: fib_left
2008 Jul 16
1
[PATCH] isolinux: rename CurDir to CurrentDir
...ax + mov [CurrentDir+dir_clust],eax ; Look for an isolinux directory, and if found, ; make it the current directory instead of the 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 pu...
2008 Nov 27
1
RFC: COMBOOT API directory calls
...ements, 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 first: ; ; Directory structure. This holds th...
2009 Mar 21
0
[PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
...; 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 <- 1 ret ; @@ -1289,7 +1291,7 @@ close_dir: .closed: ret ; -; searchdir: +; searchdir4a...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...d_dir: + ; Copy current directory name to CurrentDirName + push si + push di + mov si,di + mov di,CurrentDirName + call strcpy + mov byte [di],0 ;done in case it's not word aligned + dec di + mov byte [di],'/' + pop di + pop si + mov [CurrentDir+dir_len],eax mov eax,[si+file_left] mov [CurrentDir+dir_clust],eax diff --git a/core/ldlinux.asm b/core/ldlinux.asm index c7f6577..32a9d2d 100644 --- a/core/ldlinux.asm +++ b/core/ldlinux.asm @@ -44,6 +44,11 @@ MAX_OPEN equ (1 << MAX_OPEN_LG2) SECTOR_SHIFT equ 9 SECTOR_SIZE equ (1 << SECTOR_SHIFT) +DIRENT_SHIFT equ...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...d_dir: + ; Copy current directory name to CurrentDirName + push si + push di + mov si,di + mov di,CurrentDirName + call strcpy + mov byte [di],0 ;done in case it's not word aligned + dec di + mov byte [di],'/' + pop di + pop si + mov [CurrentDir+dir_len],eax mov eax,[si+file_left] mov [CurrentDir+dir_clust],eax diff --git a/core/ldlinux.asm b/core/ldlinux.asm index c7f6577..e5983b5 100644 --- a/core/ldlinux.asm +++ b/core/ldlinux.asm @@ -44,6 +44,11 @@ MAX_OPEN equ (1 << MAX_OPEN_LG2) SECTOR_SHIFT equ 9 SECTOR_SIZE equ (1 << SECTOR_SHIFT) +DIRENT_SHIFT equ...
2008 Nov 10
2
[PATCH 1/1] COMBOOT API: Add get current working directory call to most
...; Search for /isolinux + push di call searchdir_iso + pop di jz .no_isolinux_dir .found_dir: + ; Copy current directory name to CurrentDirName + push si + push di + mov si,di + mov di,CurrentDirName + call strcpy + pop di + pop si + mov [CurrentDir+dir_len],eax mov eax,[si+file_left] mov [CurrentDir+dir_clust],eax diff --git a/core/ldlinux.asm b/core/ldlinux.asm index c7f6577..75e8fef 100644 --- a/core/ldlinux.asm +++ b/core/ldlinux.asm @@ -44,6 +44,8 @@ MAX_OPEN equ (1 << MAX_OPEN_LG2) SECTOR_SHIFT equ 9 SECTOR_SIZE equ (1 << SECTOR_SHIFT) +ROOT_DIR_WORD equ...