2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-22 13:58:47 +01:00
kolibrios-nvme-driver/drivers/nvme/lib.inc

36 lines
962 B
PHP
Raw Normal View History

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
2024-08-01 18:02:07 +02:00
proc memcpyd stdcall, dest:dword, src:dword, sz:dword
2024-06-13 00:02:32 +02:00
push esi edi
mov esi, [src]
mov edi, [dest]
mov ecx, [sz]
2024-08-01 18:02:07 +02:00
rep movsd
2024-06-13 00:02:32 +02:00
pop edi esi
ret
endp
2024-07-30 18:39:00 +02:00
; vim: syntax=fasm