While waiting, here is a simple 32 bit example of getting user input, converting it to DWORD integers, adding the two together then converting it back to string to display.
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
include \masm32\include\masm32rt.inc
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
comment * -----------------------------------------------------
Build this template with
"CONSOLE ASSEMBLE AND LINK"
----------------------------------------------------- *
.data?
inp1 db 128 dup (?)
inp2 db 128 dup (?)
.data
pin1 dd inp1
pin2 dd inp2
.code
start:
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
call main
inkey "Press any key to exit ...."
exit
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
main proc
LOCAL var1 :DWORD
LOCAL var2 :DWORD
LOCAL rslt :DWORD
LOCAL obuf[32]:BYTE
; --------------
; Get user input
; --------------
print "Enter an integer "
invoke StdIn,pin1,128
print "Enter another "
invoke StdIn,pin2,128
; --------------
; ------------------
; display input data
; ------------------
print "The first integer = "
print pin1,13,10
print "The second integer = "
print pin2,13,10
; ------------------
; ------------------------------
; convert input strings to DWORD
; ------------------------------
invoke atodw,pin1
mov var1, eax
invoke atodw,pin2
mov var2, eax
; ------------------------------
; --------------------
; perform the addition
; --------------------
mov eax, var1
add eax, var2
; --------------------
; ------------------------------
; load the output buffer address
; ------------------------------
lea edx, obuf
mov rslt, edx
; -------------------------------------
; convert the result in eax to a string
; -------------------------------------
invoke dwtoa,eax,rslt
; -------------------------------------
; ------------------
; display the result
; ------------------
print "The total = "
print rslt,13,10
; ------------------
ret
main endp
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
end start