Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #define USE_ESI
  3. #define USE_EDI
  4. #include <libc/asmdefs.h>
  5. #include<libc/asm.h>
  6.  
  7. MK_C_SYM(_movedatal)    /* src_sel, src_ofs, dest_sel, dest_ofs, len */
  8.         ENTER
  9.  
  10.         pushw   %ds
  11.         pushw   %es
  12.  
  13.         movl    ARG1,%eax
  14.         movw    %ax,%ds
  15.         movl    ARG2,%esi
  16.  
  17.         movl    ARG3,%eax
  18.         movw    %ax,%es
  19.         movl    ARG4,%edi
  20.  
  21.         movl    ARG5,%ecx
  22.         cld
  23.         rep
  24.         movsl
  25.  
  26.         popw    %es
  27.         popw    %ds
  28.  
  29.         LEAVE
  30.