mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-12-23 06:18:47 +01:00
34 lines
950 B
NASM
34 lines
950 B
NASM
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
;; ;;
|
||
|
;; 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 ;;
|
||
|
;; ;;
|
||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||
|
|
||
|
proc memset stdcall, dest:dword, val:byte, sz:dword
|
||
|
|
||
|
push edi
|
||
|
mov edi, [dest]
|
||
|
mov al, [val]
|
||
|
mov ecx, [sz]
|
||
|
rep stosb
|
||
|
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
|