Skip to content

Commit 3e8dabd

Browse files
committed
fix memcpy asm bug
1 parent 9f6b064 commit 3e8dabd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/arch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def memcpy(self, dst, src, size):
5959
sub edi, ref - _PKST_
6060
mov esi, edi
6161
62-
add edi, 0x%x
63-
add esi, 0x%x
64-
mov ecx, 0x%x
62+
add edi, %d
63+
add esi, %d
64+
mov ecx, %d
6565
6666
rep movsb
6767
@@ -82,7 +82,7 @@ def memcpy(self, dst, src, size):
8282
8383
lea rdi, [rip - _PKST_ + %d]
8484
lea rsi, [rip - _PKST_ + %d]
85-
mov rcx, 0x%x
85+
mov rcx, %d
8686
8787
rep movsb
8888

0 commit comments

Comments
 (0)