Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
75 diamond 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:
18
     call restorefatchain      ; restore FAT !!!
19
     mov  eax,image_save
20
     mov  ebx,1440*1024        ; size 1440 Kb
21
     mov  ecx,0x100000         ; address of image
22
     call file_write
75 diamond 23
     mov  [esp+36],eax
1 ha 24
     ret