Verified Commit ed3e5367 authored by jD91mZM2's avatar jD91mZM2

Reformat assembly

parent 4d04a047
......@@ -8,12 +8,12 @@ len: equ $-str
section .text
_start:
mov rax, 1 ; write
mov rdi, 1 ; stdout
mov rsi, str ; buf
mov rdx, len ; len
mov rax, 1 ; write
mov rdi, 1 ; stdout
mov rsi, str ; buf
mov rdx, len ; len
syscall
mov rax, 60 ; exit
xor rdi, rdi ; status
mov rax, 60 ; exit
xor rdi, rdi ; status
syscall
......@@ -8,12 +8,12 @@ len: equ $-str
section .text
_start:
mov rax, 0x2100_0004 ; write
mov rdi, 1 ; stdout
mov rsi, str ; buf
mov rdx, len ; len
mov rax, 0x2100_0004 ; write
mov rdi, 1 ; stdout
mov rsi, str ; buf
mov rdx, len ; len
syscall
mov rax, 1 ; exit
xor rdi, rdi ; status
mov rax, 1 ; exit
xor rdi, rdi ; status
syscall
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment