Anonymous user
Copy a string: Difference between revisions
m
→UASM 2.52
m (→UASM 2.54) |
m (→UASM 2.52) |
||
Line 2,325:
jne _getsize ;; nope, jump back and check again
mov tb, ecx ;; tb = Total bytes, Keep a copy of the size of the string
lea rsi, s ;; Copy the address of s into the source index(rsi)
lea rdi, d ;; Copy the address of d into the destination index(rdi)
Line 2,333:
mov dp, rax ;; Copy it from RAX to dp
mov rbx,rdi ;; Make a
invoke printf, CSTR("-> s (0x%x) = %s",10), rsi, addr s
invoke printf, CSTR("-> d (0x%x) = %s",10), rbx, addr d
|