So as my question states, how do you get the ASCII key code from keyboard input as an integer value, then I want to save that value in a dataword inside of .data so I can then place the dataword into a different function.
input:
; get ASCII for keyboard input
; save ASCII into cha
push rbp
mov rdi, cha
call kernel_input
pop rbp
section .data
cha dw