I am novice in assembly, I have one question. Why I don't get anything in terminal when I run it? To compile it I write (nasm -felf64 example.asm -o example.o && ld example.o -o example && ./example)
section .data
first_number:
dq '50'
second_number:
dq '40'
section .text
global _start
_start:
mov rax, first_number
mov rdi, second_number
cmp rax, rdi
jae .true
jb .false
.true:
mov rcx, ‘1’
jmp .execution
.false:
mov rcx, ‘0‘
jmp .execution
.execution:
mov rax, 1
mov rdi, 1
mov rsi, [rcx]
mov rdx, 8
syscall
mov rax, 60
xor rdi, rdi
syscall
But why if I change rsp on rcx this code won’t work? Thank you