Subversion Repositories Kolibri OS

Rev

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

Rev 31 Rev 68
Line 183... Line 183...
183
    mov  eax,5       ; error 5 - out of memory
183
    mov  eax,5       ; error 5 - out of memory
184
    jmp  copy_error  ; print error code now
184
    jmp  copy_error  ; print error code now
185
  .ok_memory:
185
  .ok_memory:
Line 186... Line 186...
186
 
186
 
187
    ; save number of blocks to source_info
187
    ; save number of blocks to source_info
188
    shr  ebx,9       ; divide by 512
188
    add  ebx,511
189
    inc  ebx         ; blocks++
189
    shr  ebx,9       ; round up to 512 boundary
190
    mov  [source_info.blocks],ebx
190
    mov  [source_info.blocks],ebx
191
    ; read the source file
191
    ; read the source file
192
    mov  eax,58
192
    mov  eax,58
193
    mov  ebx,source_info
193
    mov  ebx,source_info