Since everything is a byte, there's no endianness involved.
These lines just do:
mov [inbuf+10], al ; store the digit
mov byte [inbuf+11], 10 ; 10 (line feed) on the end
By the way, if there are digits in inbuf + 0
through inbuf + 10
, that means you have 11 of them.