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/u_print.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 'src/u_print.S')
-rw-r--r-- | src/u_print.S | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/u_print.S b/src/u_print.S index 3866868..47a9483 100644 --- a/src/u_print.S +++ b/src/u_print.S @@ -4,25 +4,25 @@ .globl u_perr u_pout: - movq $0x1, %r11 # stdout + mov $0x1, %r11 # stdout jmp u_print u_perr: - movq $0x2, %r11 # stderr + mov $0x2, %r11 # stderr jmp u_print u_print: - callq u_strlen - movq %rax, %rdx - movq %rdi, %rsi - movq %r11, %rdi - movq $0x4, %rax # SYS_write + call u_strlen + mov %rax, %rdx + mov %rdi, %rsi + mov %r11, %rdi + mov $0x4, %rax # SYS_write syscall - leaq nl, %rsi - movq $0x1, %rdx - movq $0x4, %rax # SYS_write + lea nl, %rsi + mov $0x1, %rdx + mov $0x4, %rax # SYS_write syscall - retq + ret .data nl: .asciz "\n" |