Subversion Repositories Kolibri OS

Rev

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

  1.      cmp  eax,6         ; SAVE FLOPPY IMAGE (HD version only)
  2.      jnz  nosaveimage
  3.      cmp  ebx,1
  4.      jnz  img_save_hd_1
  5.      mov  edx,bootpath             ; path = '/KOLIBRI    '
  6.      jmp  img_save_hd_3
  7.  img_save_hd_1:
  8.      cmp  ebx,2
  9.      jnz  img_save_hd_2
  10.      mov  edx,bootpath2             ; path = 0 (root dir)
  11.      jmp  img_save_hd_3
  12.  img_save_hd_2:
  13.      cmp  ebx,3
  14.      jnz  exit_for_anyone
  15.      mov edx,[3010h]
  16.      mov edx,[edx+10h]
  17.      add edx,ecx
  18.  img_save_hd_3:
  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.      ret
  25.  
  26.    nosaveimage:
  27.