Hi folks, i'm beginner in asm.
probably someone had this same problem, but i can't find the right post and hard to any tutorials for linux x64 assembly.
What i'm doing wrong? I've written simple terminal program that asks user to enter his name and then welcomes him by his name. The program only displays only question string and hi string, but not input.
[BITS 64]
SECTION .TEXT
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, tTxt
mov rdx, LEN_TTXT
syscall
xor rax, rax
xor rdi, rdi
mov rsi, buff_Name
mov rdx, LEN_BNAME
syscall
mov rax, 1
mov rdi, 1
mov rsi, tHi
mov rdx, LEN_THI
syscall
mov rax, 1
mov rdi, 1
mov rsi, buff_Name
mov rdx, LEN_BNAME
syscall
xor rdi, rdi
mov rax, 60
syscall
SECTION .DATA
tTxt: db "What is your name? "
LEN_TTXT: equ $ - tTxt
buff_Name: times 20 db 0
LEN_BNAME: equ $ - buff_Name
tHi db "Hi "
LEN_THI: equ $ - tHi
SECTION .BSS
thanks in advance.