I'm trying to write a function that takes a code of symbol and prints it to stdout. I wrote this code using examples of functions that prints string
print_char:
push rdi
mov rsi, rsp
mov rdx, 1
mov rdi, 1
mov rax, 1
syscall
pop rdi
ret
And I don't understand how we use rdx here - in print string function example it contains length of the string. I tried to find the answer in the intel manual and forums, but I still don't understand how program uses rdx to print symbol? Thanks