I'm asking because my code is not working, and I'm at a loss as to why.
To give further context, here's my code:
section .data
p dw 'helloworld.txt'
section .text
global _start
_start:
mov rax, 85
mov rdi, p
mov rsi, 0777o
mov rdx, 68
syscall
mov rax, 60
syscall
Here's my output:
-rwxrwxr-x
Here's what my output should be:
-rwxrwxrwx
And here's what my code should be:
section .data
p dw 'helloworld.txt'
section .text
global _start
_start:
mov rax, 85
mov rdi, p
mov rsi, 68
mov rdx, 0777o
syscall
mov rax, 60
syscall
I've done research on this elsewhere, but I've not found a detailed answer.