Assembly language-How to make two inputted number as one?
<p>I'm trying to do an assembly language programming with this condition:</p>

<pre><code>    if age = 18 then write "You are of legal age" 
    else if age&lt;18 then write "You are too young"
    else write "You should be working now"
</code></pre>

<p>Here's where I have a problem:</p>

<pre><code>    mov ah,01h  "This is the first digit"
    int 21h
    mov bl,al
    mov ah,01h "This is the second'
    int 21h
</code></pre>

<p>When I input a two digit number, there are two different values of <code>AL</code>. I move the first value to <code>BL</code> to save it and I don't know what to do next. Can I ask how to make them combine as in when I input "17", it'll be 17h. I've read I need to subtract 30h but that only works with 0-9. I can't figure out what to do starting number 10 onwards. I'm using Tasm.</p>

<p>Hope someone can help me.</p>