Rev 314 | Rev 340 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 314 | Rev 321 | ||
---|---|---|---|
Line 2876... | Line 2876... | ||
2876 | * '/HD0/1/kernel.asm',0 |
2876 | * '/HD0/1/kernel.asm',0 |
2877 | * '/hd0/1/menuet/pics/tanzania.bmp',0 |
2877 | * '/hd0/1/menuet/pics/tanzania.bmp',0 |
2878 | Existing subfunctions: |
2878 | Existing subfunctions: |
2879 | * subfunction 0 - read file/folder |
2879 | * subfunction 0 - read file/folder |
2880 | * subfunction 1 - rewrite file |
2880 | * subfunction 1 - rewrite file |
2881 | * subfunction 4 - make folder |
- | |
2882 | * subfunction 5 - rename/move file/folder |
- | |
2883 | * subfunction 8 - LBA-read from device |
2881 | * subfunction 8 - LBA-read from device |
2884 | * subfunction 15 - get file system information |
2882 | * subfunction 15 - get file system information |
Line 2885... | Line 2883... | ||
2885 | 2883 | ||
2886 | ====================================================================== |
2884 | ====================================================================== |
Line 2967... | Line 2965... | ||
2967 | * ebx destroyed |
2965 | * ebx destroyed |
2968 | Remarks: |
2966 | Remarks: |
2969 | * This function is obsolete, use subfunction 2 of function 70. |
2967 | * This function is obsolete, use subfunction 2 of function 70. |
Line 2970... | Line 2968... | ||
2970 | 2968 | ||
2971 | ====================================================================== |
- | |
2972 | ============== Function 58, subfunction 4 - make folder. ============= |
- | |
2973 | ====================================================================== |
- | |
2974 | Parameters: |
- | |
2975 | * eax = 58 - function number |
- | |
2976 | * ebx = pointer to the information structure |
- | |
2977 | Format of the information structure: |
- | |
2978 | * +0: dword: 4 = subfunction number |
- | |
2979 | * +4: dword: ignored |
- | |
2980 | * +8: dword: ignored |
- | |
2981 | * +12 = +0xC: dword: ignored |
- | |
2982 | * +16 = +0x10: dword: pointer to buffer for system operations |
- | |
2983 | (4096 bytes) |
- | |
2984 | * +20 = +0x14: ASCIIZ-name of file, the rules of names forming are |
- | |
2985 | given in the general description |
- | |
2986 | Returned value: |
- | |
2987 | * eax = 0 - success, otherwise file system error code |
- | |
2988 | * ebx destroyed |
- | |
2989 | Remarks: |
- | |
2990 | * Ramdisk and floppies do not support this function, it is only |
- | |
2991 | for hard disks. |
- | |
2992 | - | ||
2993 | ====================================================================== |
- | |
2994 | ======== Function 58, subfunction 5 - rename/move file/folder. ======= |
- | |
2995 | ====================================================================== |
- | |
2996 | Parameters: |
- | |
2997 | * eax = 58 - function number |
- | |
2998 | * ebx = pointer to the information structure |
- | |
2999 | Format of the information structure: |
- | |
3000 | * +0: dword: 5 = subfunction number |
- | |
3001 | * +4: dword: ignored |
- | |
3002 | * +8: dword: ignored |
- | |
3003 | * +12 = +0xC: dword: ignored |
- | |
3004 | * +16 = +0x10: dword: pointer to buffer for system operations |
- | |
3005 | (4096 bytes) |
- | |
3006 | * +20 = +0x14: ASCIIZ-name of file, the rules of names forming are |
- | |
3007 | given in the general description |
- | |
3008 | * +20+n: (at once after terminating null character) new |
- | |
3009 | ASCIIZ-name, must start from /hd/1, that is interpreted as |
- | |
3010 | the hard disk, indicated in the first name |
- | |
3011 | (moving from one disk to another is not supported) |
- | |
3012 | Returned value: |
- | |
3013 | * eax = 0 - success, otherwise file system error code |
- | |
3014 | * ebx destroyed |
- | |
3015 | Remarks: |
- | |
3016 | * Ramdisk and floppies do not support this function, it is only |
- | |
3017 | for hard disks. |
- | |
3018 | * If the new ASCIIZ-name is strongly incorrect, i.e. does not start |
- | |
3019 | from /hd/1, /hd/first, /harddisk/1, /harddisk/first or after this |
- | |
3020 | space or null character follows, function returns, strangely |
- | |
3021 | enough, error code 4. It is the only function which returns |
- | |
3022 | this code. |
- | |
3023 | - | ||
3024 | ====================================================================== |
2969 | ====================================================================== |
3025 | ========= Function 58, subfunction 8 - LBA-read from device. ========= |
2970 | ========= Function 58, subfunction 8 - LBA-read from device. ========= |
3026 | ====================================================================== |
2971 | ====================================================================== |
3027 | Parameters: |
2972 | Parameters: |
3028 | * eax = 58 - function number |
2973 | * eax = 58 - function number |
Line 4058... | Line 4003... | ||
4058 | * subfunction 4 - set file size |
4003 | * subfunction 4 - set file size |
4059 | * subfunction 5 - get attributes of file/folder |
4004 | * subfunction 5 - get attributes of file/folder |
4060 | * subfunction 6 - set attributes of file/folder |
4005 | * subfunction 6 - set attributes of file/folder |
4061 | * subfunction 7 - start application |
4006 | * subfunction 7 - start application |
4062 | * subfunction 8 - delete file/folder |
4007 | * subfunction 8 - delete file/folder |
- | 4008 | * subfunction 9 - create folder |
|
4063 | For CD-drives due to hardware limitations only subfunctions |
4009 | For CD-drives due to hardware limitations only subfunctions |
4064 | 0,1,5 and 7 are available, other subfunctions return error |
4010 | 0,1,5 and 7 are available, other subfunctions return error |
4065 | with code 2. |
4011 | with code 2. |
Line 4066... | Line 4012... | ||
4066 | 4012 | ||
Line 4156... | Line 4102... | ||
4156 | * +28 = +0x1C: 4*byte: date of last modification |
4102 | * +28 = +0x1C: 4*byte: date of last modification |
4157 | * +32 = +0x20: qword: file size in bytes (up to 16777216 Tb) |
4103 | * +32 = +0x20: qword: file size in bytes (up to 16777216 Tb) |
4158 | * +40 = +0x28: name |
4104 | * +40 = +0x28: name |
4159 | * for ASCII format: maximum length is 263 characters |
4105 | * for ASCII format: maximum length is 263 characters |
4160 | (263 bytes), byte after the name has value 0 |
4106 | (263 bytes), byte after the name has value 0 |
4161 | * äëÿ ôîðìàòà UNICODE: maximum length is 259 characters |
4107 | * for UNICODE format: maximum length is 259 characters |
4162 | (518 bytes), 2 bytes after the name have value 0 |
4108 | (518 bytes), 2 bytes after the name have value 0 |
4163 | Time format: |
4109 | Time format: |
4164 | * +0: byte: seconds |
4110 | * +0: byte: seconds |
4165 | * +1: byte: minutes |
4111 | * +1: byte: minutes |
4166 | * +2: byte: hours |
4112 | * +2: byte: hours |
Line 4391... | Line 4337... | ||
4391 | * The function is not supported for CD (returns error code 2). |
4337 | * The function is not supported for CD (returns error code 2). |
4392 | * The function can delete only empty folders (attempt to delete |
4338 | * The function can delete only empty folders (attempt to delete |
4393 | nonempty folder results in error with code 10, "access denied"). |
4339 | nonempty folder results in error with code 10, "access denied"). |
Line 4394... | Line 4340... | ||
4394 | 4340 | ||
- | 4341 | ====================================================================== |
|
- | 4342 | ============= Function 70, subfunction 9 - create folder. ============ |
|
- | 4343 | ====================================================================== |
|
- | 4344 | Parameters: |
|
- | 4345 | * eax = 70 - function number |
|
- | 4346 | * ebx = pointer to the information structure |
|
- | 4347 | Format of the information structure: |
|
- | 4348 | * +0: dword: 9 = subfunction number |
|
- | 4349 | * +4: dword: 0 (reserved) |
|
- | 4350 | * +8: dword: 0 (reserved) |
|
- | 4351 | * +12 = +0xC: dword: 0 (reserved) |
|
- | 4352 | * +16 = +0x10: dword: 0 (reserved) |
|
- | 4353 | * +20 = +0x14: ASCIIZ-name of folder, the rules of names forming are |
|
- | 4354 | given in the general description |
|
- | 4355 | or |
|
- | 4356 | * +20 = +0x14: db 0 |
|
- | 4357 | * +21 = +0x15: dd pointer to ASCIIZ-string with folder name |
|
- | 4358 | Returned value: |
|
- | 4359 | * eax = 0 - success, otherwise file system error code |
|
- | 4360 | * ebx destroyed |
|
- | 4361 | Remarks: |
|
- | 4362 | * The function is not supported for CD (returns error code 2). |
|
- | 4363 | * The parent folder must already exist. |
|
- | 4364 | * If target folder already exists, function returns success (eax=0). |
|
- | 4365 | ||
4395 | ====================================================================== |
4366 | ====================================================================== |
4396 | ========== Function 71, subfunction 1 - set window caption. ========== |
4367 | ========== Function 71, subfunction 1 - set window caption. ========== |
4397 | ====================================================================== |
4368 | ====================================================================== |
4398 | Parameters: |
4369 | Parameters: |
4399 | * eax = 71 - function number |
4370 | * eax = 71 - function number |