forked from KolibriOS/kolibrios
The 70 system function have call without shift registers.
git-svn-id: svn://kolibrios.org@1491 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
111f6efd6a
commit
04bf87db30
@ -21,12 +21,10 @@ saverd_fileinfo:
|
|||||||
endg
|
endg
|
||||||
sysfn_saveramdisk: ; 18.6 = SAVE FLOPPY IMAGE (HD version only)
|
sysfn_saveramdisk: ; 18.6 = SAVE FLOPPY IMAGE (HD version only)
|
||||||
call restorefatchain
|
call restorefatchain
|
||||||
mov eax, saverd_fileinfo
|
mov ebx, saverd_fileinfo
|
||||||
mov [saverd_fileinfo.name], ecx
|
mov [saverd_fileinfo.name], ecx
|
||||||
pushad
|
pushad
|
||||||
push eax
|
call file_system_lfn ;in ebx
|
||||||
call file_system_lfn
|
|
||||||
pop eax
|
|
||||||
popad
|
popad
|
||||||
mov [esp+32], eax
|
mov [esp+32], eax
|
||||||
ret
|
ret
|
||||||
|
@ -544,10 +544,8 @@ proc read_file stdcall,file_name:dword, buffer:dword, off:dword,\
|
|||||||
mov [name], ebx
|
mov [name], ebx
|
||||||
|
|
||||||
pushad
|
pushad
|
||||||
push eax
|
lea ebx, [cmd]
|
||||||
lea eax, [cmd]
|
|
||||||
call file_system_lfn
|
call file_system_lfn
|
||||||
pop eax
|
|
||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
@ -169,10 +169,6 @@ iglobal
|
|||||||
dd 0
|
dd 0
|
||||||
dd syscall_putimage_palette; 65-PutImagePalette
|
dd syscall_putimage_palette; 65-PutImagePalette
|
||||||
dd sys_process_def ; 66-Process definitions - keyboard
|
dd sys_process_def ; 66-Process definitions - keyboard
|
||||||
dd 0
|
|
||||||
dd 0
|
|
||||||
dd 0
|
|
||||||
dd file_system_lfn ; 70-Common file system interface, version 2
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; NEW SYSTEM FUNCTIONS TABLE ;;
|
;; NEW SYSTEM FUNCTIONS TABLE ;;
|
||||||
@ -250,7 +246,7 @@ iglobal
|
|||||||
dd syscall_move_window ; 67-Window move or resize
|
dd syscall_move_window ; 67-Window move or resize
|
||||||
dd f68 ; 68-Some internal services
|
dd f68 ; 68-Some internal services
|
||||||
dd sys_debug_services ; 69-Debug
|
dd sys_debug_services ; 69-Debug
|
||||||
dd cross_order ; 70-Common file system interface, version 2
|
dd file_system_lfn ; 70-Common file system interface, version 2
|
||||||
dd syscall_window_settings ; 71-Window settings
|
dd syscall_window_settings ; 71-Window settings
|
||||||
dd sys_sendwindowmsg ; 72-Send window message
|
dd sys_sendwindowmsg ; 72-Send window message
|
||||||
times 255 - ( ($-servetable2) /4 ) dd undefined_syscall
|
times 255 - ( ($-servetable2) /4 ) dd undefined_syscall
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
$Revision$
|
$Revision$
|
||||||
|
|
||||||
|
|
||||||
image_of_eax EQU esp+36
|
image_of_eax EQU esp+32
|
||||||
image_of_ebx EQU esp+24
|
image_of_ebx EQU esp+20
|
||||||
|
|
||||||
; System function 70 - files with long names (LFN)
|
; System function 70 - files with long names (LFN)
|
||||||
; diamond, 2006
|
; diamond, 2006
|
||||||
@ -89,9 +89,8 @@ fs_additional_handlers:
|
|||||||
dd 0
|
dd 0
|
||||||
|
|
||||||
endg
|
endg
|
||||||
|
|
||||||
file_system_lfn:
|
file_system_lfn:
|
||||||
; in: eax->fileinfo block
|
; in: ebx->fileinfo block
|
||||||
; operation codes:
|
; operation codes:
|
||||||
; 0 : read file
|
; 0 : read file
|
||||||
; 1 : read folder
|
; 1 : read folder
|
||||||
@ -105,7 +104,6 @@ file_system_lfn:
|
|||||||
; 9 : create directory
|
; 9 : create directory
|
||||||
|
|
||||||
; parse file name
|
; parse file name
|
||||||
xchg ebx, eax
|
|
||||||
lea esi, [ebx+20]
|
lea esi, [ebx+20]
|
||||||
lodsb
|
lodsb
|
||||||
test al, al
|
test al, al
|
||||||
|
Loading…
x
Reference in New Issue
Block a user