title: Assembly language how to increment multi-digit decimal ASCII strings?
body: <p>so I have this part of the code</p>
  
  <pre><code>    mov SI, 0002
      mov ah, INPUT[SI]
      INC SI
      mov al, INPUT[SI]
      sub AX, 3030h
      aad
      inc al
      cmp byte ptr INPUT[0002], 39h
      jne OTHER
  
  
  
  OTHER: aam
         add ax, 3030h
         mov INPUT[0003], al
         mov INPUT[0002], ah
  </code></pre>
  
  <p>where the input is the user input.
  What this code does is to increment a 2 digit number,
  my problem, when a three digit number is to be incremented.</p>
  
  <p>Example:
  Input: 98
  output: 99</p>
  
  <p>Input: 99
  Output: 110</p>
  
  <p>Desired results:
  Input: 99
  Output: 100</p>