Subversion Repositories Kolibri OS

Rev

Rev 115 | Rev 341 | Go to most recent revision | Blame | Compare with Previous | 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    reserve_hd_channel
  20.      call restorefatchain      ; restore FAT !!!
  21.      mov  eax,image_save
  22.      mov  ebx,1440*1024        ; size 1440 Kb
  23.      mov  ecx,0x100000         ; address of image
  24.      call file_write
  25.      call    free_hd_channel
  26.      mov  [esp+36],eax
  27.      ret
  28.