Subversion Repositories Kolibri OS

Rev

Rev 83 | Rev 86 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 84
Line 51... Line 51...
51
; operation codes:
51
; operation codes:
52
; 0 : read file
52
; 0 : read file
53
; 1 : read folder
53
; 1 : read folder
54
; 2 : create/rewrite file
54
; 2 : create/rewrite file
55
; 3 : write/append to file - not implemented yet
55
; 3 : write/append to file - not implemented yet
56
; 4 : delete file - not implemented yet
56
; 4 : set end of file - not implemented yet
-
 
57
; 5 : get file attributes structure - not implemented yet
57
; 5 : create directory - not implemented yet
58
; 6 : start application - not implemented yet
58
; 6 : rename file/directory - not implemented yet
59
; 7 : delete file - not implemented yet
59
; 7 : get file attributes structure - not implemented yet
60
; 8 : create directory - not implemented yet
60
; 8 : start application - not implemented yet
61
; 9 : rename file/directory - not implemented yet
Line 61... Line 62...
61
 
62
 
62
        add     eax, std_application_base_address
63
        add     eax, std_application_base_address
63
; parse file name
64
; parse file name
64
        xchg    ebx, eax
65
        xchg    ebx, eax
65
        lea     esi, [ebx+20]
66
        lea     esi, [ebx+20]
-
 
67
        lodsb
-
 
68
        test    al, al
-
 
69
        jnz     @f
-
 
70
        mov     esi, [esi]
-
 
71
        add     esi, std_application_base_address
-
 
72
        lodsb
66
        lodsb
73
@@:
67
        cmp     al, '/'
74
        cmp     al, '/'
68
        jz      @f
75
        jz      @f
69
.notfound:
76
.notfound:
70
        mov     dword [esp+36], 5       ; file not found
77
        mov     dword [esp+36], 5       ; file not found