Subversion Repositories Kolibri OS

Rev

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

  1. format ELF
  2. section '.text' executable
  3. public memset
  4.  
  5. memset:
  6.   push  edi
  7.   mov   edi,[esp+8]
  8.   mov   eax,[esp+12]
  9.   mov   ecx,[esp+16]
  10.   jecxz  .no_set
  11.   cld
  12.   rep   stosb
  13. .no_set:
  14.   mov eax, [esp+8]
  15.   pop   edi
  16.   ret
  17.