Subversion Repositories Kolibri OS

Rev

Rev 75 | Rev 115 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 mario79 1
sysfn_saveramdisk:    ; 18.6 = SAVE FLOPPY IMAGE (HD version only)
1 ha 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,[3010h]
15
     mov edx,[edx+10h]
16
     add edx,ecx
17
 img_save_hd_3:
94 mario79 18
     call    reserve_hd1
1 ha 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
75 diamond 24
     mov  [esp+36],eax
1 ha 25
     ret