Subversion Repositories Kolibri OS

Rev

Rev 6328 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;-----------------------------------------------------------
  2. ;---------------save in file from memory--------------------
  3. ;-----------------------------------------------------------
  4. save_file:
  5.          mov [size_to_save],ecx
  6.          mov [pointer_to_data],ebx
  7.          mov [full_file_path],eax
  8.  
  9.          mov esi,[full_file_path]
  10.          mov edi,filepath
  11.          mov ecx,256
  12.          rep movsd
  13.  
  14.          xor eax,eax
  15.          mov ebx,[size_to_save]
  16.          mov ecx,[pointer_to_data]
  17.          mov edx,filepath
  18.  
  19.          mov dword[file_information],SSF_CREATE_FILE
  20.          mov [file_information+4],eax
  21.          mov [file_information+8],eax
  22.          mov [file_information+12],ebx
  23.          mov [file_information+16],ecx
  24.          mov [file_information+20],al
  25.          mov [file_information+21],edx
  26.  
  27.          mcall SF_FILE,file_information
  28.  
  29.         ret
  30.  
  31. ;----------------------------------------------------------
  32. ;-------------file information structure-------------------
  33. ;----------------------------------------------------------
  34.  
  35. file_information FileInfoBlock 5,0,0,0,bufer_for_info,0,filepath
  36.  
  37. filepath rb 1040
  38.  
  39. bufer_for_info  rd 10
  40. full_file_path  dd 0
  41. where_load_file dd 0
  42. size_to_save    dd 0
  43. pointer_to_data dd 0