mov r2, 32
read_char:
in r1
cmp r2, 32
mov r2, r1
jne emit
and r1, r1, 223
emit:
out r1
jmp read_char
