Subversion Repositories Kolibri OS

Rev

Rev 2 | Rev 94 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 75
Line 1... Line 1...
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:
Line 19... Line 18...
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:
-