Problem
Suppose I have a program in x86_64
assembler yasm
(see below) that requests input from a user via SYS_read
system service at some moment. This output is treated as byte-number further in the program. User easely could provide all numbers corresponding to the printable ASCII symbols i.e. from 0x20
to 0x7f
(maybe some more). But how to provide 0x90
for example?
Possible solution for a few characters
I could use the following combination to provide the desired number:
<C-S-u> 0 0 9 0
But this solution may be tedious when it is necessary to enter many characters.
Program fragment
Here is that part of the program that responsible for the reading from STDIN.
readChar:
mov rax, SYS_read
mov rdi, STDIN
lea rsi, byte [rbp - 1]
mov rdx, 1
syscall