title: age calculator with the user inputting the birth and current year using assembly language
body: <pre><code>DOSSEG
      .MODEL SMALL
      .STACK 100h
      .DATA
  
  UserName db "Name: $"
  CLRF     db 10,13,"$"
  inputName db 24 dup ("$")
  
  CurYear db "Current Year: $"
  inputCurrentYear db 8 dup ("$")
  
  BirYear   db "Birth Year: $"
  inputBirthYear db 8 dup ("$")   
  
  outputName db "Hello, $"
  
  .code
  BEGIN:
  mov ax,@data
  mov ds,ax
  mov es,ax
  
  mov al,03h
  mov ah, 00h
  int 10h
  
  ;username input
  
  NameInput:
  lea dx,UserName
  mov ah, 09h
  int 21h
  
  mov inputName,21
  lea dx,inputName
  mov ah,0ah
  int 21h
  
  lea dx,CLRF
  mov ah,09h
  int 21h
  
  ;current year
  
  CurrentYear:
  lea dx,CurYear
  mov ah,09h
  int 21h
  
  mov inputCurrentYear,05
  lea dx,inputCurrentYear
  mov ah,0ah
  int 21h
  
  lea dx,CLRF
  mov ah,09h
  int 21h
  
  ;birth year
  
  BirthYear:
  lea dx,BirYear
  mov ah,09h
  int 21h
  
  mov inputBirthYear,05
  lea dx,inputBirthYear
  mov ah,0ah
  int 21h
  
  lea dx,CLRF
  mov ah,09h
  int 21h
  
  ;subtraction
  
  mov eax, inputCurrentYear
  mov ebx ,inputBirthYear
  sub eax,ebx
  
  
  
  Output:
  lea dx, outputName
  mov ah,09h
  int 21h
  
  lea dx, inputName
  mov ah,09h
  int 21h
  
  lea dx,CLRF
  mov ah,09h
  int 21h
  
  mov ah,4ch
  int 21h
  end BEGIN
  </code></pre>
  
  <p>I need help because I don't know how to convert the output into a decimal value </p>