Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. sysfn_saveramdisk:    ; 18.6 = SAVE FLOPPY IMAGE (HD version only)
  2.      cmp  ebx,1
  3.      jnz  img_save_hd_1
  4.      mov  edx,bootpath             ; path = '/KOLIBRI    '
  5.      jmp  img_save_hd_3
  6.  img_save_hd_1:
  7.      cmp  ebx,2
  8.      jnz  img_save_hd_2
  9.      mov  edx,bootpath2             ; path = 0 (root dir)
  10.      jmp  img_save_hd_3
  11.  img_save_hd_2:
  12.      cmp  ebx,3
  13.      jnz  exit_for_anyone
  14.      mov edx,[0x3010]
  15.      mov edx,[edx+TASKDATA.mem_start]
  16.      add edx,ecx
  17.  img_save_hd_3:
  18.      call    reserve_hd1
  19.      call restorefatchain      ; restore FAT !!!
  20.      mov  eax,image_save
  21.      mov  ebx,1440*1024        ; size 1440 Kb
  22.      mov  ecx,0x100000         ; address of image
  23.      call file_write
  24.      mov  [esp+36],eax
  25.      ret
  26.