Subversion Repositories Kolibri OS

Rev

Rev 2 | Rev 94 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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