.intel_syntax noprefix .globl _start .text # String-copying routine. # Commented-out lines would also return the starting address of the destination address. strcpy: # push rsi .loop: movb r10b, [rdi] cmpb r10b, 0 je .end movb [rsi], r10b inc rdi inc rsi jmp .loop .end: # pop rax ret