-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMemory_Move.asm
61 lines (54 loc) · 1.26 KB
/
Memory_Move.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
;==============================================================================
;
; UASM64 Library
;
; https://github.com/mrfearless/UASM64-Library
;
;==============================================================================
.686
.MMX
.XMM
.x64
option casemap : none
IF @Platform EQ 1
option win64 : 11
ENDIF
option frame : auto
include UASM64.inc
.CODE
UASM64_ALIGN
;------------------------------------------------------------------------------
; Memory_Move
;
; Copy a specified amount of bytes of memory from the source buffer to the
; destination buffer.
;
; Parameters:
;
; * pMemSource - source address of memory to copy from.
;
; * pMemDestination - destination address of memory to copy to.
;
; * qwAmount - the amount of bytes to copy from pMemSource to pMemDestination.
;
; Returns:
;
; No return value.
;
; Notes:
;
; The destination buffer must be at least as large as the source buffer
; otherwise a page fault will be generated.
;
; This function as based on: Memory_Copy
;
; See Also:
;
; Memory_Copy
;
;------------------------------------------------------------------------------
Memory_Move PROC FRAME pMemSource:QWORD, pMemDestination:QWORD, qwAmount:QWORD
Invoke Memory_Copy, pMemSource, pMemDestination, qwAmount
ret
Memory_Move ENDP
END