diff options
author | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-20 14:39:51 +0000 |
---|---|---|
committer | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-20 14:39:51 +0000 |
commit | f914b2f38c0e4ae3de473e83e2e02229997b7de7 (patch) | |
tree | f8ba7b1d5e907455e0a76ebda8b43f6b63eb4a9e /src/c_bsdsetsid.S | |
parent | In good progress (diff) | |
download | bsdsetsid-f914b2f38c0e4ae3de473e83e2e02229997b7de7.tar.gz bsdsetsid-f914b2f38c0e4ae3de473e83e2e02229997b7de7.tar.bz2 bsdsetsid-f914b2f38c0e4ae3de473e83e2e02229997b7de7.tar.xz bsdsetsid-f914b2f38c0e4ae3de473e83e2e02229997b7de7.tar.zst bsdsetsid-f914b2f38c0e4ae3de473e83e2e02229997b7de7.zip |
Noq
FossilOrigin-Name: 87bc744080eac5e50fa79550e5b833bc82cc5f1a
Diffstat (limited to '')
-rw-r--r-- | src/c_bsdsetsid.S | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S index 17cf57b..de55b7f 100644 --- a/src/c_bsdsetsid.S +++ b/src/c_bsdsetsid.S @@ -7,39 +7,39 @@ main: cmpb $0x1, %dil jle c_noarg - pushq %rdi - pushq %rsi - pushq %rdx - xorq %rcx, %rcx - movq (%rsi, %rcx, 8), %rdi - movq %rcx, %r8 - callq u_pout - movq %r8, %rcx - popq %rdx - popq %rsi - popq %rdi - pushq %rdi - pushq %rsi - pushq %rdx + push %rdi + push %rsi + push %rdx + xor %rcx, %rcx + mov (%rsi, %rcx, 8), %rdi + mov %rcx, %r8 + call u_pout + mov %r8, %rcx + pop %rdx + pop %rsi + pop %rdi + push %rdi + push %rsi + push %rdx inc %rcx - movq (%rsi, %rcx, 8), %rdi - callq u_pout - popq %rdx - popq %rsi - popq %rdi + mov (%rsi, %rcx, 8), %rdi + call u_pout + pop %rdx + pop %rsi + pop %rdi jmp c_exit c_noarg: - leaq noarg_str, %rdi - callq u_perr - movq $0x1, %rdi - xorq %rax, %rax + lea noarg_str, %rdi + call u_perr + mov $0x1, %rdi + xor %rax, %rax movb $0x1, %al # SYS_exit syscall c_exit: - xorq %rdi, %rdi - xorq %rax, %rax + xor %rdi, %rdi + xor %rax, %rax movb $0x1, %al # SYS_exit syscall |