2024-06-13 00:02:32 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;;
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;; GNU GENERAL PUBLIC LICENSE ;;
|
|
|
|
;; Version 2, June 1991 ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2024-07-08 21:49:43 +02:00
|
|
|
proc memsetdz stdcall, dest:dword, sz:dword
|
2024-06-13 00:02:32 +02:00
|
|
|
|
|
|
|
push edi
|
|
|
|
mov edi, [dest]
|
|
|
|
mov ecx, [sz]
|
2024-07-08 21:49:43 +02:00
|
|
|
xor eax, eax
|
|
|
|
rep stosd
|
2024-06-13 00:02:32 +02:00
|
|
|
pop edi
|
|
|
|
ret
|
|
|
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
proc memcpy stdcall, dest:dword, src:dword, sz:dword
|
|
|
|
|
|
|
|
push esi edi
|
|
|
|
mov esi, [src]
|
|
|
|
mov edi, [dest]
|
|
|
|
mov ecx, [sz]
|
|
|
|
rep movsb
|
|
|
|
pop edi esi
|
|
|
|
ret
|
|
|
|
|
|
|
|
endp
|