Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
430 B
1
Indexable
Never
section .text
global _start
_start:
    mov rax, 0x4142434445464748 ; 'ABCDEFGH'
    push rax
    mov rdx, 0x8                ; length of string is 8 bytes
    mov rsi, rsp                ; Address of string is RSP because string is on the stack
    mov rax, 0x1                ; syscall 1 is write
    mov rdi, 0x1                ; stdout has a file descriptor of 1
    syscall                     ; make the system call